[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] org-lint: Fix invocation with C-u prefix argument
From: |
Nick Dokos |
Subject: |
[PATCH] org-lint: Fix invocation with C-u prefix argument |
Date: |
Wed, 01 Jun 2022 16:08:03 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
`C-u M-x org-lint' was failing to run any checkers, no matter what
category was chosen, because the calculation of the list of checkers
always returned `nil'.
>From b55162adf1250980ad0f42423832aa1aa1045d30 Mon Sep 17 00:00:00 2001
From: Nick Dokos <ndokos@redhat.com>
Date: Wed, 1 Jun 2022 12:28:23 -0400
Subject: [PATCH] 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'.
---
lisp/org-lint.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/org-lint.el b/lisp/org-lint.el
index cce6fddbd..62a245330 100644
--- a/lisp/org-lint.el
+++ b/lisp/org-lint.el
@@ -321,7 +321,7 @@ ARG can also be a list of checker names, as symbols, to
run."
nil t)))
(cl-remove-if-not
(lambda (c)
- (assoc-string (org-lint-checker-categories c) category))
+ (assoc-string category (org-lint-checker-categories c)))
org-lint--checkers)))
(`(16)
(list
--
2.34.1
--
Nick
- [PATCH] org-lint: Fix invocation with C-u prefix argument,
Nick Dokos <=