[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org 0624f57df3 2/3: org-mouse-context-menu: Fix `grep'
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org 0624f57df3 2/3: org-mouse-context-menu: Fix `grep' command to handle filenames starting with '-' |
Date: |
Sat, 9 Nov 2024 09:58:51 -0500 (EST) |
branch: externals/org
commit 0624f57df39bf486fed78512a3f8b274b68a2282
Author: Xi Lu <lx@shellcodes.org>
Commit: Ihor Radchenko <yantar92@posteo.net>
org-mouse-context-menu: Fix `grep' command to handle filenames starting
with '-'
* lisp/org-mouse.el (org-mouse-context-menu): Fix `grep' command to
handle filenames starting with '-' by adjusting wildcard usage to
prevent misinterpretation as options.
---
lisp/org-mouse.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/org-mouse.el b/lisp/org-mouse.el
index 322d986826..7f85653f23 100644
--- a/lisp/org-mouse.el
+++ b/lisp/org-mouse.el
@@ -627,7 +627,7 @@ This means, between the beginning of line and the point."
["Sparse Tree" (org-occur ',region-string)]
["Find in Buffer" (occur ',region-string)]
["Grep in Current Dir"
- (grep (format "grep -rnH -e '%s' *" ',region-string))]
+ (grep (format "grep -rnH -e '%s' ./*" ',region-string))]
["Grep in Parent Dir"
(grep (format "grep -rnH -e '%s' ../*" ',region-string))]
"--"