emacs-diffs
[Top][All Lists]
Advanced

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

emacs-27 c6d5555: Display messages sent using ERC's /say


From: Amin Bandali
Subject: emacs-27 c6d5555: Display messages sent using ERC's /say
Date: Mon, 28 Dec 2020 16:46:15 -0500 (EST)

branch: emacs-27
commit c6d555564617d187d9e1aacd12da6ace56718f81
Author: Amin Bandali <bandali@gnu.org>
Commit: Amin Bandali <bandali@gnu.org>

    Display messages sent using ERC's /say
    
    * lisp/erc/erc.el (erc-cmd-SAY): Call `erc-display-msg' to display the
    user's message in the buffer, just like other [non-command] messages.
    
    https://lists.gnu.org/r/help-gnu-emacs/2020-12/msg00066.html
---
 lisp/erc/erc.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el
index 3033122..c32a1d9 100644
--- a/lisp/erc/erc.el
+++ b/lisp/erc/erc.el
@@ -2847,7 +2847,9 @@ need this when pasting multiple lines of text."
   (if (string-match "^\\s-*$" line)
       nil
     (string-match "^ ?\\(.*\\)" line)
-    (erc-process-input-line (match-string 1 line) nil t)))
+    (let ((msg (match-string 1 line)))
+      (erc-display-msg msg)
+      (erc-process-input-line msg nil t))))
 (put 'erc-cmd-SAY 'do-not-parse-args t)
 
 (defun erc-cmd-SET (line)



reply via email to

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