dme | 1 May 2002 15:40
Favicon
Gravatar

updated patch

This patch includes the previous one (configurable /quit messages) and
adds the ability to disable the message and (ding) if you type a blank
line.

--- erc.el.~1.249.~	Fri Apr 26 03:46:35 2002
+++ erc.el	Wed May  1 14:38:18 2002
 <at>  <at>  -130,6 +130,10  <at>  <at> 
   :group 'erc
   :type 'boolean)

+(defcustom erc-warn-about-blank-lines t
+  "Warn the user if they attempt to send a blank line."
+  :group 'erc
+  :type 'boolean)

 ;; tunable GUI stuff

 <at>  <at>  -448,6 +452,29  <at>  <at> 
   :group 'erc
   :type 'boolean)

+(defcustom erc-quit-reason-various-alist nil
+  "Alist of possible arguments to the /quit command and what should happen
+as a result.  For example:
+  (setq erc-quit-reason-various-alist
+      '((\"zippy\" erc-quit-reason-zippy)
+	(\"xmms\" dme:now-playing)
+	(\"version\" erc-quit-reason-normal)
+	(\"home\" \"Gone home !\")))
+If the user types \"/quit zippy\", then a Zippy the Pinhead quotation
(Continue reading)

Alex Schroeder | 1 May 2002 19:58

Re: updated patch

I will apply the patch.  Since it is longer than 10 lines, I'll add
your name to the list of contributors.  What name should I use?

Alex.
--

-- 
http://www.electronicintifada.net/diaries/index.html
http://www.us-israel.org/jsource/US-Israel/hr2506c.html

Alex Schroeder | 1 May 2002 20:06

Re: updated patch

Oh and another thing, a ChangeLog entry would be nice...  :) In this
case something like the following, I guess...  (but with your name
instead of mine).

2002-05-01  Alex Schroeder  <alex <at> emacswiki.org>

	* erc.el (erc-warn-about-blank-lines): New option.
	(erc-send-current-line): Use it.
	(erc-quit-reason-various-alist): New option.
	(erc-quit-reason): New option.
	(erc-quit-reason-normal): New function.
	(erc-quit-reason-zippy): New function.
	(erc-quit-reason-various): New function.
	(erc-cmd-QUIT): Use them.

Alex.
--

-- 
http://www.electronicintifada.net/diaries/index.html
http://www.us-israel.org/jsource/US-Israel/hr2506c.html

Alex Schroeder | 1 May 2002 20:13

ChangeLog

Do we want a ChangeLog in erc?  I added a ChangeLog file to erc here
at home, because I prepare any ChangeLog entries using C-x 4 a, these
I can then paste into the buffers used for commit messages.  So
perhaps a ChangeLog would be nice?  Perhaps it would be even better to
not have a ChangeLog and create it from the CVS log entries.

Alex.
--

-- 
http://www.electronicintifada.net/diaries/index.html
http://www.us-israel.org/jsource/US-Israel/hr2506c.html

Alex Schroeder | 1 May 2002 20:25

Re: ChangeLog

Alex Schroeder <alex <at> emacswiki.org> writes:

> Perhaps it would be even better to not have a ChangeLog and create
> it from the CVS log entries.

This would be what it looks like (after replacing the name of my host
with "user.sf.net").

Alex.

2002-05-01  kensanata  <kensanata <at> users.sf.net>

	* erc.el (erc-warn-about-blank-lines): New option.
	(erc-send-current-line): Use it.
	(erc-quit-reason-various-alist): New option.
	(erc-quit-reason): New option.
	(erc-quit-reason-normal): New function.
	(erc-quit-reason-zippy): New function.
	(erc-quit-reason-various): New function.
	(erc-cmd-QUIT): Use them.

2002-04-30  kensanata  <kensanata <at> users.sf.net>

	* erc.el: Version 2.92

	* erc.el (erc-send-modify-hook): Default value is nil.

2002-04-27  jwiegley  <jwiegley <at> users.sf.net>

	* erc.el:
(Continue reading)

dme | 1 May 2002 21:16
Favicon
Gravatar

Re: updated patch

* alex <at> emacswiki.org [2002-05-01 18:58:57]
> I will apply the patch.  Since it is longer than 10 lines, I'll add
> your name to the list of contributors.  What name should I use?

David Edmondson.

* alex <at> emacswiki.org [2002-05-01 19:06:33]
> Oh and another thing, a ChangeLog entry would be nice...  :) In this
> case something like the following, I guess...  (but with your name
> instead of mine).

Are you happy to use the one you generated, or would you like me to
write something more ?

_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: bandwidth <at> sourceforge.net
Gergely Nagy | 2 May 2002 00:07

Re: ChangeLog

> Do we want a ChangeLog in erc?  I added a ChangeLog file to erc here
> at home, because I prepare any ChangeLog entries using C-x 4 a, these
> I can then paste into the buffers used for commit messages.  So
> perhaps a ChangeLog would be nice?  Perhaps it would be even better to
> not have a ChangeLog and create it from the CVS log entries.

Look at the Debian package, it has a ChangeLog, generated from CVS log
entries. I mainly use rcs2log, with my own tweaks. I'll upload the
stuff into http://bonehunter.rulez.org/~algernon/changelog/, if you're
interested, check it out.

Oh, I prefer the automatically generated changelog =)
Alex Schroeder | 2 May 2002 22:10

Re: Re: updated patch

dme <at> dme.org writes:

> * alex <at> emacswiki.org [2002-05-01 18:58:57]
>> I will apply the patch.  Since it is longer than 10 lines, I'll add
>> your name to the list of contributors.  What name should I use?
>
> David Edmondson.

Thanks.

> * alex <at> emacswiki.org [2002-05-01 19:06:33]
>> Oh and another thing, a ChangeLog entry would be nice...  :) In this
>> case something like the following, I guess...  (but with your name
>> instead of mine).
>
> Are you happy to use the one you generated, or would you like me to
> write something more ?

The one I used is fine.  It's just for future contributions by people
on the list.  :)

Alex.
--

-- 
http://www.electronicintifada.net/diaries/index.html
http://www.us-israel.org/jsource/US-Israel/hr2506c.html

_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: bandwidth <at> sourceforge.net
(Continue reading)

Alex Schroeder | 2 May 2002 22:11

Re: ChangeLog

Gergely Nagy <algernon <at> bonehunter.rulez.org> writes:

> Look at the Debian package, it has a ChangeLog, generated from CVS log
> entries. I mainly use rcs2log, with my own tweaks. I'll upload the
> stuff into http://bonehunter.rulez.org/~algernon/changelog/, if you're
> interested, check it out.

Good, I use the Emacs function vc-update-change-log which also uses
rcs2log.

> Oh, I prefer the automatically generated changelog =)

Fine with me.  Next time I prepare a release I will just have to
remember.

Alex.
--

-- 
http://www.electronicintifada.net/diaries/index.html
http://www.us-israel.org/jsource/US-Israel/hr2506c.html

_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: bandwidth <at> sourceforge.net
dme | 3 May 2002 16:04
Favicon
Gravatar

robots

Here's a first pass implementation of robot support for erc.  At the
moment the main problem is that the reply from the robot is not
inserted into the local buffer.  Looking through erc-send-current-line
made me a bit dizzy, so I'll think about that later.

Is anyone interested in this ?  I was thinking about adding support
for evaluating lisp expressions using the unsafep package...

(setq dme:erc-robot-commands
      '(
	("cmds" (lambda (args)
		  (concat "commands available: "
			  (mapconcat
			   (lambda (e)
			     (car e))
			   dme:erc-robot-commands " "))))
	("hello" (lambda (args) "hello to you too !"))
	("zippy" (lambda (args) (replace-regexp-in-string "\n" "" (yow))))
	("music" (lambda (args) (concat "now playing: "
					(let ((track (dme:now-playing)))
					  (if track
					      track
					    "nothing.")))))
	("echo" (lambda (args) args))
      ))

(defun dme:erc-robot (proc parsed)
  "Implements a simple robot for erc.  Messages to the robot are of the form:
\"nick: !command args\", where:
nick	- the nickname of the user who is the target of the command,
(Continue reading)


Gmane