mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
* lisp/progmodes/xref.el (xref--show-xrefs): Push mark. (Bug#34908)
This commit is contained in:
parent
03e916beb0
commit
36535caf96
2 changed files with 5 additions and 0 deletions
4
etc/NEWS
4
etc/NEWS
|
|
@ -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))
|
||||
(cond
|
||||
((and (not (cdr xrefs)) (not always-show-list))
|
||||
(xref-push-marker-stack)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue