1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00
emacs/lisp/erc
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
..
ChangeLog.1 Update copyright year to 2025 2025-01-01 07:39:17 +00:00
ChangeLog.2 Update copyright year to 2025 2025-01-01 07:39:17 +00:00
erc-autoaway.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
erc-backend.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
erc-button.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
erc-capab.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
erc-common.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
erc-compat.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
erc-dcc.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
erc-desktop-notifications.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
erc-ezbounce.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
erc-fill.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
erc-goodies.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
erc-ibuffer.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
erc-identd.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
erc-imenu.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
erc-join.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
erc-lang.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
erc-list.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
erc-log.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
erc-match.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
erc-menu.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
erc-netsplit.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
erc-networks.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
erc-nicks.el Fix regression in erc-nicks involving color pools 2025-01-07 17:27:44 -08:00
erc-notify.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
erc-page.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
erc-pcomplete.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
erc-replace.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
erc-ring.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
erc-sasl.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
erc-services.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
erc-sound.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
erc-speedbar.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
erc-spelling.el Improve use of Flyspell's API in erc-spelling 2025-01-07 17:31:18 -08:00
erc-stamp.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
erc-status-sidebar.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
erc-track.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
erc-truncate.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
erc-xdcc.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
erc.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00