all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* grep-find-command - please include -name *.ext
@ 2006-12-14 16:41 Lennart Borgman
  2006-12-14 19:31 ` Masatake YAMATO
  2006-12-14 21:28 ` Eli Zaretskii
  0 siblings, 2 replies; 3+ messages in thread
From: Lennart Borgman @ 2006-12-14 16:41 UTC (permalink / raw)


I think normally when a user wants to search just a certain types of 
files. Would it not be good to include

    -name "*.ext"

or

   -regex ".*\.ext"

in the arguments to find in grep-find-command?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: grep-find-command - please include -name *.ext
  2006-12-14 16:41 grep-find-command - please include -name *.ext Lennart Borgman
@ 2006-12-14 19:31 ` Masatake YAMATO
  2006-12-14 21:28 ` Eli Zaretskii
  1 sibling, 0 replies; 3+ messages in thread
From: Masatake YAMATO @ 2006-12-14 19:31 UTC (permalink / raw)
  Cc: emacs-devel

> I think normally when a user wants to search just a certain types of 
> files. Would it not be good to include
> 
>     -name "*.ext"
> 
> or
> 
>    -regex ".*\.ext"
> 
> in the arguments to find in grep-find-command?

How about M-x rgrep?

I support your idea.
However, I wonder what kind of value 
should be used as default argument for -name?

Guessing "*.ext" from the major mode of the current buffer
is one idea. e.g.

  c-mode => -name "*.[ch]"
  emacs-lisp-mode => -name '*.el'

But I think there are too many cases that the default value is
not enough. In such case the user have to type C-b or M-b many
times to modify the default value or remove -name argument. It
is not convenient. If you can find good default value and/or 
good user interface for editing -name argument, I think it is
worth implementing. Of course, after releasing.

Masatake YAMATO

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: grep-find-command - please include -name *.ext
  2006-12-14 16:41 grep-find-command - please include -name *.ext Lennart Borgman
  2006-12-14 19:31 ` Masatake YAMATO
@ 2006-12-14 21:28 ` Eli Zaretskii
  1 sibling, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2006-12-14 21:28 UTC (permalink / raw)
  Cc: emacs-devel

> Date: Thu, 14 Dec 2006 17:41:15 +0100
> From: Lennart Borgman <lennart.borgman.073@student.lu.se>
> 
> I think normally when a user wants to search just a certain types of 
> files. Would it not be good to include
> 
>     -name "*.ext"
> 
> or
> 
>    -regex ".*\.ext"
> 
> in the arguments to find in grep-find-command?

PLEASE don't suggest new features until after the release.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-12-14 21:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-14 16:41 grep-find-command - please include -name *.ext Lennart Borgman
2006-12-14 19:31 ` Masatake YAMATO
2006-12-14 21:28 ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.