aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorF. Jason Park2023-06-25 06:15:11 -0700
committerF. Jason Park2023-06-25 16:27:58 -0700
commit34416e21da224e5cb9f447f850ef2dbd3db0bbb0 (patch)
tree136d21c0f20cdf29498dda98258dfdf5537344a6
parentd2a7b0c76d12d15eb4c6d1cd183c192ad4e872ed (diff)
downloademacs-34416e21da224e5cb9f447f850ef2dbd3db0bbb0.tar.gz
emacs-34416e21da224e5cb9f447f850ef2dbd3db0bbb0.zip
Avoid "shadows" warning from erc-button--nick slots
* lisp/erc/erc-button.el (erc-button-nick): Rename slots that share names with user options to avoid "lexical argument shadows the dynamic variable" warning. (erc-button-add-nickname-buttons): Remove "erc-button-" namespace from slot accessors.
-rw-r--r--lisp/erc/erc-button.el12
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/erc/erc-button.el b/lisp/erc/erc-button.el
index 08610860630..0c616a6026d 100644
--- a/lisp/erc/erc-button.el
+++ b/lisp/erc/erc-button.el
@@ -355,11 +355,11 @@ specified by `erc-button-alist'."
355 ( cuser nil :type (or null erc-channel-user) 355 ( cuser nil :type (or null erc-channel-user)
356 ;; The CDR of a value from an `erc-channel-users' table. 356 ;; The CDR of a value from an `erc-channel-users' table.
357 :documentation "A possibly nil `erc-channel-user'.") 357 :documentation "A possibly nil `erc-channel-user'.")
358 ( erc-button-face erc-button-face :type symbol 358 ( face erc-button-face :type symbol
359 :documentation "Temp `erc-button-face' while buttonizing.") 359 :documentation "Temp `erc-button-face' while buttonizing.")
360 ( erc-button-nickname-face erc-button-nickname-face :type symbol 360 ( nickname-face erc-button-nickname-face :type symbol
361 :documentation "Temp `erc-button-nickname-face' while buttonizing.") 361 :documentation "Temp `erc-button-nickname-face' while buttonizing.")
362 ( erc-button-mouse-face erc-button-mouse-face :type symbol 362 ( mouse-face erc-button-mouse-face :type symbol
363 :documentation "Temp `erc-button-mouse-face' while buttonizing.")) 363 :documentation "Temp `erc-button-mouse-face' while buttonizing."))
364 364
365;; This variable is intended to serve as a "core" to be wrapped by 365;; This variable is intended to serve as a "core" to be wrapped by
@@ -463,11 +463,11 @@ retrieve it during buttonizing via
463 (setq bounds (erc-button--nick-bounds obj) 463 (setq bounds (erc-button--nick-bounds obj)
464 data (erc-button--nick-data obj) 464 data (erc-button--nick-data obj)
465 erc-button-mouse-face 465 erc-button-mouse-face
466 (erc-button--nick-erc-button-mouse-face obj) 466 (erc-button--nick-mouse-face obj)
467 erc-button-nickname-face 467 erc-button-nickname-face
468 (erc-button--nick-erc-button-nickname-face obj) 468 (erc-button--nick-nickname-face obj)
469 erc-button-face 469 erc-button-face
470 (erc-button--nick-erc-button-face obj)))) 470 (erc-button--nick-face obj))))
471 (erc-button-add-button (car bounds) (cdr bounds) 471 (erc-button-add-button (car bounds) (cdr bounds)
472 fun t data)))))))) 472 fun t data))))))))
473 473