emacs/lisp/obsolete
Mattias Engdegård 67977ae597 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.
2023-10-29 17:40:36 +01:00
..
autoarg.el
autoload.el ; * lisp/obsolete/autoload.el (make-directory-autoloads): Doc fix. 2023-05-10 16:51:17 +03:00
bruce.el
cc-compat.el
cl-compat.el
cl.el
crisp.el
eieio-compat.el
eudcb-ph.el
gs.el
gulp.el
html2text.el
info-edit.el
inversion.el
iswitchb.el ; Prefer HTTPS to HTTP in more links 2023-08-02 23:32:28 +02:00
landmark.el Correct many instances of ``allows to'' 2023-09-10 09:33:50 +08:00
linum.el
longlines.el
makesum.el
mantemp.el Fix regexp bugs 2023-05-13 17:41:40 +02:00
meese.el
messcompat.el
metamail.el
mh-compat.el
netrc.el
nnir.el
otodo-mode.el
pgg-def.el
pgg-gpg.el
pgg-parse.el
pgg-pgp.el
pgg-pgp5.el
pgg.el
ps-def.el
quickurl.el
rcompile.el
rfc2368.el
rlogin.el
sb-image.el
starttls.el
sup-mouse.el
terminal.el Eliminate some nested repetitions in regexps 2023-10-29 17:40:36 +01:00
thumbs.el
tls.el
tpu-edt.el
tpu-extras.el
tpu-mapper.el
uce.el
url-about.el
url-dired.el
url-ns.el ; Silence warnings about obsolete functions 2023-09-03 11:47:01 +02:00
vc-arch.el
vc-mtn.el
vi.el
vip.el
vt-control.el
vt100-led.el
ws-mode.el
yow.el