1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-14 07:20:35 -08:00
emacs/lisp/textmodes
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
..
artist.el
bib-mode.el
bibtex-style.el
bibtex.el
conf-mode.el
css-mode.el
dns-mode.el Recognize backslash in dns-mode quoted values 2023-10-21 12:28:34 +02:00
emacs-authors-mode.el
emacs-news-mode.el
enriched.el ; Grammar fixes ("allow to" et al) 2023-09-17 16:49:21 +02:00
fill.el Eliminate some nested repetitions in regexps 2023-10-29 17:40:36 +01:00
flyspell.el Mark two flyspell functions as internal 2023-09-08 16:47:33 +02:00
glyphless-mode.el Address defcustom :type warnings 2023-09-26 09:29:39 +02:00
html-ts-mode.el
ispell.el Merge from origin/emacs-29 2023-09-09 04:32:45 -04:00
less-css-mode.el
makeinfo.el
mhtml-mode.el
nroff-mode.el
page-ext.el
page.el
paragraphs.el
picture.el
pixel-fill.el
po.el
refbib.el
refer.el
refill.el
reftex-auc.el
reftex-cite.el
reftex-dcr.el
reftex-global.el
reftex-index.el
reftex-parse.el
reftex-ref.el
reftex-sel.el
reftex-toc.el
reftex-vars.el
reftex.el
remember.el
rst.el
sgml-mode.el Declare more functions as shift-translatable motion commands 2023-09-16 13:06:41 +03:00
string-edit.el
table.el
tex-mode.el Merge from origin/emacs-29 2023-09-09 04:32:45 -04:00
texinfmt.el
texinfo.el
texnfo-upd.el
text-mode.el
tildify.el
toml-ts-mode.el
two-column.el
underline.el
word-wrap-mode.el
yaml-ts-mode.el