bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: M-x grep not prepared for file names with spaces in them


From: Dan Jacobson
Subject: Re: M-x grep not prepared for file names with spaces in them
Date: 29 Dec 2000 04:14:49 +0800
User-agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7

I'm so proud, 'twas my post that elicited a rare post from the RMS
himself, whereas the average leading brand post will not so elicit.
What? "on to the contents section, then" well, OK, I'll whip up some
"response contents".

address@hidden (Richard Stallman) writes:

>     grep -n -e modprobe Re* *.htm* /dev/null
>     How to Hook up PPP in Linux.htm:560:<P>On the 2.3.9 ...
>     How to Hook up PPP in Linux.htm:566:<P>You may see ...
>     grep finished (matches found) at Mon Dec 25 07:35:44

[pssst, wouldn't "(2 matches found)' be of more service to the community?]
 
>     I bet compilation-error-regexp-alist's value is at fault.
> 
> It is grep-regexp-alist.  It would be easy to change it to allow space
> in the file name, but I think that this change would make it too
> susceptible to false matches.  Please try this change if you like.  If
> you find that it works fine, that would be a good reason to install
> it.

Ok boss, the pressure is on, here's what I came up with:

(setq grep-regexp-alist
;  '(("\\([a-zA-Z]?:?[^:( \t\n]+\\)[:( \t]+\\([0-9]+\\)[:) \t]" 1 2)))
   '(("\\([a-zA-Z]?:?[^:(\t\n]+\\)[:( \t]+\\([0-9]+\\)[:) \t]" 1 2)))
I took out the space here^  as seen on constant width char terminals

"Works great!"
Back in '92 I really understood regular expressions, but
now in '00 I'm like, sorry, what's "[a-zA-Z]?" going to match that
"[^:( \t\n]+" or "[^:(\t\n]+" won't?

> By the way, I don't think that the hooking up of PPP is done in Linux,
> the kernel.  You're probably talking about the larger GNU/Linux

Relax, it wasn't me, it was the grep output; but hey, if the pros call
it "GNU/Linux", count me in.

> operating system, which many people call "Linux" but ought not.
> Would you please call it "GNU/Linux", or "GNU+Linux", or something
> else that indicates it is the combination of GNU and Linux?
> 
> See http://www.gnu.org/gnu/linux-and-gnu.html for more explanation.
-- 
http://www.geocities.com/jidanni Tel886-4-25854780 e-mail:restore .com. 積丹尼



reply via email to

[Prev in Thread] Current Thread [Next in Thread]