[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/urgrep d93a565190 060/115: Simplify implementation of '
|
From: |
ELPA Syncer |
|
Subject: |
[elpa] externals/urgrep d93a565190 060/115: Simplify implementation of 'urgrep' |
|
Date: |
Wed, 10 May 2023 03:00:44 -0400 (EDT) |
branch: externals/urgrep
commit d93a565190735397f1c3b81850420ac822a2caba
Author: Jim Porter <jporterbugs@gmail.com>
Commit: Jim Porter <jporterbugs@gmail.com>
Simplify implementation of 'urgrep'
---
urgrep.el | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/urgrep.el b/urgrep.el
index b53a5545dc..968d125849 100644
--- a/urgrep.el
+++ b/urgrep.el
@@ -939,7 +939,7 @@ directory."
(t (read-directory-name "In directory: " nil nil t))))
;;;###autoload
-(cl-defun urgrep (query directory &rest rest &allow-other-keys)
+(defun urgrep (query directory &rest rest)
"Recursively search in DIRECTORY for a given QUERY.
When called interactively, search in the project's root directory, or
@@ -959,13 +959,14 @@ Type \\[urgrep-set-before-context] to set the number of
before context lines.
Type \\[urgrep-set-after-context] to set the number of after context lines.
Type \\[urgrep-set-file-wildcards] to set a wildcard to filter the files
searched."
(interactive
- (let ((directory (urgrep--read-directory current-prefix-arg)))
- (list (urgrep--read-query nil) directory)))
- (let* ((query (if (listp query) query (cons query rest)))
- (command (apply #'urgrep-command query))
- (tool (urgrep-get-tool (cadr (cl-member :tool query))))
+ (let ((directory (urgrep--read-directory current-prefix-arg))
+ (full-query (urgrep--read-query nil)))
+ (cons (car full-query) (cons directory (cdr full-query)))))
+ (let* ((full-query (cons query rest))
+ (command (apply #'urgrep-command full-query))
+ (tool (urgrep-get-tool (cadr (cl-member :tool full-query))))
(default-directory (or directory default-directory)))
- (urgrep--start command query tool)))
+ (urgrep--start command full-query tool)))
;;;###autoload
(defun urgrep-run-command (command directory tool)
- [elpa] externals/urgrep fdd8dd54e6 044/115: Provide more details in the README, (continued)
- [elpa] externals/urgrep fdd8dd54e6 044/115: Provide more details in the README, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep 3052b8c191 049/115: Use #' read syntax for functions, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep 582896b5af 050/115: Use dotted pairs for alist for each tool, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep c38b33878f 053/115: Autoloading 'urgrep-setup-hook' really shouldn't be necessary..., ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep a12bd677f7 056/115: Fix 'mouse-face' symbol, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep 3370860a1b 043/115: Add support for toggling color output, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep c97985820d 048/115: Minor typographical fixes, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep 136b1845d7 020/115: Add support for various regexp syntaxes, defaulting to BRE, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep 496647e748 019/115: Add our own toolbar so we get better tooltips, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep ff96211f26 058/115: Update comment, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep d93a565190 060/115: Simplify implementation of 'urgrep',
ELPA Syncer <=
- [elpa] externals/urgrep 0270e11849 072/115: Allow directory for `urgrep' and `urgrep-run-command' to be relative, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep 86e7055ce5 063/115: Typo, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep 5aabe4ffa9 066/115: Remove debug code, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep 7fd67f1db5 092/115: Run CI against Emacs 28.2, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep 2ef7daa448 093/115: Reorganize tests a bit, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep 500c01092d 086/115: Fix display override for null character in context lines, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep 229ae0bfb5 110/115: Use a version identifier compatible with 'version-to-string', ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep 6aefc895bc 113/115: Set system-type to gnu/linux when making the Urgrep command for Eshell, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep 83e62357da 018/115: Provide a friendly default value when searching, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep 98e20f0630 021/115: Use pcase macros for filling in optional arguments, ELPA Syncer, 2023/05/10