From: Lars Ingebrigtsen Date: Thu, 13 Jun 2019 00:03:55 +0000 (+0200) Subject: Add comment to clarify the use of `str' X-Git-Tag: emacs-27.0.90~2583 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=db2bd19c45d0b0eae439cec9c5d2009412490510;p=emacs.git Add comment to clarify the use of `str' --- 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)