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.
This commit is contained in:
parent
ef587bf6b4
commit
a9e36fc3bf
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue