[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 0f76bed4928 03/11: ; * lisp/erc/erc.el (erc-send-input-line-funct
From: |
F. Jason Park |
Subject: |
master 0f76bed4928 03/11: ; * lisp/erc/erc.el (erc-send-input-line-function): Doc. |
Date: |
Mon, 12 Jun 2023 00:15:54 -0400 (EDT) |
branch: master
commit 0f76bed4928289ff062483738ec8486793df9093
Author: F. Jason Park <jp@neverwas.me>
Commit: F. Jason Park <jp@neverwas.me>
; * lisp/erc/erc.el (erc-send-input-line-function): Doc.
---
lisp/erc/erc.el | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el
index 99505a2355f..0349dc67dbd 100644
--- a/lisp/erc/erc.el
+++ b/lisp/erc/erc.el
@@ -3185,13 +3185,16 @@ present."
"Non-nil when a user types a \"/slash\" command.
Remains bound until `erc-cmd-SLASH' returns.")
-(defvar-local erc-send-input-line-function 'erc-send-input-line
- "Function for sending lines lacking a leading user command.
-When a line typed into a buffer contains an explicit command, like /msg,
-a corresponding handler (here, erc-cmd-MSG) is called. But lines typed
-into a channel or query buffer already have an implicit target and
-command (PRIVMSG). This function is called on such occasions and also
-for special purposes (see erc-dcc.el).")
+(defvar-local erc-send-input-line-function #'erc-send-input-line
+ "Function for sending lines lacking a leading \"slash\" command.
+When prompt input starts with a \"slash\" command, like \"/MSG\",
+ERC calls a corresponding handler, like `erc-cmd-MSG'. But
+normal \"chat\" input also needs processing, for example, to
+convert it into a proper IRC command. ERC calls this variable's
+value to perform that task, which, by default, simply involves
+constructing a \"PRIVMSG\" with the current channel or query
+partner as the target. Some libraries, like `erc-dcc', use this
+for other purposes.")
(defun erc-send-input-line (target line &optional force)
"Send LINE to TARGET."
- master updated (b6d48190609 -> edfbdb3f165), F. Jason Park, 2023/06/12
- master 67f7ac2bbee 05/11: Deprecate nicknames entry in erc-button-alist, F. Jason Park, 2023/06/12
- master 2daa71f9329 09/11: Don't insert prompt input before markers in ERC, F. Jason Park, 2023/06/12
- master 1c3f6aa98f5 07/11: Measure stamps pixel-wise with erc-fill-wrap, F. Jason Park, 2023/06/12
- master d880a08f959 08/11: Cement ordering of essential hook members in ERC, F. Jason Park, 2023/06/12
- master ac80e377830 02/11: ; * doc/misc/erc.texi: Fix reconnecting in SOCKS example., F. Jason Park, 2023/06/12
- master a4df7483295 01/11: Prefer emacs-news-mode in etc/ERC-NEWS, F. Jason Park, 2023/06/12
- master 56e1922281d 10/11: Revert "Add hook to regain nickname in ERC", F. Jason Park, 2023/06/12
- master bd969326e96 04/11: Add alias erc-buffer-do for erc-buffer-filter, F. Jason Park, 2023/06/12
- master 0f76bed4928 03/11: ; * lisp/erc/erc.el (erc-send-input-line-function): Doc.,
F. Jason Park <=
- master e560f9af8e8 06/11: Allow ERC modules to extend erc-nick-popup-alist, F. Jason Park, 2023/06/12
- master edfbdb3f165 11/11: Define missing groups for ERC modules, F. Jason Park, 2023/06/12