aboutsummaryrefslogtreecommitdiffstats
path: root/test/lisp/textmodes/ispell-tests (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ; Fix one of ispell-testsEli Zaretskii2026-01-181-0/+5
| | | | | | * test/lisp/textmodes/ispell-tests/ispell-tests.el (ispell/ispell-accept-buffer-local-defs/simple): Don't treat Aspell as Ispell even if it pretends to be. (Bug#80165)
* December 2025 spelling fixesPaul Eggert2025-12-261-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some of the fixes are to continue to use American rather than British spelling. * doc/misc/modus-themes.org (my-modus-themes-engraved-faces): Fix misspelled ‘:foreground’s. * etc/themes/modus-themes.el (modus-themes-faces): Fix misspelled ‘modus-themes-bold’. * lisp/emacs-lisp/rx.el (rx--normalize-char-pattern): Rename from rx--normalise-char-pattern. (rx--optimize-or-args): Rename from rx--optimise-or-args. * lisp/frame.el (frame--special-parameters): Fix misspelled "right-divider-width". * lisp/net/tramp.el (tramp-fingerprint-prompt-regexp): Use American spelling “centered”, to match current libfprintf. * lisp/org/org-fold-core.el (org-fold-core--optimize-for-huge-buffers): Rename from org-fold-core--optimise-for-huge-buffers. (org-fold-core-update-optimization): Rename from org-fold-core-update-optimisation, leaving an alias behind. (org-fold-core-remove-optimization): Rename from org-fold-core-remove-optimisation, leaving an alias behind. * lisp/org/org.el (org-advertized-archive-subtree): This alias is now obsolete. * lisp/play/zone.el (zone-ignored-buffers): Fix misspelling of ‘zone--buffer-encrypted-p’. * lisp/progmodes/csharp-mode.el (csharp-ts-mode-faces): Fix misspelling of ‘csharp’ group. * lisp/vc/vc.el (vc-clonable-backends-custom-type): Rename from vc-cloneable-backends-custom-type, leaving an alias behind. * test/lisp/emacs-lisp/bytecomp-tests.el: (bytecomp-tests--warn-arity-non-compiled-callee): Rename from bytecomp-tests--warn-arity-noncompiled-callee. (bytecomp-test-defface-spec): Reword a deliberate misspelling of “default” that is so common I don’t want it to pollute the spelling dictionary. * test/lisp/emacs-lisp/package-vc-tests.el: (package-vc-tests-preserve-artifacts): Rename from package-vc-tests-preserve-artifacts. * test/lisp/eshell/em-prompt-tests.el: (em-prompt-test/forward-backward-paragraph-1): Reword a deliberate misspelling of “goodbye” that is so common I don’t want it to pollute the spelling dictionary.
* Fix ispell’s handling of comment-end when adding local wordsReuben Thomas2025-11-221-6/+4
| | | | | | | | | | | | | | | | | | | * 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
* ; ispell-tests-common.el: tidy file-matching regexpMattias Engdegård2025-10-191-1/+1
|
* Fix ispell-tests on emacs CILockywolf2025-10-192-6/+7
| | | | | | | | | | | | | * test/lisp/textmodes/ispell-resources/fake-aspell-new.bash Error with a broken dictionary. * test/lisp/textmodes/ispell-tests/ispell-tests-common.el (ispell-tests--constants/nonexistent-dictionary): Add. (ispell-tests--some-valid-dictionary): Give fallback dictionary. * test/lisp/textmodes/ispell-tests/ispell-tests.el (ispell/ispell-accept-buffer-local-defs/received-file): Use proper broken dictionary.
* Fix detecting a working hunspell on systems without a dictionaryLockywolf2025-10-185-924/+948
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes bug#79477 and bug#79514 * test/lisp/textmodes/ispell-tests/ispell-hunspell-tests.el (ispell-tests-hunspell--hunspell-working): Implement checker. (ispell/hunspell/ispell-word/russian/check-only): Add skip-check. (ispell/hunspell/ispell-word/english/check-only): Add skip-check. (ispell/hunspell/ispell-word/language-switch/check-only): Add skip-check. (ispell/hunspell/ispell-word/russian/check-only/wrong-language): Add skip-check. (ispell/hunspell/ispell-word/multilang): Add skip-check. * test/lisp/textmodes/ispell-tests/ispell-tests-common.el (fake-aspell-path): Improve checking that an engine works. (ispell-tests--letopt): Make restoring variables more robust, rename to a local name. Add debug spec. (ispell-tests--with-ispell-global-dictionary): Rename to a local name Add debug spec. (ispell-tests--some-valid-dictionary): Add a selector for a safe dictionary. (ispell/ispell-accept-buffer-local-defs/received-file): Add. (ispell-tests--constants/english/correct-list): Add. (ispell-tests--constants/english/correct-one): Add. (ispell-tests--constants/english/wrong): Add. (ispell-tests--constants/russian/correct): Add. (ispell-tests--constants/russian/wrong): Add. (ispell-tests--constants/completion): Add. * test/lisp/textmodes/ispell-tests/ispell-tests.el (ispell/ispell-buffer-local-words/ispell-buffer-session-localwords): reverse letopt and with-ispell-dictionary. (ispell/ispell-buffer-local-words/ispell-words-keyword): reverse letopt and with-ispell-dictionary. (ispell/ispell-complete-word-interior-frag/simple): reverse letopt and with-ispell-dictionary. (ispell/ispell-complete-word/ispell-completion-at-point): reverse letopt and with-ispell-dictionary. (ispell/ispell-init-process/works-with-home): reverse letopt and with-ispell-dictionary. (ispell/ispell-kill-ispell): reverse letopt and with-ispell-dictionary. * test/lisp/textmodes/ispell-resources/fake-aspell-new.bash: Add comments on unused function. Replace echo with printf.
* ; ispell-tests: use require instead of loadMattias Engdegård2025-09-144-27/+22
|
* ; Fix last changeMichael Albinus2025-09-122-2/+2
| | | | | * test/lisp/textmodes/ispell-tests/ispell-aspell-tests.el: * test/lisp/textmodes/ispell-tests/ispell-tests.el: Fix declare-function.
* Fix last changeMichael Albinus2025-09-124-5/+5
| | | | | | | * test/lisp/textmodes/ispell-tests/ispell-aspell-tests.el: * test/lisp/textmodes/ispell-tests/ispell-hunspell-tests.el: * test/lisp/textmodes/ispell-tests/ispell-international-ispell-tests.el: * test/lisp/textmodes/ispell-tests/ispell-tests.el: Fix load argument.
* Add tests to ispell.el interactive functionsLockywolf2025-09-125-121/+731
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/textmodes/ispell.el (ispell-accept-output): Fix variable init. * test/lisp/textmodes/ispell-resources/fake-aspell-new.bash: Update mock aspell to be able to serve all tests. * test/lisp/textmodes/ispell-tests/ispell-aspell-tests.el: (ispell/aspell/ispell-word/english/correct): Implement. (ispell/aspell/ispell-word/english/incorrect): Implement. (ispell/aspell/ispell-word/english/wrong-language): Implement. * test/lisp/textmodes/ispell-tests/ispell-hunspell-tests.el Fix byte compilation errors. * test/lisp/textmodes/ispell-international-ispell-tests.el Fix byte compilation errors. * test/lisp/textmodes/ispell-tests/ispell-tests-common.el (with-ispell-global-dictionary): Implement a macro to set and restore ispell.el's global dictionary. * test/lisp/textmodes/ispell-tests/ispell-tests.el: (ispell/ispell-buffer-local-words/ispell-words-keyword): Fix CI run. (ispell/ispell-accept-buffer-local-defs/simple): Fix skip condition. (ispell/ispell--run-on-word/default): Fix skip condition. (ispell/ispell-word/default/check-only/correct): Fix global variable. (ispell/ispell-word/default/check-only/correct/add-init): Fix global variable. (ispell/ispell-word/default/check-only/incorrect): Fix skip condition. (ispell/ispell-region/incorrect): Fix postcondition. (ispell/ispell-call-process/simple): Fix emacs path. (ispell/ispell-call-process/simple-writable): Fix emacs path. (ispell/ispell-call-process-region/cat-empty): Fix emacs path. (ispell/ispell-call-process-region/cat-random): Fix emacs path. (ispell/ispell-kill-ispell): Implement. (ispell/ispell/buffer): Implement. (ispell/ispell/region): Implement. (ispell/ispell-change-dictionary): Implement. (ispell/ispell-comments-and-strings/correct): Implement. (ispell/ispell-comments-and-strings/incorrect): Implement. (ispell/ispell-comment-or-string-at-point): Implement. (ispell/ispell-pdict-save): Implement. (ispell/ispell-pdict-save/force): Implement. (ispell/ispell-pdict-save/modified): Implement. (ispell/ispell-pdict-save/unmodified): Implement. (ispell/ispell-lookup-words/simple): Implement. (ispell/ispell-complete-word/ispell-completion-at-point): Implement. (ispell/ispell-complete-word-interior-frag/simple): Implement. (ispell/ispell-minor-mode/simple): Implement. (ispell/ispell-message/correct): Implement. (ispell/ispell-message/incorrect): Implement.
* ispell.el: Add 56 tests (bug#79177)Lockywolf2025-09-075-0/+1734
* test/lisp/textmodes/ispell-tests/ispell-tests.el: * test/lisp/textmodes/ispell-tests/ispell-aspell-tests.el: * test/lisp/textmodes/ispell-tests/ispell-international-ispell-tests.el: * test/lisp/textmodes/ispell-tests/ispell-hunspell-tests.el: New files. * test/lisp/textmodes/ispell-resources/fake-aspell.bash: Add a mock `aspell' for use in ispell.el test, with old version. * test/lisp/textmodes/ispell-resources/fake-aspell-new.bash: Add a mock `aspell' for use in ispell.el test, with recent version.