diff options
author | Juanma Barranquero <lekktu@gmail.com> | 2012-04-21 18:57:49 +0200 |
---|---|---|
committer | Juanma Barranquero <lekktu@gmail.com> | 2012-04-21 18:57:49 +0200 |
commit | 7dd51bf1c26ff6b830d7cfad78014742afcc2e2a (patch) | |
tree | 710009940c95129a644ba8455a4ae28e66e0318d /lisp/mh-e/mh-folder.el | |
parent | d64a438f6a88f5db66ddf21ff97f9e06c00e33b0 (diff) | |
download | emacs-7dd51bf1c26ff6b830d7cfad78014742afcc2e2a.tar.gz |
Don't add modes to which-func-modes if already set to t.
* lisp/progmodes/verilog-mode.el (verilog-mode): Check whether
which-func-modes is t before adding verilog-mode.
Reported by Andy Moreton <andrewjmoreton@gmail.com>.
* lisp/mh-e/mh-folder.el (top): Check whether which-func-modes
is t before adding mh-folder-mode.
Diffstat (limited to 'lisp/mh-e/mh-folder.el')
-rw-r--r-- | lisp/mh-e/mh-folder.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/mh-e/mh-folder.el b/lisp/mh-e/mh-folder.el index 71ef87385ca..d9e6c74f3f3 100644 --- a/lisp/mh-e/mh-folder.el +++ b/lisp/mh-e/mh-folder.el @@ -520,7 +520,7 @@ font-lock is done highlighting.") ;; Register mh-folder-mode as supporting which-function-mode... (mh-require 'which-func nil t) -(when (boundp 'which-func-modes) +(when (and (boundp 'which-func-modes) (listp which-func-modes)) (add-to-list 'which-func-modes 'mh-folder-mode)) ;; Shush compiler. |