[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/urgrep 3dde21c501 047/115: Add `urgrep-setup-hook'
|
From: |
ELPA Syncer |
|
Subject: |
[elpa] externals/urgrep 3dde21c501 047/115: Add `urgrep-setup-hook' |
|
Date: |
Wed, 10 May 2023 03:00:42 -0400 (EDT) |
branch: externals/urgrep
commit 3dde21c501356e308f9ee69adef1ac81c35fde16
Author: Jim Porter <jporterbugs@gmail.com>
Commit: Jim Porter <jporterbugs@gmail.com>
Add `urgrep-setup-hook'
---
urgrep.el | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/urgrep.el b/urgrep.el
index 03adb009eb..0e5db64897 100644
--- a/urgrep.el
+++ b/urgrep.el
@@ -92,6 +92,14 @@ respectively."
"Face for context lines."
:group 'urgrep)
+;;;###autoload
+(defcustom urgrep-setup-hook nil
+ "List of hook functions run by `urgrep-process-setup' (see `run-hooks').
+The currently-used tool can be inspected from the hook via
+`urgrep-current-tool'."
+ :type 'hook
+ :group 'grep)
+
;; Urgrep utility functions
@@ -599,11 +607,12 @@ If EDIT-COMMAND is non-nil, the search can be edited."
See `compilation-error-regexp-alist' for format details.")
(defun urgrep-process-setup ()
- "Set up compilation variables for urgrep."
+ "Set up compilation variables for urgrep and run `urgrep-setup-hook'."
(when-let ((tool-setup (urgrep--get-prop 'process-setup
urgrep-current-tool)))
(funcall tool-setup))
(setq-local urgrep-num-matches-found 0
- compilation-exit-message-function 'urgrep-exit-message))
+ compilation-exit-message-function 'urgrep-exit-message)
+ (run-hooks 'urgrep-setup-hook))
(defun urgrep-exit-message (status code msg)
"Return a status message for urgrep results."
- [elpa] externals/urgrep 266965a0a2 024/115: Add support for intelligent editing of previous search commands, (continued)
- [elpa] externals/urgrep 266965a0a2 024/115: Add support for intelligent editing of previous search commands, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep 350d6d1889 027/115: Add support for regexp-syntax and context with the grep backend, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep 887114113c 001/115: Initial revision, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep b578b0f857 009/115: Add a README and more-detailed docstrings, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep 026c54d11e 012/115: Add support for setting context, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep ca67ad1f4d 030/115: Use isearch-like bindings in the urgrep minibuffer, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep 8bb469a526 036/115: Add some details about our buffer-local variables, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep 9ff22a4481 041/115: Minor fixes to defcustoms, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep c879c02558 040/115: Add some docs and clean up spacing, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep 5b792fe0de 045/115: Use symbols instead of strings for `urgrep-tools' keys, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep 3dde21c501 047/115: Add `urgrep-setup-hook',
ELPA Syncer <=
- [elpa] externals/urgrep f686c2baa3 051/115: Fix off-by-one error with matches in Emacs 28; see Emacs bug#49624, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep a9c1a98ea6 052/115: Prompt for directory first with 'C-u C-u M-x urgrep', ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep 3002fdf731 054/115: Add support for specifying executable path in 'urgrep-preferred-tools', ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep 55b0030cf9 061/115: Improve regexes to match result/context lines, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep f354b44121 059/115: Always filter filenames in 'urgrep-filter', ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep 9e1f4da53b 070/115: Reorder keyword arguments to be more logical, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep 0687d9e867 073/115: Update copyright, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep ce07e97d37 088/115: Allow ANSI escapes for matches to end just after a newline, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep dbb2c2caeb 095/115: Wrap some docstring lines with "\", ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep 9949a5b296 094/115: Use connection-local variables for caching the tool to use for each host, ELPA Syncer, 2023/05/10