From: Reiner Steib <reinersteib+gmane@imap.cc>
To: emacs-devel@gnu.org
Subject: 22.1.90; `locate' and "C:" on Windows
Date: Wed, 13 Feb 2008 20:19:38 +0100 [thread overview]
Message-ID: <v9wsp8hdf9.fsf@marauder.physik.uni-ulm.de> (raw)
Hi,
on Windows, with
<ftp://alpha.gnu.org/gnu/emacs/pretest/windows/emacs-22.1.90-bin-i386.zip>,
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/
next reply other threads:[~2008-02-13 19:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-13 19:19 Reiner Steib [this message]
2008-02-14 0:54 ` 22.1.90; `locate' and "C:" on Windows Chong Yidong
2008-02-14 1:51 ` Stefan Monnier
2008-02-14 8:25 ` Jason Rumney
2008-02-14 22:31 ` Reiner Steib
2008-03-09 12:30 ` Reiner Steib
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=v9wsp8hdf9.fsf@marauder.physik.uni-ulm.de \
--to=reinersteib+gmane@imap.cc \
--cc=Reiner.Steib@gmx.de \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.