[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org 8f5bf17255: org-id-update-locations: Scan all the o
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org 8f5bf17255: org-id-update-locations: Scan all the open Org buffers |
Date: |
Fri, 5 Aug 2022 08:57:51 -0400 (EDT) |
branch: externals/org
commit 8f5bf172556564df89fb16ce8ecec68c5b7f0221
Author: Ihor Radchenko <yantar92@gmail.com>
Commit: Ihor Radchenko <yantar92@gmail.com>
org-id-update-locations: Scan all the open Org buffers
* lisp/org-id.el (org-id-update-id-locations): Always scan all the
open Org file buffers for IDs.
Fixes https://orgmode.org/list/87r11zifjy.fsf@gmail.com
---
lisp/org-id.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/lisp/org-id.el b/lisp/org-id.el
index f54e7280a7..fe2f5f3280 100644
--- a/lisp/org-id.el
+++ b/lisp/org-id.el
@@ -491,8 +491,8 @@ and TIME is a Lisp time value (HI LO USEC)."
(defun org-id-update-id-locations (&optional files silent)
"Scan relevant files for IDs.
Store the relation between files and corresponding IDs.
-This will scan all agenda files, all associated archives, and all
-files currently mentioned in `org-id-locations'.
+This will scan all agenda files, all associated archives, all open Org
+files, and all files currently mentioned in `org-id-locations'.
When FILES is given, scan also these files.
If SILENT is non-nil, messages are suppressed."
(interactive)
@@ -515,6 +515,8 @@ If SILENT is non-nil, messages are suppressed."
org-id-extra-files)
;; All files known to have IDs.
org-id-files
+ ;; All Org files open in Emacs.
+ (mapcar #'buffer-file-name (org-buffer-list 'files t))
;; Additional files from function call.
files)))))
(nfiles (length files))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/org 8f5bf17255: org-id-update-locations: Scan all the open Org buffers,
ELPA Syncer <=