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

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

[elpa] externals/nano-agenda 37b4587 2/6: Respect all the org-agenda-fil


From: ELPA Syncer
Subject: [elpa] externals/nano-agenda 37b4587 2/6: Respect all the org-agenda-files formats
Date: Thu, 14 Oct 2021 07:57:18 -0400 (EDT)

branch: externals/nano-agenda
commit 37b458725676c86c14f127f439374e434bc39c9a
Author: Wojciech Siewierski <wojciech@siewierski.eu>
Commit: Wojciech Siewierski <wojciech@siewierski.eu>

    Respect all the org-agenda-files formats
    
    org-agenda-files can be not only a list of files.  It can be:
    - a list of files (currently supported)
    - a path to a directory with the agenda files
    - a path to a file with the agenda files listed one per line
    
    The function with the same name handles all these cases.
---
 nano-agenda.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/nano-agenda.el b/nano-agenda.el
index 4d4f3f3..27caace 100644
--- a/nano-agenda.el
+++ b/nano-agenda.el
@@ -339,7 +339,7 @@ for efficiency."
     (if entry
         (cadr entry)
       (progn
-        (dolist (file org-agenda-files)
+        (dolist (file (org-agenda-files))
           (dolist (entry (org-agenda-get-day-entries file date))
             (if (nano-agenda-select-entry entry)
                 (setq level (+ level 1)))))
@@ -373,7 +373,7 @@ for efficiency."
     ;; Body (only timed entries)
 
     ;; Collect all entries with 'time-of-day
-    (dolist (file org-agenda-files)
+    (dolist (file (org-agenda-files))
       (dolist (entry (org-agenda-get-day-entries file date))
         (if (nano-agenda-select-entry entry)
             (add-to-list 'entries entry))))



reply via email to

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