From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: new apropos feature in Emacs-22 Date: Sun, 06 Nov 2005 19:05:00 +0200 Message-ID: References: <200511060157.jA61vca26394@raven.dms.auburn.edu> <200511060536.jA65aHY28505@raven.dms.auburn.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1131296731 27533 80.91.229.2 (6 Nov 2005 17:05:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 6 Nov 2005 17:05:31 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 06 18:05:30 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EYnxE-0006Cz-MU for ged-emacs-devel@m.gmane.org; Sun, 06 Nov 2005 18:05:16 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EYnxD-0000yP-OM for ged-emacs-devel@m.gmane.org; Sun, 06 Nov 2005 12:05:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EYnwz-0000yK-Ne for emacs-devel@gnu.org; Sun, 06 Nov 2005 12:05:01 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EYnwy-0000y6-2W for emacs-devel@gnu.org; Sun, 06 Nov 2005 12:05:01 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EYnwx-0000y3-VM for emacs-devel@gnu.org; Sun, 06 Nov 2005 12:05:00 -0500 Original-Received: from [192.114.186.20] (helo=nitzan.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EYnwx-0002QW-Nb for emacs-devel@gnu.org; Sun, 06 Nov 2005 12:04:59 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-57-83.inter.net.il [80.230.57.83]) by nitzan.inter.net.il (MOS 3.6.5-GR) with ESMTP id BWP00105 (AUTH halo1); Sun, 6 Nov 2005 19:04:52 +0200 (IST) Original-To: Luc Teirlinck In-reply-to: <200511060536.jA65aHY28505@raven.dms.auburn.edu> (message from Luc Teirlinck on Sat, 5 Nov 2005 23:36:17 -0600 (CST)) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:45506 Archived-At: > Date: Sat, 5 Nov 2005 23:36:17 -0600 (CST) > From: Luc Teirlinck > CC: emacs-devel@gnu.org > > Eli Zaretskii wrote: > > Whether newbies are accustomed to this remains to be proven, but the > characters ``natural in the Emacs context'' above come from an > experienced user. > > .emacs and *scratch* are only for experienced users? You were talking about `.', `+', and `*' in general. And yes, at least *scratch* is not something an unexperienced user will look for, I think. > > In the keyword searches that I am familiar with you can enclose the > > keywords in quotation marks to force sequential in order occurrence. > > That's an advanced feature, you know. > > Really? I always use quotation marks in websearches Then in my experience, you are a minority. > and would not know how to search without them. Just lose the quotes, it works ;-) > For instance, Richard asked us for a > string that gave him all postings in the old thread we are talking > about and nothing else and I said: > > "apropos commands and regexps" (_with_ the quotation marks included). > > It works. It could also misfire, e.g., if the actual phrase in the archives is "regexps and apropos commands". If you lose the quotes (and "and" as well), you will find it regardless of the order. In general, quotes are useful only if you know _exactly_ how the phrase appears in the text, which is a relatively rare situation. (I'm sure you know all this already.) > > I believe that after your change, newbies _still_ will have to learn > > about regexps to accomplish what they are used to in search engines. > > Please explain why you think so. > > Several reasons. > > Because you may want to search for, say, the words "overwrite mode" in > that order, separated only by non-word constituents. That's your ``always use quotes'' rule again; see above for why it might not be useful for someone (like a newbie) who does not know the exact phrase she is looking for. > The fact that "mode" occurs somewhere in a doc string and > "overwrite" somewhere else is usually completely irrelevant and > produces many false hits. False hits is a downside of any search engine (including `apropos' in its pre-Emacs22 incarnation, btw). Scoring and sorting according to score--a new feature introduced together with the one we are discussing--are supposed to alleviate that. > Sequential occurrence is _much_ less likely to be an accident Yes, _if_ you know the exact phrase. A rather big IF, I'd say. Mostly false for newbies, in my experience. > _And_ because sometimes you might want to search for keywords > containing characters that happen to be special in regexps, say > .emacs, .mailrc, whatever. A regexp ".emacs" will find a literal ".emacs", so this is not a big problem.