turn it off buffer-locally.
Fixes: debbugs:9932
2011-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
+ * electric.el (electric-pair-post-self-insert-function): Let user
+ turn it off buffer-locally (bug#9932).
+
* progmodes/python.el (python-beginning-of-statement):
Rewrite (bug#2703).
(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)) ?\" ?\())