Kaynağa Gözat

org-agenda: simplify one expression (refactoring)

* lisp/org-agenda.el (org-agenda-filter-by-category): replace '(and
  cat)' with the equivalent 'cat'.
Marco Wahl 9 yıl önce
ebeveyn
işleme
0b71022c8c
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      lisp/org-agenda.el

+ 1 - 1
lisp/org-agenda.el

@@ -7366,7 +7366,7 @@ With a prefix argument, exclude the lines of that category.
        ((and cat strip)
         (org-agenda-filter-apply
          (push (concat "-" cat) org-agenda-category-filter) 'category))
-       ((and cat)
+       (cat
         (org-agenda-filter-apply
          (setq org-agenda-category-filter
 	       (list (concat "+" cat))) 'category))