bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#12297: show-paren-mode only recognizes show-paren-delay value on act


From: Glenn Morris
Subject: bug#12297: show-paren-mode only recognizes show-paren-delay value on activation
Date: Wed, 29 Aug 2012 21:45:26 -0400
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

Version: 24.3

Roy Crihfield wrote:

> Activating show-paren-mode sets the delay time to show-paren-delay
> initially, but altering that value later has no effect.

OK, fixed in current trunk.

*** lisp/paren.el       2012-04-09 13:05:48 +0000
--- lisp/paren.el       2012-08-30 01:37:52 +0000
***************
*** 52,59 ****
    :group 'paren-showing)
  
  (defcustom show-paren-delay 0.125
!   "Time in seconds to delay before showing a matching paren."
    :type '(number :tag "seconds")
    :group 'paren-showing)
  
  (defcustom show-paren-priority 1000
--- 52,68 ----
    :group 'paren-showing)
  
  (defcustom show-paren-delay 0.125
!   "Time in seconds to delay before showing a matching paren.
! If you change this without using customize while `show-paren-mode' is
! active, you must toggle the mode off and on again for this to take effect."
    :type '(number :tag "seconds")
+   :initialize 'custom-initialize-default
+   :set (lambda (sym val)
+        (if (not show-paren-mode)
+            (set sym val)
+          (show-paren-mode -1)
+          (set sym val)
+          (show-paren-mode 1)))
    :group 'paren-showing)
  
  (defcustom show-paren-priority 1000






reply via email to

[Prev in Thread] Current Thread [Next in Thread]