aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/mh-e
diff options
context:
space:
mode:
authorJuanma Barranquero2012-04-21 18:57:49 +0200
committerJuanma Barranquero2012-04-21 18:57:49 +0200
commit7dd51bf1c26ff6b830d7cfad78014742afcc2e2a (patch)
tree710009940c95129a644ba8455a4ae28e66e0318d /lisp/mh-e
parentd64a438f6a88f5db66ddf21ff97f9e06c00e33b0 (diff)
downloademacs-7dd51bf1c26ff6b830d7cfad78014742afcc2e2a.tar.gz
emacs-7dd51bf1c26ff6b830d7cfad78014742afcc2e2a.zip
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')
-rw-r--r--lisp/mh-e/ChangeLog5
-rw-r--r--lisp/mh-e/mh-folder.el2
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/mh-e/ChangeLog b/lisp/mh-e/ChangeLog
index 2c3d0dc3803..f98b4a7490e 100644
--- a/lisp/mh-e/ChangeLog
+++ b/lisp/mh-e/ChangeLog
@@ -1,3 +1,8 @@
12012-04-21 Juanma Barranquero <lekktu@gmail.com>
2
3 * mh-folder.el (top): Check whether which-func-modes is t before
4 adding mh-folder-mode.
5
12011-11-20 Bill Wohler <wohler@newt.com> 62011-11-20 Bill Wohler <wohler@newt.com>
2 7
3 * Release MH-E version 8.3.1. 8 * Release MH-E version 8.3.1.
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.")
520 520
521;; Register mh-folder-mode as supporting which-function-mode... 521;; Register mh-folder-mode as supporting which-function-mode...
522(mh-require 'which-func nil t) 522(mh-require 'which-func nil t)
523(when (boundp 'which-func-modes) 523(when (and (boundp 'which-func-modes) (listp which-func-modes))
524 (add-to-list 'which-func-modes 'mh-folder-mode)) 524 (add-to-list 'which-func-modes 'mh-folder-mode))
525 525
526;; Shush compiler. 526;; Shush compiler.