mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-23 07:19:15 +00:00
Fix inability to turn show-paren-local-mode on manually (bug#61098)
* lisp/paren.el (show-paren-local-mode): Don't kill the local value when both local and global are t. Because the show-paren-predicate check in show-paren-function also checks whether a local (non-nil) value of this variable exists.
This commit is contained in:
parent
24085ba610
commit
6568a1aaf9
@ -166,8 +166,8 @@ use `show-paren-local-mode'."
|
||||
(cond
|
||||
((eq show-paren-mode (default-value 'show-paren-mode))
|
||||
(unless show-paren-mode
|
||||
(show-paren--delete-overlays))
|
||||
(kill-local-variable 'show-paren-mode))
|
||||
(show-paren--delete-overlays)
|
||||
(kill-local-variable 'show-paren-mode)))
|
||||
((not (default-value 'show-paren-mode))
|
||||
;; Locally enabled, but globally disabled.
|
||||
(show-paren-mode 1) ; Setup the timer.
|
||||
|
Loading…
Reference in New Issue
Block a user