changeset 68474:07c20c57ee3d

(mh-folder-mode): Use add-to-list to modify minor-mode-alias.
author Bill Wohler <wohler@newt.com>
date Mon, 30 Jan 2006 00:50:49 +0000
parents e238dd02cdad
children fef251da6e07
files lisp/mh-e/mh-folder.el
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/mh-e/mh-folder.el	Mon Jan 30 00:49:56 2006 +0000
+++ b/lisp/mh-e/mh-folder.el	Mon Jan 30 00:50:49 2006 +0000
@@ -656,9 +656,7 @@
   (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)