From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: file-name-shadow-mode Date: Mon, 21 Mar 2005 22:34:07 -0500 Message-ID: References: <200503180435.j2I4Z2R18621@raven.dms.auburn.edu> <87is3p5zp2.fsf-monnier+emacs@gnu.org> <200503191521.j2JFL8901509@raven.dms.auburn.edu> <87r7ibziw6.fsf-monnier+emacs@gnu.org> <200503200230.j2K2UvS03067@raven.dms.auburn.edu> <87is3lw2yk.fsf-monnier+emacs@gnu.org> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1111462630 10781 80.91.229.2 (22 Mar 2005 03:37:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 22 Mar 2005 03:37:10 +0000 (UTC) Cc: miles@gnu.org, snogglethorpe@gmail.com, teirllm@dms.auburn.edu, monnier@iro.umontreal.ca, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 22 04:37:09 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DDaBL-0004pt-Iy for ged-emacs-devel@m.gmane.org; Tue, 22 Mar 2005 04:35:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DDaSZ-0003Pz-4D for ged-emacs-devel@m.gmane.org; Mon, 21 Mar 2005 22:53:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DDaPu-0000aj-Td for emacs-devel@gnu.org; Mon, 21 Mar 2005 22:50:55 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DDaPs-0000Zr-NP for emacs-devel@gnu.org; Mon, 21 Mar 2005 22:50:53 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DDaPs-0000Ym-3N for emacs-devel@gnu.org; Mon, 21 Mar 2005 22:50:52 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DDa9g-0006bp-Di for emacs-devel@gnu.org; Mon, 21 Mar 2005 22:34:08 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1DDa9f-0007oV-UL; Mon, 21 Mar 2005 22:34:07 -0500 Original-To: David Kastrup In-reply-to: (message from David Kastrup on Mon, 21 Mar 2005 15:05:38 +0100) 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 X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: news.gmane.org gmane.emacs.devel:34940 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34940 Cute. It makes the assumption, however, that there is a unique point where that equivalence occurs. I don't think that this is correct: whenever you split in the middle of an environment variable name, you'll get a nonmatch that can turn into a match if you happen to look further. What about doing a linear scan from the end? It might be too slow...but it might be perfectly fast enough. It is sufficient to test places where there is a /, ~, or $. There usually won't be many of them.