From 5f55e1592edeace67ab5f29d99091d3783f8a3e6 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Tue, 9 Jan 1996 23:19:17 +0000 Subject: [PATCH] (makefile-space-face): Don't work on facemenu-unlisted-faces if it isn't bound. --- lisp/progmodes/make-mode.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/make-mode.el b/lisp/progmodes/make-mode.el index 3132477ad90..33dc45a7cd8 100644 --- a/lisp/progmodes/make-mode.el +++ b/lisp/progmodes/make-mode.el @@ -201,7 +201,8 @@ not be enclosed in { } or ( ).") "\\(^\\..*\\)\\|\\(.*~$\\)\\|\\(.*,v$\\)\\|\\(\\.[chy]\\)" "Regex for filenames that will NOT be included in the target list.") -(add-to-list 'facemenu-unlisted-faces 'makefile-space-face) +(if (fboundp 'facemenu-unlisted-faces) + (add-to-list 'facemenu-unlisted-faces 'makefile-space-face)) (defvar makefile-space-face 'makefile-space-face "Face to use for highlighting leading spaces in Font-Lock mode.") -- 2.39.2