[Top][All Lists]

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

Re: Apropos commands and regexps

From: Kim F. Storm
Subject: Re: Apropos commands and regexps
Date: 17 May 2002 23:56:33 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.50

Miles Bader <address@hidden> writes:

> `or' is clearly wrong; even in emacs' `limited' universe, it generates
> way too many hits.
> E.g., (apropos "\\(find.*file\\|file.*find\\)") gets about 50 hits,
> whereas (apropos "\\(find\\|file\\)") gets over 700!

Actually your first example finds 67 matches on my emacs.

Your second example is an unfair comparison, as my proposal was that 
at least two matching words should be required.  This can be illustrated
by (apropos "\\(find\\|file\\).*\\(find\\|file\\)") which finds 74 hits.

So I don't see the big difference...  The reason there are a few more
matches with the second pattern is that it also finds entries with
either word occurring twice. 

But I never claimed my sample implementation is perfect :-)

Kim F. Storm <address@hidden> http://www.cua.dk

reply via email to

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