Commit 3aa8f4d4 authored by Stephen Leake's avatar Stephen Leake

In xref-location-marker, handle deleted file or outdated xref location nicely

* lisp/progmodes/xref.el (xref-location-marker): Add ignore-errors.
parent f22a1008
Pipeline #3735 failed with stage
in 90 minutes and 1 second
......@@ -131,8 +131,13 @@ Line numbers start from 1 and columns from 0.")
(widen)
(save-excursion
(goto-char (point-min))
(ignore-errors
;; xref location may be out of date; it may be past the
;; end of the current file, or the file may have been
;; deleted. Return a reasonable location; the user will
;; figure it out.
(beginning-of-line line)
(forward-char column)
(forward-char column))
(point-marker))))))
(cl-defmethod xref-location-group ((l xref-file-location))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment