aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2004-03-26 15:16:42 +0000
committerStefan Monnier2004-03-26 15:16:42 +0000
commit7d0b18b11a00ccd546bd4b902a990cf66cf19835 (patch)
treeb132084739b772515f2ec988fdff465e3bf0a064
parente09dc079db34ea6a3e49eba722edc13ca76ee593 (diff)
downloademacs-7d0b18b11a00ccd546bd4b902a990cf66cf19835.tar.gz
emacs-7d0b18b11a00ccd546bd4b902a990cf66cf19835.zip
(ediff-hide-face): Check that facemenu-unlisted-faces is bound before using it.
(ediff-verbose-p): Make it into a var since it's not constant.
-rw-r--r--lisp/ediff-init.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/ediff-init.el b/lisp/ediff-init.el
index 4f5786651f5..81299b9c63a 100644
--- a/lisp/ediff-init.el
+++ b/lisp/ediff-init.el
@@ -1,6 +1,6 @@
1;;; ediff-init.el --- Macros, variables, and defsubsts used by Ediff 1;;; ediff-init.el --- Macros, variables, and defsubsts used by Ediff
2 2
3;; Copyright (C) 1994, 95, 96, 97, 98, 99, 2000, 01, 02 Free Software Foundation, Inc. 3;; Copyright (C) 1994, 95, 96, 97, 98, 99, 2000, 01, 02, 04 Free Software Foundation, Inc.
4 4
5;; Author: Michael Kifer <kifer@cs.stonybrook.edu> 5;; Author: Michael Kifer <kifer@cs.stonybrook.edu>
6 6
@@ -895,7 +895,8 @@ to temp files when Ediff needs to find fine differences."
895 (sit-for 1))))) 895 (sit-for 1)))))
896 896
897(defun ediff-hide-face (face) 897(defun ediff-hide-face (face)
898 (if (and (ediff-has-face-support-p) ediff-emacs-p) 898 (if (and (ediff-has-face-support-p) (boundp 'add-to-list)
899 (boundp 'facemenu-unlisted-faces))
899 (add-to-list 'facemenu-unlisted-faces face))) 900 (add-to-list 'facemenu-unlisted-faces face)))
900 901
901 902
@@ -1288,7 +1289,7 @@ This property can be toggled interactively."
1288;;; Misc 1289;;; Misc
1289 1290
1290;; if nil, this silences some messages 1291;; if nil, this silences some messages
1291(defconst ediff-verbose-p t) 1292(defvar ediff-verbose-p t)
1292 1293
1293(defcustom ediff-autostore-merges 'group-jobs-only 1294(defcustom ediff-autostore-merges 'group-jobs-only
1294 "*Save the results of merge jobs automatically. 1295 "*Save the results of merge jobs automatically.