emacs/test/lisp/erc/resources
F. Jason Park f9ecde75bb Improve use of Flyspell's API in erc-spelling
* etc/ERC-NEWS: Announce deprecation of `erc-spelling-flyspell-verify'
and `erc-spelling-unhighlight-word'.  A slight behavioral change not
worth mentioning is that, previously, ERC arranged for Flyspell to
ignore any word immediately following a forward slash anywhere in the
prompt input, even those for which the slash served as mere
punctuation (a "stroke"), as in "something/misspelt."  As of this
change, Flyspell only unconditionally exempts an initial slash-prepended
word, like "tableflip" in "ERC> /tableflip", and checks all others that
follow against known slash commands.
* lisp/erc/erc-spelling.el: Change top-level assignment of `erc-mode'
symbol-property `flyspell-mode-predicate' from
`erc-spelling-flyspell-verify' to `erc-spelling--flyspell-input-p'.
(erc-spelling-mode, erc-spelling-disable): Remove local member from
`flyspell-incorrect-hook'.
(erc-spelling-init): Add `erc-spelling--flyspell-check' to
`flyspell-incorrect-hook' locally.  Don't bother explicitly setting
`flyspell-generic-check-word-predicate' because Flyspell already does
that for clients using the `flyspell-mode-predicte' interface.
(erc-spelling-flyspell-verify, erc-spelling-unhighlight-word): Mark
obsolete.
(erc-spelling--flyspell-check, erc-spelling--flyspell-input-p): New
functions, essentially the two halves of a reworked and bifurcated
`erc-spelling-flyspell-verify'.  Though used as a predicate, the first
is not named as such because it performs side effects.
* test/lisp/erc/erc-scenarios-spelling.el: New file.
* test/lisp/erc/resources/spelling/auto-correct.eld: New file.
(Bug#75327)
2025-01-07 17:31:18 -08:00
..
base Reuse process in erc-server-delayed-check-reconnect 2024-12-27 15:14:21 -08:00
commands Make erc-cmd-AMSG session local; add /GMSG, /AME and /GME 2024-02-23 18:45:44 -08:00
dcc/chat ; Attempt to fix race in erc-buffer-display test 2023-11-01 16:14:10 -07:00
erc-d Update copyright year to 2025 2025-01-01 07:39:17 +00:00
fill Fix date-stamp regression in erc-fill-wrap 2024-05-27 16:47:24 -07:00
join Don't recurse in erc-server-delayed-check-reconnect 2024-06-05 11:58:44 -07:00
keep-place Fix regression in erc-keep-place-indicator-mode 2023-12-31 06:56:32 -08:00
match/fools Manage some text props for ERC insertion-hook members 2023-10-13 07:47:01 -07:00
networks ; Fix typos 2023-01-15 02:14:19 +01:00
sasl Add format-catalog entry for unknown chan mode in ERC 2024-05-08 17:11:26 -07:00
scrolltobottom Consider all windows in erc-scrolltobottom-mode 2023-09-10 17:58:20 -07:00
services ; Relax timeouts on some ERC tests 2023-08-15 16:47:20 -07:00
spelling Improve use of Flyspell's API in erc-spelling 2025-01-07 17:31:18 -08:00
erc-scenarios-common.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
erc-tests-common.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00