diff options
| author | Glenn Morris | 2009-02-10 05:23:35 +0000 |
|---|---|---|
| committer | Glenn Morris | 2009-02-10 05:23:35 +0000 |
| commit | 0aeb3666c01993e82d0ca98e757565bf34190f55 (patch) | |
| tree | 63bf06654e5ad99b1a582f21232d82b9ef286870 | |
| parent | a35462a1b0588e71ccd3fa6e7d34696342d5cdba (diff) | |
| download | emacs-0aeb3666c01993e82d0ca98e757565bf34190f55.tar.gz emacs-0aeb3666c01993e82d0ca98e757565bf34190f55.zip | |
Avoid messing up font-lock-global-modes.
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/speedbar.el | 13 |
2 files changed, 10 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index fb59a1283c4..f5addc9374a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2009-02-10 Glenn Morris <rgm@gnu.org> | 1 | 2009-02-10 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * speedbar.el: Avoid messing up font-lock-global-modes. | ||
| 4 | |||
| 3 | * mail/mail-utils.el (mail-use-rfc822): Remove * from defcustom doc. | 5 | * mail/mail-utils.el (mail-use-rfc822): Remove * from defcustom doc. |
| 4 | (mail-file-babyl-p): Use with-temp-buffer. | 6 | (mail-file-babyl-p): Use with-temp-buffer. |
| 5 | 7 | ||
diff --git a/lisp/speedbar.el b/lisp/speedbar.el index ac10f53aa41..ca2c102b35b 100644 --- a/lisp/speedbar.el +++ b/lisp/speedbar.el | |||
| @@ -4122,11 +4122,14 @@ TEXT is the buffer's name, TOKEN and INDENT are unused." | |||
| 4122 | (def-edebug-spec speedbar-with-writable def-body))) | 4122 | (def-edebug-spec speedbar-with-writable def-body))) |
| 4123 | 4123 | ||
| 4124 | ;; Fix a font lock problem for some versions of Emacs | 4124 | ;; Fix a font lock problem for some versions of Emacs |
| 4125 | (if (boundp 'font-lock-global-modes) | 4125 | (and (boundp 'font-lock-global-modes) |
| 4126 | (if (listp font-lock-global-modes) | 4126 | font-lock-global-modes |
| 4127 | (add-to-list 'font-lock-global-modes '(not speedbar-mode)) | 4127 | (if (eq font-lock-global-modes t) |
| 4128 | ) | 4128 | (setq font-lock-global-modes '(not speedbar-mode)) |
| 4129 | ) | 4129 | (if (eq (car font-lock-global-modes) 'not) |
| 4130 | (add-to-list 'font-lock-global-modes 'speedbar-mode t)))) | ||
| 4131 | ;; If f-l-g-m is a non-empty list that doesn't begin with not, there | ||
| 4132 | ;; is nothing we can do. | ||
| 4130 | 4133 | ||
| 4131 | 4134 | ||
| 4132 | ;;; Obsolete variables and functions | 4135 | ;;; Obsolete variables and functions |