mhayashi1120 / Emacs-langtool

LanguageTool for Emacs
GNU General Public License v3.0
377 stars 31 forks source link

Fix langtool-disabled-rules for v2 API #41

Closed rememberYou closed 5 years ago

rememberYou commented 5 years ago

Fix the issue with langtool-disabled-rules for the v2 API of LanguageTool.

To reproduce the issue, you need to set the langtool-disabled-rules variable to something different than nil: (setq langtool-disabled-rules '("WHITESPACE_RULE"))

Then, you open a buffer M-x switch-to-buffer and use langtool-check. This, will cause the following error: Error: You specified 'disabled' but the parameter is now called 'disabledRules' in v2 of the API

rememberYou commented 5 years ago

@mhayashi1120 First of all, thank you for your work for this wonderful package.

I know you don't have much time right now, but can you merge this pull request? This problem is urgent to solve because users can no longer use langtool-disabled-rules with langtool-check.

mhayashi1120 commented 5 years ago

Merged. Thanks!