[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 34416e21da2 2/3: Avoid "shadows" warning from erc-button--nick sl
From: |
F. Jason Park |
Subject: |
master 34416e21da2 2/3: Avoid "shadows" warning from erc-button--nick slots |
Date: |
Sun, 25 Jun 2023 19:36:06 -0400 (EDT) |
branch: master
commit 34416e21da224e5cb9f447f850ef2dbd3db0bbb0
Author: F. Jason Park <jp@neverwas.me>
Commit: F. Jason Park <jp@neverwas.me>
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.
---
lisp/erc/erc-button.el | 12 ++++++------
1 file 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'."
( cuser nil :type (or null erc-channel-user)
;; The CDR of a value from an `erc-channel-users' table.
:documentation "A possibly nil `erc-channel-user'.")
- ( erc-button-face erc-button-face :type symbol
+ ( face erc-button-face :type symbol
:documentation "Temp `erc-button-face' while buttonizing.")
- ( erc-button-nickname-face erc-button-nickname-face :type symbol
+ ( nickname-face erc-button-nickname-face :type symbol
:documentation "Temp `erc-button-nickname-face' while buttonizing.")
- ( erc-button-mouse-face erc-button-mouse-face :type symbol
+ ( mouse-face erc-button-mouse-face :type symbol
:documentation "Temp `erc-button-mouse-face' while buttonizing."))
;; This variable is intended to serve as a "core" to be wrapped by
@@ -463,11 +463,11 @@ retrieve it during buttonizing via
(setq bounds (erc-button--nick-bounds obj)
data (erc-button--nick-data obj)
erc-button-mouse-face
- (erc-button--nick-erc-button-mouse-face obj)
+ (erc-button--nick-mouse-face obj)
erc-button-nickname-face
- (erc-button--nick-erc-button-nickname-face obj)
+ (erc-button--nick-nickname-face obj)
erc-button-face
- (erc-button--nick-erc-button-face obj))))
+ (erc-button--nick-face obj))))
(erc-button-add-button (car bounds) (cdr bounds)
fun t data))))))))