[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org 6af71d6f2f 1/2: Merge branch 'bugfix'
|
From: |
ELPA Syncer |
|
Subject: |
[elpa] externals/org 6af71d6f2f 1/2: Merge branch 'bugfix' |
|
Date: |
Sat, 11 Nov 2023 06:58:16 -0500 (EST) |
branch: externals/org
commit 6af71d6f2f3aab0b9e29cff9fe465cb60dd29ecb
Merge: b5cfc311db 866e638c21
Author: Ihor Radchenko <yantar92@posteo.net>
Commit: Ihor Radchenko <yantar92@posteo.net>
Merge branch 'bugfix'
---
lisp/org-persist.el | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/lisp/org-persist.el b/lisp/org-persist.el
index 81edcf6f28..0d8d029ce7 100644
--- a/lisp/org-persist.el
+++ b/lisp/org-persist.el
@@ -614,9 +614,14 @@ When INNER is non-nil, do not try to match as list of
containers."
(unless (stringp associated)
(setq associated (cadr associated)))
(let* ((rtn `(:file ,associated))
- (inode (and (fboundp 'file-attribute-inode-number)
- (file-attribute-inode-number
- (file-attributes associated)))))
+ (inode (and
+ ;; Do not store :inode for remote files - it may
+ ;; be time-consuming on slow connections or even
+ ;; fail completely when ssh connection is closed.
+ (not (file-remote-p associated))
+ (fboundp 'file-attribute-inode-number)
+ (file-attribute-inode-number
+ (file-attributes associated)))))
(when inode (plist-put rtn :inode inode))
rtn))
((or (pred bufferp) `(:buffer ,_))
@@ -634,6 +639,10 @@ When INNER is non-nil, do not try to match as list of
containers."
(or (buffer-base-buffer associated)
associated)))
(setq inode (when (and file
+ ;; Do not store :inode for remote files - it
may
+ ;; be time-consuming on slow connections or
even
+ ;; fail completely when ssh connection is
closed.
+ (not (file-remote-p file))
(fboundp 'file-attribute-inode-number))
(file-attribute-inode-number
(file-attributes file))))