From db2bd19c45d0b0eae439cec9c5d2009412490510 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Thu, 13 Jun 2019 02:03:55 +0200 Subject: [PATCH] Add comment to clarify the use of `str' --- lisp/erc/erc.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el index d1fa5c7f120..ddfa7a3e15c 100644 --- a/lisp/erc/erc.el +++ b/lisp/erc/erc.el @@ -5443,6 +5443,8 @@ This returns non-nil only if we actually send anything." (let ((str input) (erc-insert-this t)) (setq erc-send-this t) + ;; The calling convention of `erc-send-pre-hook' is that it + ;; should change the dynamic variable `str'. (run-hook-with-args 'erc-send-pre-hook input) (when erc-send-this (if (or (string-match "\n" str) -- 2.39.5