Make Re: recognition in ispell-message less ambiguous

* lisp/textmodes/ispell.el (ispell-message): Require a "Re" as a
word, not as a word ending (bug#52104).
This commit is contained in:
Lars Ingebrigtsen 2021-11-29 17:08:11 +01:00
parent f0eba4ea5e
commit 73cf27aa45

View file

@ -3977,7 +3977,7 @@ You can bind this to the key C-c i in GNUS or mail by adding to
(if (re-search-forward "^Subject: *" end-of-headers t)
(progn
(goto-char (match-end 0))
(if (and (not (looking-at ".*Re\\>"))
(if (and (not (looking-at ".*\\<Re\\>"))
(not (looking-at "\\[")))
(progn
(setq case-fold-search old-case-fold-search)