# HG changeset patch # User Miles Bader # Date 1181815189 0 # Node ID 92493f24adc96c614b8487b1b6f548efd9c45c7f # Parent 31af2b21fdfe09233dab50c8c4642e8e44ceeaea# Parent a8c400af8ac933a2132417a75c91db09c048b656 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 * lisp/font-lock.el (font-lock-add-keywords): In case font-lock was only half-activated, forcefully activate it completely. 2007-06-11 Richard Stallman * lisp/cus-edit.el (custom-variable-type): Doc fix. Revision: emacs@sv.gnu.org/emacs--devo--0--patch-797 diff -r 31af2b21fdfe -r 92493f24adc9 lisp/ChangeLog --- a/lisp/ChangeLog Thu Jun 14 08:40:24 2007 +0000 +++ b/lisp/ChangeLog Thu Jun 14 09:59:49 2007 +0000 @@ -212,6 +212,15 @@ 2007-06-11 Stefan Monnier + * font-lock.el (font-lock-add-keywords): In case font-lock was only + half-activated, forcefully activate it completely. + +2007-06-11 Richard Stallman + + * cus-edit.el (custom-variable-type): Doc fix. + +2007-06-11 Stefan Monnier + * progmodes/sh-script.el (sh-font-lock-backslash-quote) (sh-font-lock-flush-syntax-ppss-cache): New functions. (sh-font-lock-syntactic-keywords): Use them to distinguish the diff -r 31af2b21fdfe -r 92493f24adc9 lisp/cus-edit.el --- a/lisp/cus-edit.el Thu Jun 14 08:40:24 2007 +0000 +++ b/lisp/cus-edit.el Thu Jun 14 09:59:49 2007 +0000 @@ -2500,7 +2500,8 @@ (defun custom-variable-type (symbol) "Return a widget suitable for editing the value of SYMBOL. If SYMBOL has a `custom-type' property, use that. -Otherwise, look up symbol in `custom-guess-type-alist'." +Otherwise, try matching SYMBOL against `custom-guess-name-alist' and +try matching its doc string against `custom-guess-doc-alist'." (let* ((type (or (get symbol 'custom-type) (and (not (get symbol 'standard-value)) (custom-guess-type symbol)) diff -r 31af2b21fdfe -r 92493f24adc9 lisp/font-lock.el --- a/lisp/font-lock.el Thu Jun 14 08:40:24 2007 +0000 +++ b/lisp/font-lock.el Thu Jun 14 09:59:49 2007 +0000 @@ -698,6 +698,14 @@ ;; contain the new keywords. (font-lock-update-removed-keyword-alist mode keywords how)) (t + (when (and font-lock-mode + (not (or font-lock-keywords font-lock-defaults))) + ;; The major mode has not set any keywords, so when we enabled + ;; font-lock-mode it only enabled the font-core.el part, not the + ;; font-lock-mode-internal. Try again. + (font-lock-mode -1) + (set (make-local-variable 'font-lock-defaults) '(nil t)) + (font-lock-mode 1)) ;; Otherwise set or add the keywords now. ;; This is a no-op if it has been done already in this buffer ;; for the correct major mode.