(menu-bar-options-menu): Cope if text-mode-hook is not a list.
This commit is contained in:
parent
506280c317
commit
e51c889c5d
1 changed files with 3 additions and 1 deletions
|
@ -782,7 +782,9 @@ Do the same for the keys of the same name."
|
|||
;; -- Per Abrahamsen <abraham@dina.kvl.dk> 2002-02-11.
|
||||
(customize-mark-as-set 'text-mode-hook))
|
||||
:help "Automatically fill text between left and right margins"
|
||||
:button (:toggle . (member 'turn-on-auto-fill text-mode-hook))))
|
||||
:button (:toggle . (if (listp text-mode-hook)
|
||||
(member 'turn-on-auto-fill text-mode-hook)
|
||||
(eq 'turn-on-auto-fill text-mode-hook)))))
|
||||
(define-key menu-bar-options-menu [truncate-lines]
|
||||
'(menu-item "Truncate Long Lines in this Buffer"
|
||||
(lambda ()
|
||||
|
|
Loading…
Add table
Reference in a new issue