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

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

[elpa] externals/org 47b04383e7 3/3: fixup! org-id-update-id-locations:


From: ELPA Syncer
Subject: [elpa] externals/org 47b04383e7 3/3: fixup! org-id-update-id-locations: Optimize performance
Date: Fri, 4 Aug 2023 03:58:30 -0400 (EDT)

branch: externals/org
commit 47b04383e7ddc0fa2cefa15ce63e2f38b009d34f
Author: Ihor Radchenko <yantar92@posteo.net>
Commit: Ihor Radchenko <yantar92@posteo.net>

    fixup! org-id-update-id-locations: Optimize performance
    
    Avoid modifying FILES by side effect.
---
 lisp/org-id.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org-id.el b/lisp/org-id.el
index aa8a9cc6f0..be8c0bd33e 100644
--- a/lisp/org-id.el
+++ b/lisp/org-id.el
@@ -511,7 +511,7 @@ If SILENT is non-nil, messages are suppressed."
            (lambda (f)
              (when (file-exists-p f)
                (list f (file-attribute-modification-time (file-attributes 
f)))))
-           (sort files #'string<))))
+           (sort (copy-sequence files) #'string<))))
     (unless (equal checksum org-id--locations-checksum) ; Files have changed 
since the last update.
       (setq org-id-locations nil)
       (with-temp-buffer



reply via email to

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