diff options
| author | Miles Bader | 2007-06-14 09:59:49 +0000 |
|---|---|---|
| committer | Miles Bader | 2007-06-14 09:59:49 +0000 |
| commit | 7e76cdd807ee8253c2115ca9cdcd457f98ef01ac (patch) | |
| tree | 4b2e2d804e0cdb552223b4e00c964539cc5618fb /lisp/font-lock.el | |
| parent | 446ba96f1f6d175e07f388fb8e571355dd00465f (diff) | |
| parent | 524705ae2da95c571fedb83b3a1c3a80e1335a72 (diff) | |
| download | emacs-7e76cdd807ee8253c2115ca9cdcd457f98ef01ac.tar.gz emacs-7e76cdd807ee8253c2115ca9cdcd457f98ef01ac.zip | |
Merge from emacs--rel--22
Patches applied:
* emacs--rel--22 (patch 43-44)
- Update from CVS
- Merge from gnus--rel--5.10
* gnus--rel--5.10 (patch 229)
- Merge from emacs--devo--0, emacs--rel--22
2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
* lisp/font-lock.el (font-lock-add-keywords): In case font-lock was only
half-activated, forcefully activate it completely.
2007-06-11 Richard M. Stallman <rms@gnu.org>
* lisp/cus-edit.el (custom-variable-type): Doc fix.
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-797
Diffstat (limited to 'lisp/font-lock.el')
| -rw-r--r-- | lisp/font-lock.el | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lisp/font-lock.el b/lisp/font-lock.el index c826a5f20c6..265cc4bf682 100644 --- a/lisp/font-lock.el +++ b/lisp/font-lock.el | |||
| @@ -698,6 +698,14 @@ see the variables `c-font-lock-extra-types', `c++-font-lock-extra-types', | |||
| 698 | ;; contain the new keywords. | 698 | ;; contain the new keywords. |
| 699 | (font-lock-update-removed-keyword-alist mode keywords how)) | 699 | (font-lock-update-removed-keyword-alist mode keywords how)) |
| 700 | (t | 700 | (t |
| 701 | (when (and font-lock-mode | ||
| 702 | (not (or font-lock-keywords font-lock-defaults))) | ||
| 703 | ;; The major mode has not set any keywords, so when we enabled | ||
| 704 | ;; font-lock-mode it only enabled the font-core.el part, not the | ||
| 705 | ;; font-lock-mode-internal. Try again. | ||
| 706 | (font-lock-mode -1) | ||
| 707 | (set (make-local-variable 'font-lock-defaults) '(nil t)) | ||
| 708 | (font-lock-mode 1)) | ||
| 701 | ;; Otherwise set or add the keywords now. | 709 | ;; Otherwise set or add the keywords now. |
| 702 | ;; This is a no-op if it has been done already in this buffer | 710 | ;; This is a no-op if it has been done already in this buffer |
| 703 | ;; for the correct major mode. | 711 | ;; for the correct major mode. |