[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: M-x grep should hang if no files specified
From: |
Stefan Monnier |
Subject: |
Re: M-x grep should hang if no files specified |
Date: |
Mon, 13 Nov 2006 14:25:00 -0500 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.90 (gnu/linux) |
> I do not like the idea of making it hang.
> It would be nice to detect the lack of file name arguments
> and output some sort of error message, but I am not sure
> how to detect that condition reliably.
It's very easy if done at the right place: inside GNU grep (rather than
inside Emacs). And it sure should complain: the user specified a search in
0 files, so there's obviously something odd.
Stefan