Commit 0c325082 authored by Stefan Monnier's avatar Stefan Monnier
Browse files

* lisp/electric.el (electric-pair-post-self-insert-function): Let user

turn it off buffer-locally.

Fixes: debbugs:9932
parent 90132c14
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).
......
......@@ -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)) ?\" ?\())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment