From: Aravind G. <ar...@fr...> - 2006-03-24 18:00:43
|
Hi, I am using the latest erc code from cvs and Emacs version 21.4.1. I think there might be a problem with the erc-cmd-QUOTE function definition in the erc.el file. The definition tries to weed out white space at the beginning of the quote string passed to the server. However the regex used fails when there is no leading white space. Thc following patch fixes this issue (for me). Aravind. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= --- erc.el 2006-02-19 21:10:04.000000000 -0800 +++ newerc.el 2006-03-24 00:46:11.000000000 -0800 @@ -3003,7 +3003,7 @@ All the text given as argument is sent to the sever as unmodified, just as you provided it. Use this command with care!" (cond - ((string-match "^\\s-\\(.+\\)$" line) + ((string-match "^\\s-*\\(.+\\)$" line) (erc-server-send (match-string 1 line))) (t nil))) (put 'erc-cmd-QUOTE 'do-not-parse-args t) |