diff options
| author | Mattias EngdegÄrd | 2023-10-05 14:06:24 +0200 |
|---|---|---|
| committer | Mattias EngdegÄrd | 2023-10-29 17:40:36 +0100 |
| commit | 67977ae5974e54d34034aa7990cf22dd162c179b (patch) | |
| tree | ed2ca05d33da296d0dbccc91748c7e77b295771b /java/debug.sh | |
| parent | 7e47d88499f3296eb314a12f483292d9154307de (diff) | |
| download | emacs-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/debug.sh')
0 files changed, 0 insertions, 0 deletions