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
a_subscriber
  • 3,854
  • 1
  • 17
  • 47

1 Answers1

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).

Dmitry
  • 3,508
  • 15
  • 20
  • At the second prompt when I input *.org SPACE then show message "No match". So as result I can't input "*.org SPACE *.java" – a_subscriber May 22 '21 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 May 22 '21 at 21:31