emacs/lisp/textmodes
Mattias Engdegård 26f735ff19 Add standard unmatchable regexp
Add `regexp-unmatchable' as a standard unmatchable regexp, defined as
"\\`a\\`".  Use it where such a regexp is needed, replacing slower
expressions in several places.
From a suggestion by Philippe Schnoebelen.

* lisp/subr.el (regexp-unmatchable): New defconst.
* etc/NEWS (Lisp Changes): Mention `regexp-unmatchable'.
* doc/lispref/searching.texi (Regexp Functions): Document it.
* lisp/emacs-lisp/regexp-opt.el (regexp-opt)
* lisp/progmodes/cc-defs.el (cc-conditional-require-after-load)
(c-make-keywords-re)
* lisp/progmodes/cc-engine.el (c-beginning-of-statement-1)
(c-forward-<>-arglist-recur, c-forward-decl-or-cast-1)
(c-looking-at-decl-block)
* lisp/progmodes/cc-fonts.el (c-doc-line-join-re)
(c-doc-bright-comment-start-re)
* lisp/progmodes/cc-langs.el (c-populate-syntax-table)
(c-assignment-op-regexp)
(c-block-comment-ender-regexp, c-font-lock-comment-end-skip)
(c-block-comment-start-regexp, c-line-comment-start-regexp)
(c-doc-comment-start-regexp, c-decl-start-colon-kwd-re)
(c-type-decl-prefix-key, c-type-decl-operator-prefix-key)
(c-pre-id-bracelist-key, c-enum-clause-introduction-re)
(c-nonlabel-token-2-key)
* lisp/progmodes/cc-mode.el (c-doc-fl-decl-start, c-doc-fl-decl-end)
* lisp/progmodes/cc-vars.el (c-noise-macro-with-parens-name-re)
(c-noise-macro-name-re, c-make-noise-macro-regexps)
* lisp/progmodes/octave.el (octave-help-mode)
* lisp/vc/vc-bzr.el (vc-bzr-log-view-mode, vc-bzr-revision-completion-table)
* lisp/vc/vc-git.el (vc-git-log-view-mode)
* lisp/vc/vc-hg.el (vc-hg-log-view-mode)
* lisp/vc/vc-mtn.el (vc-mtn-log-view-mode):
Use `regexp-unmatchable'.
* lisp/textmodes/ispell.el (ispell-non-empty-string):
Use `regexp-unmatchable', fixing a broken never-match regexp.
2019-05-15 18:55:27 +02:00
..
artist.el Fix some ineffective backslashes in string literals 2019-03-16 11:38:58 -07:00
bib-mode.el Fix more regular expression typos 2019-03-18 17:02:29 -07:00
bibtex-style.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
bibtex.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
conf-mode.el Use lexical binding for conf-mode 2019-02-15 10:38:11 +02:00
css-mode.el Tune css-mode regexp 2019-03-27 11:44:09 -07:00
dns-mode.el Fix a dns-mode reentrancy bug 2019-03-25 11:29:52 -07:00
enriched.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
fill.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
flyspell.el Fix regular-expression glitches and typos 2019-03-04 18:00:58 -08:00
ispell.el Add standard unmatchable regexp 2019-05-15 18:55:27 +02:00
less-css-mode.el Improve regexp advice again, and unchain ranges 2019-04-02 15:01:34 -07:00
makeinfo.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
mhtml-mode.el Merge from origin/emacs-26 2019-01-07 11:51:38 -08:00
nroff-mode.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
page-ext.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
page.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
paragraphs.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
picture.el 2019-03-26 regex cleanup 2019-03-26 19:07:21 -07:00
po.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
refbib.el Fix more regular expression typos 2019-03-18 17:02:29 -07:00
refer.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
refill.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
reftex-auc.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
reftex-cite.el Fix regular-expression glitches and typos 2019-03-04 18:00:58 -08:00
reftex-dcr.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
reftex-global.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
reftex-index.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
reftex-parse.el Fix more regular expression typos 2019-03-18 17:02:29 -07:00
reftex-ref.el Fix regular-expression glitches and typos 2019-03-04 18:00:58 -08:00
reftex-sel.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
reftex-toc.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
reftex-vars.el ; Improve matching of key-val labels yet more (bug#34629) 2019-03-09 07:48:34 +01:00
reftex.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
remember.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
rst.el Fix more regular expression typos 2019-03-18 17:02:29 -07:00
sgml-mode.el Merge from origin/emacs-26 2019-05-14 17:18:18 -07:00
table.el Use characters, not symbols for table-cell-bindings 2019-05-11 10:19:24 -04:00
tex-mode.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
texinfmt.el More regexp corrections and tweaks 2019-03-10 23:11:21 -07:00
texinfo.el Add dwim function for inserting @ref variants 2019-02-06 18:59:01 +01:00
texnfo-upd.el More minor regex cleanup 2019-03-19 18:47:53 -07:00
text-mode.el Do not set indent-line-function in text-mode 2019-03-31 22:32:28 +01:00
tildify.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
two-column.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
underline.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00