]> git.eshelyaron.com Git - emacs.git/commitdiff
(diff-mode-menu): Do not assume whitespace-mode is loaded.
authorChong Yidong <cyd@stupidchicken.com>
Tue, 13 Jan 2009 13:58:25 +0000 (13:58 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Tue, 13 Jan 2009 13:58:25 +0000 (13:58 +0000)
lisp/diff-mode.el

index eb0807cc0953ae884f48aea93875d41109caaa1d..28ad437f15d220d17786ebdcbd2e9cdfc181ce0f 100644 (file)
@@ -184,7 +184,7 @@ when editing big diffs)."
      :help "Convert unified diffs to context diffs"]
     ;;["Fixup Headers"         diff-fixup-modifs       (not buffer-read-only)]
     ["Show trailing whitespace" whitespace-mode
-     :style toggle :selected whitespace-mode
+     :style toggle :selected (and (boundp 'whitespace-mode) whitespace-mode)
      :help "Show trailing whitespace in modified lines"]
     "-----"
     ["Split hunk"              diff-split-hunk