mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
* lisp/electric.el (electric-pair-post-self-insert-function): Let user
turn it off buffer-locally. Fixes: debbugs:9932
This commit is contained in:
parent
90132c1485
commit
0c32508203
2 changed files with 4 additions and 0 deletions
|
|
@ -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)) ?\" ?\())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue