3

Linux Mint 20

Emacs 27.2

I want to find text end in the org files in my folder (recursively). So I use rgrep

M-x rgrep 

*.org

Here steps:

step 1: enter image description here

step 2: enter image description here

step 3 (result): enter image description here

Nice. As result I found text end only in the org files.

But... now I want to found text end in the org files AND java files.

How I can do this?

M-x rgrep

*.org, *.java not help

1 Answer 1

4

Instead of *.org, *.java, say *.org *.java at the second prompt (no comma).

Note: to input in such completion prompt, type C-q SPC (that is, hold Ctrl and press q, then release Ctrl and hit Space).

2
  • At the second prompt when I input .org SPACE then show message "No match". So as result I can't input ".org SPACE *.java" Commented May 22, 2021 at 13:53
  • 1
    Ah, yes. To input a "bare" space in such completion prompt, type C-q SPC. I agree it's a misfeature, but there are users who like that SPC is bound to some command that initiates completion. You can argue against this using M-x report-emacs-bug.
    – Dmitry
    Commented May 22, 2021 at 21:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.