emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/urgrep 8bb469a526 036/115: Add some details about our b


From: ELPA Syncer
Subject: [elpa] externals/urgrep 8bb469a526 036/115: Add some details about our buffer-local variables
Date: Wed, 10 May 2023 03:00:41 -0400 (EDT)

branch: externals/urgrep
commit 8bb469a526fe8191d5bb07392fb43a95c4da6d8b
Author: Jim Porter <jporterbugs@gmail.com>
Commit: Jim Porter <jporterbugs@gmail.com>

    Add some details about our buffer-local variables
---
 urgrep.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/urgrep.el b/urgrep.el
index fc9e502b56..dcce3f7c9c 100644
--- a/urgrep.el
+++ b/urgrep.el
@@ -579,8 +579,12 @@ This function is called from `compilation-filter-hook'."
   "Start a urgrep process for COMMAND.
 QUERY is the original argument list that generated COMMAND (or it may
 be the same value as COMMAND). TOOL is the tool that was used to
-generate the command."
+generate the command. This sets `urgrep-current-query' and
+`urgrep-current-tool' buffer-locally so that they can be used when
+rerunning the search."
   (with-current-buffer
+      ;; Dynamically bind `urgrep-current-tool' so that `urgrep-process-filter'
+      ;; can consult it.
       (urgrep--with-killed-local-variable 'urgrep-current-tool
         (let ((urgrep-current-tool tool))
           (compilation-start command 'urgrep-mode)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]