1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00
emacs/test/lisp/textmodes
Reuben Thomas e1f851e840 Fix ispell’s handling of comment-end when adding local words
* lisp/textmodes/ispell.el (ispell-add-per-file-word-list): Deal
with `comment-end' in a way that works for comments that don’t
nest.

We proceed as follows: when `comment-end' is non-empty, we only
ever insert one start and one end comment, the first time we add
a local word.  This works with both C-style (which don’t nest)
and Rust-style comments (which do).

If we’re using line comments (i.e. comments that only have a
`comment-start'), then continue to insert one on each line.

* test/lisp/textmodes/ispell-tests/ispell-tests.el
(ispell/ispell-add-per-file-word-list/nxml): Adjust test.

Bug#79871
2025-11-22 13:15:45 +02:00
..
css-mode-resources
emacs-news-mode-resources
fill-resources Update `fill-region-as-paragraph-semlf' to follow fill.el protocols 2025-06-30 17:33:43 -04:00
ispell-resources Fix ispell-tests on emacs CI 2025-10-19 12:14:58 +02:00
ispell-tests Fix ispell’s handling of comment-end when adding local words 2025-11-22 13:15:45 +02:00
paragraphs-resources
texinfo-resources
bibtex-tests.el
conf-mode-tests.el
css-mode-tests.el
dns-mode-tests.el
emacs-news-mode-tests.el
fill-tests.el Update `fill-region-as-paragraph-semlf' to follow fill.el protocols 2025-06-30 17:33:43 -04:00
mhtml-mode-tests.el
page-tests.el
paragraphs-tests.el
po-tests.el
reftex-tests.el
sgml-mode-tests.el
texinfo-tests.el
tildify-tests.el
underline-tests.el