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 | df0a327d6c03a707d43aa8ad40f6630f3b25117a (patch) | |
| tree | 4bed7eaccf490b69dad0f0846be454e928b2aadb /tests/test-system-lib-executable-find-or-warn.el | |
| parent | e3733f46892da0425e2424e8a9ba91f83041abe4 (diff) | |
| download | dotemacs-df0a327d6c03a707d43aa8ad40f6630f3b25117a.tar.gz dotemacs-df0a327d6c03a707d43aa8ad40f6630f3b25117a.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 c4cf8d7d, 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/test-system-lib-executable-find-or-warn.el')
0 files changed, 0 insertions, 0 deletions
