Commit 36535caf authored by Juri Linkov's avatar Juri Linkov

* lisp/progmodes/xref.el (xref--show-xrefs): Push mark. (Bug#34908)

parent 03e916be
Pipeline #1065 passed with stage
in 51 minutes and 45 seconds
......@@ -671,6 +671,10 @@ mouse click event, and is intended to be bound to a mouse event.
Previously, setting 'xref-marker-ring-length' would only take effect
if set before 'xref.el' was loaded.
*** xref-find-definitions now sets the mark at the buffer position
where it was invoked
** Ecomplete
*** The ecomplete sorting has changed to a decay-based algorithm.
......@@ -797,6 +797,7 @@ Return an alist of the form ((FILENAME . (XREF ...)) ...)."
(defvar xref--read-pattern-history nil)
(defun xref--show-xrefs (xrefs display-action &optional always-show-list)
(unless (region-active-p) (push-mark nil t))
((and (not (cdr xrefs)) (not always-show-list))
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