From 69ba1f04209e5ee67021ba872f6df98559bdb94a Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Wed, 29 Aug 2012 21:44:11 -0400 Subject: [PATCH] * lisp/paren.el (show-paren-delay): Add a :set function. Doc fix. (Bug#12297) --- lisp/ChangeLog | 5 +++++ lisp/paren.el | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) 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 -- 2.39.2