summaryrefslogtreecommitdiff
path: root/lisp/electric.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2011-11-09 10:10:25 -0500
committerStefan Monnier <monnier@iro.umontreal.ca>2011-11-09 10:10:25 -0500
commit0c325082036f353caf94bcd5ef02baee9c81bdf7 (patch)
treead4caed84634902fdc8227f3bebfd450ea560712 /lisp/electric.el
parent90132c14854a1b92cc2141ea2a863bc0cbdcfcff (diff)
downloademacs-0c325082036f353caf94bcd5ef02baee9c81bdf7.tar.gz
* lisp/electric.el (electric-pair-post-self-insert-function): Let user
turn it off buffer-locally. Fixes: debbugs:9932
Diffstat (limited to 'lisp/electric.el')
-rw-r--r--lisp/electric.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/electric.el b/lisp/electric.el
index 26fba20ea12..3d7c1fd8ac4 100644
--- a/lisp/electric.el
+++ b/lisp/electric.el
@@ -284,6 +284,7 @@ This can be convenient for people who find it easier to hit ) than C-f."
(defun electric-pair-post-self-insert-function ()
(let* ((syntax (and (eq (char-before) last-command-event) ; Sanity check.
+ electric-pair-mode
(let ((x (assq last-command-event electric-pair-pairs)))
(cond
(x (if (eq (car x) (cdr x)) ?\" ?\())