diff options
author | Jim Porter <jporterbugs@gmail.com> | 2021-11-06 01:21:35 +0100 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2021-11-06 01:21:35 +0100 |
commit | b811ad15beeb4b96acb9d83b3a5770ef9f5fe172 (patch) | |
tree | bde4af0a51b414ddd5850289b8875aa07201aa6d /lisp/emacs-lisp | |
parent | cfd4d45f1164fb86bdad306ed0d532150a88f7e7 (diff) | |
download | emacs-b811ad15beeb4b96acb9d83b3a5770ef9f5fe172.tar.gz emacs-b811ad15beeb4b96acb9d83b3a5770ef9f5fe172.tar.bz2 emacs-b811ad15beeb4b96acb9d83b3a5770ef9f5fe172.zip |
Improve behavior of 'electric-pair-mode' in 'cc-mode'
* lisp/progmodes/cc-mode.el (c-electric-pair-inhibit-predicate):
Inhibit insertion of paired quote in fewer cases.
* test/lisp/electric-tests.el (define-electric-pair-test):
Add 'c-mode' to list of modes to test by default (bug#50538).
This ensures that quotes are paired correctly within comments, allows for
insertion of quote pairs immediately before another quote, and allows
inserting quote pairs within a string (thus splitting the string in two).
Diffstat (limited to 'lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions