1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-24 05:22:04 -08:00
emacs/test/lisp/textmodes/ispell-tests
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
..
ispell-aspell-tests.el Fix detecting a working hunspell on systems without a dictionary 2025-10-18 13:59:07 +03:00
ispell-hunspell-tests.el Fix detecting a working hunspell on systems without a dictionary 2025-10-18 13:59:07 +03:00
ispell-international-ispell-tests.el Fix detecting a working hunspell on systems without a dictionary 2025-10-18 13:59:07 +03:00
ispell-tests-common.el ; ispell-tests-common.el: tidy file-matching regexp 2025-10-19 14:09:22 +02:00
ispell-tests.el Fix ispell’s handling of comment-end when adding local words 2025-11-22 13:15:45 +02:00