0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-29 23:17:49 +00:00

org-lint: Fix invocation with C-u prefix argument

* lisp/org-lint.el (org-lint): Fix the order of the arguments in
the `assoc-string' call when calculating the list of checkers to
invoke.

`C-u M-x org-lint' was failing to run any checkers, no matter what
category of checkers was chosen, because the calculation of the list
of checkers always returned `nil'.
This commit is contained in:
Nick Dokos 2022-06-01 12:28:23 -04:00 committed by Ihor Radchenko
parent 1105da80a7
commit 9fd5349d0a
No known key found for this signature in database
GPG key ID: 6470762A7DA11D8B

View file

@ -321,7 +321,7 @@ ARG can also be a list of checker names, as symbols, to run."
nil t))) nil t)))
(cl-remove-if-not (cl-remove-if-not
(lambda (c) (lambda (c)
(assoc-string (org-lint-checker-categories c) category)) (assoc-string category (org-lint-checker-categories c)))
org-lint--checkers))) org-lint--checkers)))
(`(16) (`(16)
(list (list