aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/erc
diff options
context:
space:
mode:
authorF. Jason Park2022-12-09 06:26:13 -0800
committerF. Jason Park2022-12-09 06:35:36 -0800
commit56a6712bd6f6ea63095f9abe2777070cd569f941 (patch)
tree1c3b9f0f5e68d2d0a7c66f78c96c8508f2f6b0ac /lisp/erc
parentdcf69a1da4a41c27cc3c8782c40df24678847f3e (diff)
downloademacs-56a6712bd6f6ea63095f9abe2777070cd569f941.tar.gz
emacs-56a6712bd6f6ea63095f9abe2777070cd569f941.zip
; * lisp/erc/erc.el (erc-default-target): Fix comment.
Diffstat (limited to 'lisp/erc')
-rw-r--r--lisp/erc/erc.el17
1 files changed, 8 insertions, 9 deletions
diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el
index 268d83dc449..6bb2e013c3b 100644
--- a/lisp/erc/erc.el
+++ b/lisp/erc/erc.el
@@ -5994,18 +5994,17 @@ See also `erc-downcase'."
5994 (and (erc--target-channel-p erc--target) 5994 (and (erc--target-channel-p erc--target)
5995 (erc-get-channel-user (erc-current-nick)) t)) 5995 (erc-get-channel-user (erc-current-nick)) t))
5996 5996
5997;; This function happens to return nil in channel buffers previously 5997;; While `erc-default-target' happens to return nil in channel buffers
5998;; parted or those from which a user had been kicked. While this 5998;; you've parted or from which you've been kicked, using it to detect
5999;; "works" for detecting whether a channel is currently subscribed to, 5999;; whether a channel is currently joined may become unreliable in the
6000;; new code should consider using 6000;; future. For now, new code should consider using
6001;; 6001;;
6002;; (erc-get-channel-user (erc-current-nick)) 6002;; (erc-get-channel-user (erc-current-nick))
6003;; 6003;;
6004;; instead. For retrieving a target regardless of subscription or 6004;; and expect a nicer option eventually. For retrieving a target
6005;; connection status, use replacements based on `erc--target'. 6005;; regardless of subscription or connection status, use replacements
6006;; (Coming soon.) 6006;; based on `erc--target' instead. See also `erc--default-target'.
6007;; 6007
6008;; TODO deprecate this
6009(defun erc-default-target () 6008(defun erc-default-target ()
6010 "Return the current default target (as a character string) or nil if none." 6009 "Return the current default target (as a character string) or nil if none."
6011 (let ((tgt (car erc-default-recipients))) 6010 (let ((tgt (car erc-default-recipients)))