1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-06 11:55:48 +00:00

Make recent nicknames erc change more backwards-compatible

* lisp/erc/erc-button.el (erc-button-add-buttons): Make the
nicknames change more backwards-compatible (bug#16271).
This commit is contained in:
Lars Ingebrigtsen 2022-05-11 15:02:08 +02:00
parent d373daf568
commit c113f2626e

View File

@ -254,7 +254,9 @@ specified by `erc-button-alist'."
regexp)
(erc-button-remove-old-buttons)
(dolist (entry alist)
(if (eq (car entry) 'nicknames)
(if (or (eq (car entry) 'nicknames)
;; Old form retained for backward compatibility.
(equal (car entry) (quote 'nicknames)))
(erc-button-add-nickname-buttons entry)
(progn
(setq regexp (or (and (stringp (car entry)) (car entry))