Commit graph

12 commits

Author SHA1 Message Date
Itai Y. Efrat
24eaa1317c completion/selectrum -> completion/vertico, part 2
- Rename module from `:completion selectrum` to `:completion vertico`
- Rename all files involved
- Do *not* yet rename all the functions, as that messes up git's rename
  detection.
2021-07-25 02:51:15 +03:00
Itai Y. Efrat
8e6371760a selectrum: add spellcheck support 2021-07-25 02:49:41 +03:00
Youmu
d61a38ff71
spell: fix undefined variable 2021-07-18 18:36:07 +08:00
Ian Wahbe
448bff2fd8 Implement cleaner version 2020-12-06 23:57:40 +01:00
Ian Wahbe
a51be66d30 Add word existence checking for +spell/correct
`(bounds-of-thing-at-point 'word)` can return `nil`. This checks that it
does not, giving an `user-error` if no word is found.
2020-12-06 19:18:36 +01:00
Ian Wahbe
a31dced7bc Requested changes -- move defvar to preface
We can now remove the redundant hack.
2020-11-13 20:51:54 +01:00
Ian Wahbe
ea16bb66c3 Fix behaviour without aspell
If aspell (or a spell-fu acceptable equivalent) warn the user. If it
failed to bind +spell-correct-interface, and bind that.

Remove previous hack. It prevents use of +spell/correct if spell-fu does
not try to highlight a word. This is extreamly common is docstrings, for
example. I think having +spell/correct should check any word it is
called upon, even without general text highlighting.
2020-11-13 15:37:20 +01:00
Thomas Stenhaug
90b330bbc5 Fix +spell/add-word when using flyspell
``+spell/add-word`` expects `flyspell-get-word` to return as a string
the current word. Instead, it returns a list of the form
`(<word> <start-pos> <end-pos>)`.
2020-09-14 13:02:35 +02:00
Henrik Lissner
b0cd0e5efe
Change scope of +spell/add-word with universal arg
C-u +spell/add-word -> add word for current buffer
C-u C-u +spell/add-word -> add word for session buffer
2020-09-02 14:07:22 -04:00
Henrik Lissner
91c1e705e6
checkers/spell: add add/remove word & next/prev error commands
So both spell-fu and flyspell users have a more consistent interface.
2020-09-02 13:58:27 -04:00
Henrik Lissner
bfd71a8bb9
Fix #3827: void-variable flyspell-delayed-commands
This occurs in org-compat.el:

  (eval-after-load "flyspell"
    '(add-to-list 'flyspell-delayed-commands 'org-self-insert-command))

By not using a package symbol, this code runs whenever any file named
flyspell.el is loaded. Guess what one of the :checkers spell module's
autoloads files is named? flyspell.el
2020-08-26 19:33:24 -04:00
Henrik Lissner
e3750dbf66
checkers/spell: add +flyspell flag
spell-fu lacks support for multiple dictionaries, affix expansion, and
many non-English dictionaries, so I've added back flyspell support to
the spell module, but opt-in, because it is still the significantly
slower option and spell-fu may support them one day.

If not, tlikonen/wcheck-mode is another alternative to consider.

Fixes #3813
2020-08-23 18:48:50 -04:00