]> code.delx.au - gnu-emacs/commitdiff
* lisp/erc/erc.el (erc-send-input): Bind `str' dynamically.
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 4 Nov 2014 20:07:59 +0000 (15:07 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 4 Nov 2014 20:07:59 +0000 (15:07 -0500)
Fixes: debbugs:18936
lisp/erc/ChangeLog
lisp/erc/erc.el

index ca018c47db86e3c2082d82d6dcb1f14b0eaddfe3..869befc11910b25ecce90a0ac847445bafd68081 100644 (file)
@@ -1,3 +1,7 @@
+2014-11-04  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * erc.el (erc-send-input): Bind `str' dynamically (bug#18936).
+
 2014-10-20  Glenn Morris  <rgm@gnu.org>
 
        * Version 24.4 released.
index d93e9e02156b3b444f76f45e27431a3aca9ed743..3a107c69f9aa07c6c532ab78a074cabf551ec246 100644 (file)
@@ -975,7 +975,7 @@ display of that particular string at all."
   "Hook called first when some text is sent through `erc-send-current-line'.
 It gets called with one argument, STRING.
 
-To change the text that will be sent, set the variable STR which is
+To change the text that will be sent, set the variable `str' which is
 used in `erc-send-current-line'.
 
 To change the text inserted into the buffer without changing the text
@@ -5268,6 +5268,7 @@ This returns non-nil only if we actually send anything."
       (beep))
     nil)
    (t
+    (defvar str) ;; FIXME: Make it obey the "erc-" prefix convention.
     (let ((str input)
          (erc-insert-this t))
       (setq erc-send-this t)