]> git.eshelyaron.com Git - emacs.git/commit
CC Mode: Allow the insertion of long strings of letters in reasonable time
authorAlan Mackenzie <acm@muc.de>
Tue, 9 Aug 2022 10:46:21 +0000 (10:46 +0000)
committerAlan Mackenzie <acm@muc.de>
Tue, 9 Aug 2022 10:46:21 +0000 (10:46 +0000)
commit7497aeff644f9d1ce542de12d8301fd13a85e90a
tree1e73aca3e7dbc36b59e4e38d54ba8f7165dbea9a
parent97a54d132732131fb7635d91a45cf2088e98b60b
CC Mode: Allow the insertion of long strings of letters in reasonable time

This fix allows M-: (insert (make-string 1000000 ?y)) to work fast when
inserted between C++ raw string delimiters after (setq long-line-threshold
nil).

* lisp/progmodes/cc-langs.el (c-symbol-key): Replace a "*" by "\\{,1000\\}" in
a regexp.
lisp/progmodes/cc-langs.el