From 6cd9d8c94dd81f7aa1753b1c6320d089f0fe6fcd Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Tue, 4 Nov 2014 15:07:59 -0500 Subject: [PATCH] * lisp/erc/erc.el (erc-send-input): Bind `str' dynamically. Fixes: debbugs:18936 --- lisp/erc/ChangeLog | 4 ++++ lisp/erc/erc.el | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/erc/ChangeLog b/lisp/erc/ChangeLog index ca018c47db8..869befc1191 100644 --- a/lisp/erc/ChangeLog +++ b/lisp/erc/ChangeLog @@ -1,3 +1,7 @@ +2014-11-04 Stefan Monnier + + * erc.el (erc-send-input): Bind `str' dynamically (bug#18936). + 2014-10-20 Glenn Morris * Version 24.4 released. diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el index d93e9e02156..3a107c69f9a 100644 --- a/lisp/erc/erc.el +++ b/lisp/erc/erc.el @@ -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) -- 2.39.5