diff options
author | Alan Mackenzie <acm@muc.de> | 2019-12-07 18:55:19 +0000 |
---|---|---|
committer | Alan Mackenzie <acm@muc.de> | 2019-12-07 18:55:19 +0000 |
commit | 68d4a14fd46754c3951dd669c9821447bfbe844e (patch) | |
tree | f080f2651bb3ff1257e27d26788d10ce38069af6 /lisp/emacs-lisp/generic.el | |
parent | 959bbf30032c365c9e6f08dc9211d6bab3123f35 (diff) | |
download | emacs-68d4a14fd46754c3951dd669c9821447bfbe844e.tar.gz emacs-68d4a14fd46754c3951dd669c9821447bfbe844e.tar.bz2 emacs-68d4a14fd46754c3951dd669c9821447bfbe844e.zip |
CC Mode: Allow most functions on post-self-insert-hook to be called
This contrasts with the previous state where no such functions got called.
This fixes bug #38406.
* lisp/progmodes/cc-cmds.el (c--unsafe-post-self-insert-hook-functions): New
variable.
(c--call-post-self-insert-hook-more-safely-1): New function.
(c--call-post-self-insert-hook-more-safely): New macro.
(c-electric-pound, c-electric-brace, c-electric-slash, c-electric-star)
(c-electric-semi&comma, c-electric-colon, c-electric-lt-gt, c-electric-paren):
Invoke c--call-post-self-insert-hook-more-safely (which calls most of the hook
post-self-insert-hook) at the end of each of the commands.
Diffstat (limited to 'lisp/emacs-lisp/generic.el')
0 files changed, 0 insertions, 0 deletions