diff options
| author | Luc Teirlinck | 2005-11-29 05:03:21 +0000 |
|---|---|---|
| committer | Luc Teirlinck | 2005-11-29 05:03:21 +0000 |
| commit | 407f5edd353e13f53ac82f9617f477352914008d (patch) | |
| tree | 312ff360fa1cf86b1a197c5909bac9d5d337eafa | |
| parent | 846e22f8a877bc30365581447d91cd7de1e4645d (diff) | |
| download | emacs-407f5edd353e13f53ac82f9617f477352914008d.tar.gz emacs-407f5edd353e13f53ac82f9617f477352914008d.zip | |
Throw error if facemenu is not loaded to prevent accidental change of
loading order in loadup.el. (Suggested by RMS.)
| -rw-r--r-- | lisp/font-lock.el | 5 |
1 files 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." | |||
| 1123 | (font-lock-fontify-region (point) (mark))) | 1123 | (font-lock-fontify-region (point) (mark))) |
| 1124 | ((error quit) (message "Fontifying block...%s" error-data))))))) | 1124 | ((error quit) (message "Fontifying block...%s" error-data))))))) |
| 1125 | 1125 | ||
| 1126 | (if (boundp 'facemenu-keymap) | 1126 | (unless (featurep 'facemenu) |
| 1127 | (define-key facemenu-keymap "\M-o" 'font-lock-fontify-block)) | 1127 | (error "facemenu must be loaded before font-lock")) |
| 1128 | (define-key facemenu-keymap "\M-o" 'font-lock-fontify-block) | ||
| 1128 | 1129 | ||
| 1129 | ;;; End of Fontification functions. | 1130 | ;;; End of Fontification functions. |
| 1130 | 1131 | ||