From 407f5edd353e13f53ac82f9617f477352914008d Mon Sep 17 00:00:00 2001 From: Luc Teirlinck Date: Tue, 29 Nov 2005 05:03:21 +0000 Subject: [PATCH] Throw error if facemenu is not loaded to prevent accidental change of loading order in loadup.el. (Suggested by RMS.) --- lisp/font-lock.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/font-lock.el b/lisp/font-lock.el index b3a4a80e04a..e14ee816473 100644 --- a/lisp/font-lock.el +++ b/lisp/font-lock.el @@ -1123,8 +1123,9 @@ delimit the region to fontify." (font-lock-fontify-region (point) (mark))) ((error quit) (message "Fontifying block...%s" error-data))))))) -(if (boundp 'facemenu-keymap) - (define-key facemenu-keymap "\M-o" 'font-lock-fontify-block)) +(unless (featurep 'facemenu) + (error "facemenu must be loaded before font-lock")) +(define-key facemenu-keymap "\M-o" 'font-lock-fontify-block) ;;; End of Fontification functions. -- 2.39.5