diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-16 06:13:34 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-16 06:13:34 -0500 |
| commit | 5d0f98971622d14b9e8dc5f052d6aa241b35561d (patch) | |
| tree | a127ecc7d56a6784e40cf3ed96fb3dbe0df0fde9 /tests | |
| parent | ce319b7185e17f953a183e25f7293ec187c6e3de (diff) | |
| download | dotemacs-5d0f98971622d14b9e8dc5f052d6aa241b35561d.tar.gz dotemacs-5d0f98971622d14b9e8dc5f052d6aa241b35561d.zip | |
fix(flycheck): wrap languagetool checker definition in eval+backquote
flycheck's `flycheck-define-checker' macro requires the `:command'
executable to be a string literal at macro-expansion time -- it does
`(stringp (car command))' and errors otherwise. The previous
`(eval (expand-file-name ...))' form (commit a8290c3b, the
externalization fix) put a `(eval FORM)' wrapper in the executable
position, which flycheck rejected at load:
Error (use-package): recentf/:config: Command executable for
syntax checker languagetool must be a string:
(eval (expand-file-name "scripts/languagetool-flycheck"
user-emacs-directory))
`(eval FORM)' is only valid for SUBSEQUENT command-list elements
(arguments), not the executable.
Wrap the entire `flycheck-define-checker' invocation in `eval' +
backquote so the expanded path is spliced in as a string literal
before the macro sees it. The hardcoded `~/.emacs.d/...' path is
gone for the same reason the original externalization wanted it
gone: survives a non-standard `user-emacs-directory'.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions
