From: Glenn Morris Date: Thu, 30 Aug 2012 01:44:11 +0000 (-0400) Subject: * lisp/paren.el (show-paren-delay): Add a :set function. Doc fix. (Bug#12297) X-Git-Tag: emacs-24.2.90~474 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=69ba1f04209e5ee67021ba872f6df98559bdb94a;p=emacs.git * lisp/paren.el (show-paren-delay): Add a :set function. Doc fix. (Bug#12297) --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 0fd323a6a2c..aa89a939f4a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2012-08-30 Glenn Morris + + * paren.el (show-paren-delay): + Add a :set function. Doc fix. (Bug#12297) + 2012-08-29 Martin Blais (tiny change) * progmodes/compile.el (compilation-always-kill): New var. diff --git a/lisp/paren.el b/lisp/paren.el index 2d6c42478e1..ab856380d3f 100644 --- a/lisp/paren.el +++ b/lisp/paren.el @@ -52,8 +52,17 @@ otherwise)." :group 'paren-showing) (defcustom show-paren-delay 0.125 - "Time in seconds to delay before showing a matching paren." + "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