summaryrefslogtreecommitdiff
path: root/lisp/paren.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2012-08-29 21:44:11 -0400
committerGlenn Morris <rgm@gnu.org>2012-08-29 21:44:11 -0400
commit69ba1f04209e5ee67021ba872f6df98559bdb94a (patch)
tree8a5c6e9c0aa7e1288de85500993e032ffd8b5721 /lisp/paren.el
parent31d024384ce7b399475651d7114b097a0309152c (diff)
downloademacs-69ba1f04209e5ee67021ba872f6df98559bdb94a.tar.gz
emacs-69ba1f04209e5ee67021ba872f6df98559bdb94a.tar.bz2
emacs-69ba1f04209e5ee67021ba872f6df98559bdb94a.zip
* lisp/paren.el (show-paren-delay): Add a :set function. Doc fix. (Bug#12297)
Diffstat (limited to 'lisp/paren.el')
-rw-r--r--lisp/paren.el11
1 files changed, 10 insertions, 1 deletions
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