From 6568a1aaf9a97107947e801d1c3328a3119f0957 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Sun, 5 Feb 2023 19:06:47 +0200 Subject: [PATCH] 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. --- lisp/paren.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/paren.el b/lisp/paren.el index d1623a2b248..7ee4e9ae682 100644 --- a/lisp/paren.el +++ b/lisp/paren.el @@ -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. -- 2.39.5