]> code.delx.au - gnu-emacs/commitdiff
(mh-folder-mode): Use add-to-list to modify minor-mode-alias.
authorBill Wohler <wohler@newt.com>
Mon, 30 Jan 2006 00:50:49 +0000 (00:50 +0000)
committerBill Wohler <wohler@newt.com>
Mon, 30 Jan 2006 00:50:49 +0000 (00:50 +0000)
lisp/mh-e/mh-folder.el

index cf5aad82ae98620601dc76aeec050eac2b58f6cd..98ecc06d7c256d1a358b08bb6437ba2c3fe30c53 100644 (file)
@@ -656,9 +656,7 @@ perform the operation on all messages in that region.
   (make-local-variable 'hl-line-mode)   ; avoid pollution
   (mh-funcall-if-exists hl-line-mode 1)
   (setq revert-buffer-function 'mh-undo-folder)
-  (or (assq 'mh-showing-mode minor-mode-alist)
-      (setq minor-mode-alist
-            (cons '(mh-showing-mode " Show") minor-mode-alist)))
+  (add-to-list 'minor-mode-alist '(mh-showing-mode " Show"))
   (easy-menu-add mh-folder-sequence-menu)
   (easy-menu-add mh-folder-message-menu)
   (easy-menu-add mh-folder-folder-menu)