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

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

[elpa] externals/org 47654f844d 06/10: org-persist: Fix number of remote


From: ELPA Syncer
Subject: [elpa] externals/org 47654f844d 06/10: org-persist: Fix number of remote files kept
Date: Sun, 11 Dec 2022 02:57:58 -0500 (EST)

branch: externals/org
commit 47654f844d6734eacc25416d4e6b061441b7fd22
Author: TEC <git@tecosaur.net>
Commit: TEC <git@tecosaur.net>

    org-persist: Fix number of remote files kept
    
    * lisp/org-persist.el (org-persist-gc): The `org-persist-remote-files'
    documentation states that when set to a number (n) it will keep that
    many files.  However, since a <= comparison is used with setting the
    expired status of the files every remote file from n-th file onwards
    /inclusive/ is marked as expired, and so only n-1 files were actually
    kept.  With a less-than operator, the behaviour will actually match the
    docstring.
---
 lisp/org-persist.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org-persist.el b/lisp/org-persist.el
index c7536bcee7..fcff07bc95 100644
--- a/lisp/org-persist.el
+++ b/lisp/org-persist.el
@@ -963,7 +963,7 @@ Also, remove containers associated with non-existing files."
                           ('check-existence
                            (file-exists-p file))
                           ((pred numberp)
-                           (<= org-persist-remote-files remote-files-num))
+                           (< org-persist-remote-files remote-files-num))
                           (_ nil)))
                 (setq expired? t)))
             (if expired?



reply via email to

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