aboutsummaryrefslogtreecommitdiffstats
path: root/java/org
diff options
context:
space:
mode:
authorMattias EngdegÄrd2023-10-05 14:06:24 +0200
committerMattias EngdegÄrd2023-10-29 17:40:36 +0100
commit67977ae5974e54d34034aa7990cf22dd162c179b (patch)
treeed2ca05d33da296d0dbccc91748c7e77b295771b /java/org
parent7e47d88499f3296eb314a12f483292d9154307de (diff)
downloademacs-67977ae5974e54d34034aa7990cf22dd162c179b.tar.gz
emacs-67977ae5974e54d34034aa7990cf22dd162c179b.zip
Eliminate some nested repetitions in regexps
Nested repetitions such as (A*)* potentially take exponential time but can usually be rewritten in a faster and more readable way without much trouble. These were all found by Relint. * lisp/obsolete/terminal.el (te-parse-program-and-args): * lisp/org/org.el (org-make-tags-matcher): Apply the transform (A+B*)+ -> A(A|B)* * lisp/textmodes/fill.el (adaptive-fill-regexp): Apply the transform A*(B+A*)* -> (A|B)* * lisp/progmodes/idlw-shell.el (idlwave-shell-filter): Find the last newline or CR in a more direct way. * lisp/progmodes/vhdl-mode.el (vhdl-port-copy, vhdl-subprog-copy): Trim trailing whitespace from a string in a more direct way. All-whitespace strings are left unchanged as before.
Diffstat (limited to 'java/org')
0 files changed, 0 insertions, 0 deletions