summaryrefslogtreecommitdiff
path: root/lisp/speedbar.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2009-02-10 05:26:52 +0000
committerGlenn Morris <rgm@gnu.org>2009-02-10 05:26:52 +0000
commit6922e96e5bd8011bc23b18b913a8288d547cc806 (patch)
tree2e5b6725c5a8d6ddbf6abad275c25f82f4a905bb /lisp/speedbar.el
parent0aeb3666c01993e82d0ca98e757565bf34190f55 (diff)
downloademacs-6922e96e5bd8011bc23b18b913a8288d547cc806.tar.gz
Fix stupidity in previous change.
Diffstat (limited to 'lisp/speedbar.el')
-rw-r--r--lisp/speedbar.el7
1 files changed, 3 insertions, 4 deletions
diff --git a/lisp/speedbar.el b/lisp/speedbar.el
index ca2c102b35b..bd589f507ff 100644
--- a/lisp/speedbar.el
+++ b/lisp/speedbar.el
@@ -4127,10 +4127,9 @@ TEXT is the buffer's name, TOKEN and INDENT are unused."
(if (eq font-lock-global-modes t)
(setq font-lock-global-modes '(not speedbar-mode))
(if (eq (car font-lock-global-modes) 'not)
- (add-to-list 'font-lock-global-modes 'speedbar-mode t))))
-;; If f-l-g-m is a non-empty list that doesn't begin with not, there
-;; is nothing we can do.
-
+ (add-to-list 'font-lock-global-modes 'speedbar-mode t)
+ (setq font-lock-global-modes (delq 'speedbar-mode
+ font-lock-global-modes)))))
;;; Obsolete variables and functions