[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master a9e36fc3bf8: xref-location-marker: Use find-file-noselect to ensu
From: |
Dmitry Gutov |
Subject: |
master a9e36fc3bf8: xref-location-marker: Use find-file-noselect to ensure uptodateness |
Date: |
Thu, 3 Oct 2024 15:04:01 -0400 (EDT) |
branch: master
commit a9e36fc3bf811853e152e7ff427a39272cff1a80
Author: Dmitry Gutov <dmitry@gutov.dev>
Commit: Dmitry Gutov <dmitry@gutov.dev>
xref-location-marker: Use find-file-noselect to ensure uptodateness
* lisp/progmodes/xref.el (xref-location-marker):
Always call 'find-file-noselect' rather than 'get-file-buffer' to
go through the visited-file-modtime verification every time.
---
lisp/progmodes/xref.el | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el
index 5ecb8664da0..ff80040382c 100644
--- a/lisp/progmodes/xref.el
+++ b/lisp/progmodes/xref.el
@@ -150,9 +150,8 @@ Line numbers start from 1 and columns from 0."
(cl-defmethod xref-location-marker ((l xref-file-location))
(pcase-let (((cl-struct xref-file-location file line column) l))
(with-current-buffer
- (or (get-file-buffer file)
- (let ((find-file-suppress-same-file-warnings t))
- (find-file-noselect file)))
+ (let ((find-file-suppress-same-file-warnings t))
+ (find-file-noselect file))
(save-restriction
(widen)
(save-excursion
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master a9e36fc3bf8: xref-location-marker: Use find-file-noselect to ensure uptodateness,
Dmitry Gutov <=