syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.64k stars 4.89k forks source link

[BUG] languagetool layer correct buffer doesn't work #14390

Closed Novite5 closed 3 years ago

Novite5 commented 3 years ago

Description :octocat:

languagetool layer doesn't work, can't get to some functions.

Reproduction guide :beetle:

Observed behaviour: :eyes: :broken_heart: Press SPC S L, print out the information: command-execute: Wrong type argument: commandp, langtool-correct-buffer

But SPC S l works.

M-X can only find two commands: langtool-check and langtool-check-buffer

Previously I use langtool as additional package, all commands can be found.

Expected behaviour: :heart: :smile: <>

System Info :computer:

Backtrace :paw_prints:

<<BACKTRACE IF RELEVANT>>
smile13241324 commented 3 years ago

commandp hints to a non interactive function being linked to a key binding, if the function makes sense here it must be wrapped into an interactive one.

Novite5 commented 3 years ago

As non-programmer I have no idea how to solve this problem.

But could this be caused by langtool package in elpa? Because even in M-x can't find langtool-correct-this-buffer command.

smile13241324 commented 3 years ago

@Novite5 no problem I can take care. About the source I am not sure, basically someone did bound a non interactive function at a slot were only interactive functions are allowed. This could have been wrong from the beginning or have been changed afterwards.

Anyway the change should be pretty easy, let me have a look.

smile13241324 commented 3 years ago

Done, the package was missing an autoload on langtool-correct-this-buffer. I have added this in our use-package declaration now and the issue was gone for me. @Novite5 can you double check?

Novite5 commented 3 years ago

Yes. It has been fixed. Thank you very much for your work! :)