From 28c6679241cc56d133d233a72a9ac0608e7771af Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Tue, 13 Jan 2009 13:58:25 +0000 Subject: [PATCH] (diff-mode-menu): Do not assume whitespace-mode is loaded. --- lisp/diff-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/diff-mode.el b/lisp/diff-mode.el index eb0807cc095..28ad437f15d 100644 --- a/lisp/diff-mode.el +++ b/lisp/diff-mode.el @@ -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 -- 2.39.2