aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2002-03-18 09:06:35 +0000
committerRichard M. Stallman2002-03-18 09:06:35 +0000
commite51c889c5db3388fa2fbc29b4c0d35a32f36c365 (patch)
tree34246f540d1b8a93dd33a39c952576517e3aa534
parent506280c317b15bc8fd6efd4d875d1fa59680ee5f (diff)
downloademacs-e51c889c5db3388fa2fbc29b4c0d35a32f36c365.tar.gz
emacs-e51c889c5db3388fa2fbc29b4c0d35a32f36c365.zip
(menu-bar-options-menu): Cope if text-mode-hook is not a list.
-rw-r--r--lisp/menu-bar.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el
index 2e085759eab..ad49784a312 100644
--- a/lisp/menu-bar.el
+++ b/lisp/menu-bar.el
@@ -782,7 +782,9 @@ Do the same for the keys of the same name."
782 ;; -- Per Abrahamsen <abraham@dina.kvl.dk> 2002-02-11. 782 ;; -- Per Abrahamsen <abraham@dina.kvl.dk> 2002-02-11.
783 (customize-mark-as-set 'text-mode-hook)) 783 (customize-mark-as-set 'text-mode-hook))
784 :help "Automatically fill text between left and right margins" 784 :help "Automatically fill text between left and right margins"
785 :button (:toggle . (member 'turn-on-auto-fill text-mode-hook)))) 785 :button (:toggle . (if (listp text-mode-hook)
786 (member 'turn-on-auto-fill text-mode-hook)
787 (eq 'turn-on-auto-fill text-mode-hook)))))
786(define-key menu-bar-options-menu [truncate-lines] 788(define-key menu-bar-options-menu [truncate-lines]
787 '(menu-item "Truncate Long Lines in this Buffer" 789 '(menu-item "Truncate Long Lines in this Buffer"
788 (lambda () 790 (lambda ()