diff options
| -rw-r--r-- | lisp/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/cus-edit.el | 3 | ||||
| -rw-r--r-- | lisp/font-lock.el | 8 |
3 files changed, 19 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index cfe2b2ee82d..d30fbe87852 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -212,6 +212,15 @@ | |||
| 212 | 212 | ||
| 213 | 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca> | 213 | 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca> |
| 214 | 214 | ||
| 215 | * font-lock.el (font-lock-add-keywords): In case font-lock was only | ||
| 216 | half-activated, forcefully activate it completely. | ||
| 217 | |||
| 218 | 2007-06-11 Richard Stallman <rms@gnu.org> | ||
| 219 | |||
| 220 | * cus-edit.el (custom-variable-type): Doc fix. | ||
| 221 | |||
| 222 | 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 223 | |||
| 215 | * progmodes/sh-script.el (sh-font-lock-backslash-quote) | 224 | * progmodes/sh-script.el (sh-font-lock-backslash-quote) |
| 216 | (sh-font-lock-flush-syntax-ppss-cache): New functions. | 225 | (sh-font-lock-flush-syntax-ppss-cache): New functions. |
| 217 | (sh-font-lock-syntactic-keywords): Use them to distinguish the | 226 | (sh-font-lock-syntactic-keywords): Use them to distinguish the |
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el index 4dae3bab018..0984fc73e43 100644 --- a/lisp/cus-edit.el +++ b/lisp/cus-edit.el | |||
| @@ -2500,7 +2500,8 @@ However, setting it through Custom sets the default value.") | |||
| 2500 | (defun custom-variable-type (symbol) | 2500 | (defun custom-variable-type (symbol) |
| 2501 | "Return a widget suitable for editing the value of SYMBOL. | 2501 | "Return a widget suitable for editing the value of SYMBOL. |
| 2502 | If SYMBOL has a `custom-type' property, use that. | 2502 | If SYMBOL has a `custom-type' property, use that. |
| 2503 | Otherwise, look up symbol in `custom-guess-type-alist'." | 2503 | Otherwise, try matching SYMBOL against `custom-guess-name-alist' and |
| 2504 | try matching its doc string against `custom-guess-doc-alist'." | ||
| 2504 | (let* ((type (or (get symbol 'custom-type) | 2505 | (let* ((type (or (get symbol 'custom-type) |
| 2505 | (and (not (get symbol 'standard-value)) | 2506 | (and (not (get symbol 'standard-value)) |
| 2506 | (custom-guess-type symbol)) | 2507 | (custom-guess-type symbol)) |
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. |