diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2011-11-09 10:10:25 -0500 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2011-11-09 10:10:25 -0500 |
commit | 0c325082036f353caf94bcd5ef02baee9c81bdf7 (patch) | |
tree | ad4caed84634902fdc8227f3bebfd450ea560712 /lisp/electric.el | |
parent | 90132c14854a1b92cc2141ea2a863bc0cbdcfcff (diff) | |
download | emacs-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.el | 1 |
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)) ?\" ?\()) |