From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Apropos commands and regexps Date: 15 May 2002 23:59:36 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: <5xoffhoywn.fsf@kfs2.cua.dk> References: <5xbsbj9834.fsf@kfs2.cua.dk> <200205150700.g4F70rr16163@aztec.santafe.edu> <87ptzxmz7s.fsf@tc-1-100.kawasaki.gol.ne.jp> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1021496938 3534 127.0.0.1 (15 May 2002 21:08:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 15 May 2002 21:08:58 +0000 (UTC) Cc: rms@gnu.org, eliz@is.elta.co.il, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 178614-0000ut-00 for ; Wed, 15 May 2002 23:08:58 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 1786Ck-0006jI-00 for ; Wed, 15 May 2002 23:21:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 1785su-0004E1-00; Wed, 15 May 2002 17:00:32 -0400 Original-Received: from mail.filanet.dk ([195.215.206.179]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 1785rY-00045d-00; Wed, 15 May 2002 16:59:08 -0400 Original-Received: from kfs2.cua.dk.cua.dk (unknown [10.1.82.3]) by mail.filanet.dk (Postfix) with SMTP id 77F487C016; Wed, 15 May 2002 20:58:51 +0000 (GMT) Original-To: Miles Bader In-Reply-To: <87ptzxmz7s.fsf@tc-1-100.kawasaki.gol.ne.jp> Original-Lines: 33 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.50 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:3981 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:3981 Miles Bader writes: > Richard Stallman writes: > > Are you suggesting all apropos commands should work by keywords > > instead of by regexps? > > The way I envisioned it was all apropos commands taking _list_ of > regexps (separated by whitespace/commas), and applying them in an `and' > manner. That way, the case where each element is a simple word word > would act like a typical keyword search, and the case where there's > only one entry would act like the current single-regexp implementation. I don't like the "and" approach -- at least not as the default. (see my previous posting for the rationale). > > Given the particular nature of apropos usage in emacs, I think there > wouldn't be any conflict in practice from using whitespace/commas as > the list delimiters. Comparing to WEB search engines, I don't think that separating keywords with commas is common practice... > > There might also be other things we can do, like if a term begins with > an alphabetic character, anchor it with \<. [anchoring the end is > probably not a good idea, because people often expect searches to match > prefixes, I think.] Consider searching for "grep" -- shouldn't that return "igrep" ? -- Kim F. Storm http://www.cua.dk