From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.devel Subject: Re: 22.1.90; `locate' and "C:" on Windows Date: Thu, 14 Feb 2008 23:31:36 +0100 Message-ID: References: <87odakqrvu.fsf@stupidchicken.com> Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1203028353 29104 80.91.229.12 (14 Feb 2008 22:32:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Feb 2008 22:32:33 +0000 (UTC) Cc: emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 14 23:32:56 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JPmdN-0008Fu-Rt for ged-emacs-devel@m.gmane.org; Thu, 14 Feb 2008 23:32:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JPmct-0006wm-UT for ged-emacs-devel@m.gmane.org; Thu, 14 Feb 2008 17:32:19 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JPmcq-0006wh-PZ for emacs-devel@gnu.org; Thu, 14 Feb 2008 17:32:16 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JPmco-0006wV-JQ for emacs-devel@gnu.org; Thu, 14 Feb 2008 17:32:15 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JPmco-0006wS-G8 for emacs-devel@gnu.org; Thu, 14 Feb 2008 17:32:14 -0500 Original-Received: from mail.uni-ulm.de ([134.60.1.11]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JPmcn-0008Du-WC for emacs-devel@gnu.org; Thu, 14 Feb 2008 17:32:14 -0500 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.41.37]) by mail.uni-ulm.de (8.14.2/8.14.2) with ESMTP id m1EMWBYS008105; Thu, 14 Feb 2008 23:32:11 +0100 (MET) Original-Received: from localhost (bridgekeeper.physik.uni-ulm.de [134.60.41.37]) by bridgekeeper.physik.uni-ulm.de (Postfix) with ESMTP id 53BB412F40; Thu, 14 Feb 2008 23:32:11 +0100 (CET) X-Face: mtjf/D:es1T0wHO:&CJ'ZXe"l; 3C--rw\z!{`eFwL){|]RpI+4{u25L=5C /0>KuGeTsk<~<&NE-AKV1560e!+RJeyWmSskkrJm?[vUV#66{T_m|Ae<||Ku#Mk5`y&O`n~z2; n8eP J5#2h@2eQgV@E70IY_0WlEx!"&giy{+\%h1LJox$zv@/l%ZmU4^tZA>xQpnkUBVC5.jpg#0'(+2?Rs )NAr:>3<=WxHE$ktbLysDIM5TbmHu*3, emacs-devel@gnu.org In-Reply-To: <87odakqrvu.fsf@stupidchicken.com> (Chong Yidong's message of "Wed, 13 Feb 2008 19:54:45 -0500") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.90 (gnu/linux) X-DCC-INFN-TO-Metrics: poseidon 1233; Body=2 Fuz1=2 Fuz2=2 X-Virus-Scanned: by amavisd-new X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:89106 Archived-At: On Thu, Feb 14 2008, Chong Yidong wrote: > Reiner Steib writes: >> Binding `directory-listing-before-filename-regexp' in >> `locate-set-properties' seems to fix the problem for me > > I don't think that's the right fix. You are right. The file name was highlighted correctly, but mouse-1 or RET still produced an error. > You need to fix dired-insert-set-properties, which is somehow > assuming Unix filename conventions. I notice that > dired-move-to-filename, which is called by > dired-insert-set-properties, has the following comment: > > (defun dired-move-to-filename (&optional raise-error eol) > "Move to the beginning of the filename on the current line. > Return the position of the beginning of the filename, or nil if none found." > ;; This is the UNIX version. > ... > > Could someone who runs Emacs on Windows check to see if this function > needs to be fixed? AFAIKS, it works fine for real dired buffers. But for *Locate* buffers, we need a fix. > Unfortunately, I don't have Windows available, so I can't work on > this. You can probably reproduce with (setq locate-command "~/loc.sh") and... --8<---------------cut here---------------start------------->8--- $ cat ~/loc.sh echo C:/blub/foobar.baz echo C:/abc/foobar.baz --8<---------------cut here---------------end--------------->8--- Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/