erc-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Erc-commit] [commit][emacs22] Only remove first space from /quote argum


From: mwolson
Subject: [Erc-commit] [commit][emacs22] Only remove first space from /quote argument.
Date: Sun, 14 Oct 2007 00:48:09 -0400

commit baeb999b6e9e83a85f15c4c5c75e5995f184c512
Author: Michael Olson <address@hidden>
Date:   Sat Mar 25 18:09:03 2006 +0000

    Only remove first space from /quote argument.
    
    * erc.el (erc-cmd-QUOTE): Only remove the first space, and leave initial
      tabs and other spaces alone.
    git-archimport-id: address@hidden/erc--cvs--0--patch-144

diff --git a/ChangeLog b/ChangeLog
index 28a013c..6b176e6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,8 @@
 2006-03-25  Michael Olson  <address@hidden>
 
        * erc.el (erc-cmd-QUOTE): Install patch from Aravind Gottipati
-       that fixes the case where there is no leading whitespace.
+       that fixes the case where there is no leading whitespace.  Only
+       remove the first space character, though.
 
        * erc-identd.el (erc-identd-start): Fix a bug by making sure that
        erc-identd-process is set properly.
diff --git a/erc.el b/erc.el
index 86901a9..2340626 100644
--- a/erc.el
+++ b/erc.el
@@ -3003,7 +3003,7 @@ Otherwise leave the channel indicated by LINE."
 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 "^ ?\\(.+\\)$" line)
     (erc-server-send (match-string 1 line)))
    (t nil)))
 (put 'erc-cmd-QUOTE 'do-not-parse-args t)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]