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: 22.1.90; `locate' and "C:" on Windows Date: Wed, 13 Feb 2008 20:19:38 +0100 Message-ID: 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 1202930465 2749 80.91.229.12 (13 Feb 2008 19:21:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Feb 2008 19:21:05 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 13 20:21:28 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 1JPNAP-0000eZ-4W for ged-emacs-devel@m.gmane.org; Wed, 13 Feb 2008 20:21:13 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JPN9v-0006ko-E3 for ged-emacs-devel@m.gmane.org; Wed, 13 Feb 2008 14:20:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JPN9r-0006jx-PZ for emacs-devel@gnu.org; Wed, 13 Feb 2008 14:20:39 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JPN9r-0006io-4b for emacs-devel@gnu.org; Wed, 13 Feb 2008 14:20:39 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JPN9r-0006id-10 for emacs-devel@gnu.org; Wed, 13 Feb 2008 14:20:39 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JPN9q-0007w8-Jq for emacs-devel@gnu.org; Wed, 13 Feb 2008 14:20:38 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JPN9o-0006OK-0e for emacs-devel@gnu.org; Wed, 13 Feb 2008 19:20:36 +0000 Original-Received: from p54a97cd9.dip.t-dialin.net ([84.169.124.217]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Feb 2008 19:20:36 +0000 Original-Received: from Reiner.Steib by p54a97cd9.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Feb 2008 19:20:36 +0000 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 48 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: p54a97cd9.dip.t-dialin.net X-Face: :6KQZ[nyoS_edmB.%gw-=)BYth^|2+Y+^cu%I$FSx!&>-'om>3H7A|M&n(V7fIo3P.; yo.b yq4$p; ZaBtkv)\}biaiBQe"mD}iib1AA@99-fZ7i*bLhNRVC&0Wkxg9)SH?oWc@{ Mail-Copies-To: nobody User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.90 (gnu/linux) Cancel-Lock: sha1:4BVt+J0DOWQ/ynBLSYEE6u9DYzo= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:88971 Archived-At: Hi, on Windows, with , I have set up a locate db (using cygwin). In Emacs, after `M-x locate RET foo RET', I get: --8<---------------cut here---------------start------------->8--- /: Matches for foo: C:/blub/foobar.baz --8<---------------cut here---------------end--------------->8--- When I put the mouse over the file name, only "/blub/foobar.baz" is highlighted, i.e. "C:" is missing. When pressing mouse-1, I got an error: | dired-get-file-for-visit: File no longer exists; type `g' to update dired buffer Binding `directory-listing-before-filename-regexp' in `locate-set-properties' seems to fix the problem for me: --8<---------------cut here---------------start------------->8--- --- locate.el 09 Jan 2008 20:35:41 +0100 1.49 +++ locate.el 13 Feb 2008 20:08:36 +0100 @@ -525,7 +525,8 @@ (defun locate-set-properties () (save-excursion - (let ((pos (locate-get-file-positions))) + (let ((pos (locate-get-file-positions)) + (directory-listing-before-filename-regexp "^ +")) (dired-insert-set-properties (elt pos 0) (elt pos 1))))) (defun locate-insert-header (search-string) --8<---------------cut here---------------end--------------->8--- I don't use `locate' very often so I can't do much real life testing. Unless someone else can confirm that this fix is correct, I'd suggest to install it only in the trunk. But maybe someone can come up with a safe fix for Emacs 22? Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/