emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/org 9fd5349d0a 1/2: org-lint: Fix invocation with C-u p


From: ELPA Syncer
Subject: [elpa] externals/org 9fd5349d0a 1/2: org-lint: Fix invocation with C-u prefix argument
Date: Wed, 8 Jun 2022 09:57:50 -0400 (EDT)

branch: externals/org
commit 9fd5349d0a7b345fba369cce87fc50b64e7528a9
Author: Nick Dokos <ndokos@redhat.com>
Commit: Ihor Radchenko <yantar92@gmail.com>

    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 cce6fddbd4..62a245330f 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]