From: Philip Kaludercic Date: Sat, 19 Jun 2021 08:43:26 +0000 (+0200) Subject: Use add-to-list instead of manually modifying minor-mode-alist X-Git-Tag: emacs-28.0.90~1748^2~8 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=869db473cbd510270faec2ba43dd4a5ba10b0020;p=emacs.git Use add-to-list instead of manually modifying minor-mode-alist --- diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el index 561589c4580..9e14d1b12ac 100644 --- a/lisp/net/rcirc.el +++ b/lisp/net/rcirc.el @@ -2104,12 +2104,8 @@ This function does not alter the INPUT string." (remove-hook 'window-configuration-change-hook 'rcirc-window-configuration-change))) -(or (assq 'rcirc-ignore-buffer-activity-flag minor-mode-alist) - (setq minor-mode-alist - (cons '(rcirc-ignore-buffer-activity-flag " Ignore") minor-mode-alist))) -(or (assq 'rcirc-low-priority-flag minor-mode-alist) - (setq minor-mode-alist - (cons '(rcirc-low-priority-flag " LowPri") minor-mode-alist))) +(add-to-list 'minor-mode-alist '(rcirc-ignore-buffer-activity-flag " Ignore")) +(add-to-list 'minor-mode-alist '(rcirc-low-priority-flag " LowPri")) (defun rcirc-toggle-ignore-buffer-activity () "Toggle the value of `rcirc-ignore-buffer-activity-flag'."