1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-11-23 07:18:53 +00:00

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.
This commit is contained in:
Xi Lu 2024-11-07 17:24:33 +08:00 committed by Ihor Radchenko
parent 7c2d960e2b
commit 0624f57df3
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B

View File

@ -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))]
"--"