; * lisp/erc/erc.el (erc-default-target): Fix comment.

This commit is contained in:
F. Jason Park 2022-12-09 06:26:13 -08:00
parent dcf69a1da4
commit 56a6712bd6

View file

@ -5994,18 +5994,17 @@ See also `erc-downcase'."
(and (erc--target-channel-p erc--target) (and (erc--target-channel-p erc--target)
(erc-get-channel-user (erc-current-nick)) t)) (erc-get-channel-user (erc-current-nick)) t))
;; This function happens to return nil in channel buffers previously ;; While `erc-default-target' happens to return nil in channel buffers
;; parted or those from which a user had been kicked. While this ;; you've parted or from which you've been kicked, using it to detect
;; "works" for detecting whether a channel is currently subscribed to, ;; whether a channel is currently joined may become unreliable in the
;; new code should consider using ;; future. For now, new code should consider using
;; ;;
;; (erc-get-channel-user (erc-current-nick)) ;; (erc-get-channel-user (erc-current-nick))
;; ;;
;; instead. For retrieving a target regardless of subscription or ;; and expect a nicer option eventually. For retrieving a target
;; connection status, use replacements based on `erc--target'. ;; regardless of subscription or connection status, use replacements
;; (Coming soon.) ;; based on `erc--target' instead. See also `erc--default-target'.
;;
;; TODO deprecate this
(defun erc-default-target () (defun erc-default-target ()
"Return the current default target (as a character string) or nil if none." "Return the current default target (as a character string) or nil if none."
(let ((tgt (car erc-default-recipients))) (let ((tgt (car erc-default-recipients)))