aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Mackenzie2022-08-09 10:46:21 +0000
committerAlan Mackenzie2022-08-09 10:46:21 +0000
commit7497aeff644f9d1ce542de12d8301fd13a85e90a (patch)
tree1e73aca3e7dbc36b59e4e38d54ba8f7165dbea9a
parent97a54d132732131fb7635d91a45cf2088e98b60b (diff)
downloademacs-7497aeff644f9d1ce542de12d8301fd13a85e90a.tar.gz
emacs-7497aeff644f9d1ce542de12d8301fd13a85e90a.zip
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.
-rw-r--r--lisp/progmodes/cc-langs.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/cc-langs.el b/lisp/progmodes/cc-langs.el
index c5964165c8d..75f1660f221 100644
--- a/lisp/progmodes/cc-langs.el
+++ b/lisp/progmodes/cc-langs.el
@@ -850,7 +850,7 @@ This is of the form that fits inside [ ] in a regexp."
850 "Regexp matching identifiers and keywords (with submatch 0). Assumed 850 "Regexp matching identifiers and keywords (with submatch 0). Assumed
851to match if `c-symbol-start' matches on the same position." 851to match if `c-symbol-start' matches on the same position."
852 t (concat (c-lang-const c-symbol-start) 852 t (concat (c-lang-const c-symbol-start)
853 "[" (c-lang-const c-symbol-chars) "]*") 853 "[" (c-lang-const c-symbol-chars) "]\\{,1000\\}")
854 pike (concat 854 pike (concat
855 ;; Use the value from C here since the operator backquote is 855 ;; Use the value from C here since the operator backquote is
856 ;; covered by the other alternative. 856 ;; covered by the other alternative.