(show-paren-mode): No longer change `blink-matching-paren-on-screen'.

This commit is contained in:
Luc Teirlinck 2005-11-27 15:54:28 +00:00
parent 92aa8a331e
commit 965cd29a27

View file

@ -110,14 +110,7 @@ Returns the new status of Show Paren mode (non-nil means on).
When Show Paren mode is enabled, any matching parenthesis is highlighted
in `show-paren-style' after `show-paren-delay' seconds of Emacs idle time."
:global t :group 'paren-showing
;; Turn off the usual paren-matching method
;; when this one is turned on.
(if (local-variable-p 'show-paren-mode)
(make-local-variable 'blink-matching-paren-on-screen)
(kill-local-variable 'blink-matching-paren-on-screen))
(setq blink-matching-paren-on-screen (not show-paren-mode))
;; Now enable or disable the mechanism.
;; Enable or disable the mechanism.
;; First get rid of the old idle timer.
(if show-paren-idle-timer
(cancel-timer show-paren-idle-timer))