[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master b483090 3/6: Indicate progress while searching for references in
From: |
Mattias Engdegård |
Subject: |
master b483090 3/6: Indicate progress while searching for references in xref |
Date: |
Sat, 21 Aug 2021 06:56:44 -0400 (EDT) |
branch: master
commit b4830907edb7d499f7e81d53e22fe7793a0febcb
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Mattias Engdegård <mattiase@acm.org>
Indicate progress while searching for references in xref
* lisp/progmodes/xref.el (xref-backend-references): Add messages to
show the user that something is happening instead of silently freezing
during the frequently long synchronous searches for references.
---
lisp/progmodes/xref.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el
index 9032946..32fe6b6 100644
--- a/lisp/progmodes/xref.el
+++ b/lisp/progmodes/xref.el
@@ -290,7 +290,11 @@ find a search tool; by default, this uses \"find | grep\"
in the
current project's main and external roots."
(mapcan
(lambda (dir)
- (xref-references-in-directory identifier dir))
+ (message "Searching %s..." dir)
+ (redisplay)
+ (prog1
+ (xref-references-in-directory identifier dir)
+ (message "Searching %s... done" dir)))
(let ((pr (project-current t)))
(cons
(xref--project-root pr)
- master updated (20e32f3 -> f415956), Mattias Engdegård, 2021/08/21
- master 4d6e770 2/6: Re-type the :location slot in `xref-match-item` to `xref-location`, Mattias Engdegård, 2021/08/21
- master 6993d45 4/6: Add "Find References" to context menu (bug#50067), Mattias Engdegård, 2021/08/21
- master b483090 3/6: Indicate progress while searching for references in xref,
Mattias Engdegård <=
- master 49435be 1/6: Add xref operations to context menu unconditionally, Mattias Engdegård, 2021/08/21
- master f415956 6/6: Remove default "Select" title from NS popup menus (bug#50067), Mattias Engdegård, 2021/08/21
- master d6ad208 5/6: Use overlay arrow to indicate current *xref* selection, Mattias Engdegård, 2021/08/21