GNU bug report logs -
#8439
[PATCH] ffap.el -- detect paths with spaces
Previous Next
Reported by: Jari Aalto <jari.aalto <at> cante.net>
Date: Thu, 7 Apr 2011 15:25:02 UTC
Severity: minor
Tags: fixed, patch
Merged with 6695,
13087
Found in versions 23.2+1-7, 24.0.50, 24.3.50
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #22 received at 8439 <at> debbugs.gnu.org (full text, mbox):
On 2012-10-19 11:49, Eli Zaretskii wrote:
| >
| > 1. New variable ffap-paths-with-spaces controls if the behavior is in use.
| > By default it is set to "t" in Windows/Cygwin where spaces in paths
| > are encountered.
|
| GNU Coding Standards frown upon using "path" for anything except
| PATH-style lists of directories. Use "file name" or "leading
| directories" instead.
|
| > 2. The "path skipping" is based on finding longest distance:
| >
| > - from first "drive letter", "/" or "\"
| > - until last "/", "\" followed by last non-matching-char-not-usually-found-in-file-names
|
| What will this do to text such as the one below?
|
| C:\emacs\bin\prog1.exe on Windows or /usr/bin/prog1 on Unix.
User can enable/disable if spaces are taken into account. If enabled,
the result is:
"C:\emacs\bin\prog1.exe on Windows or /usr/bin/prog1"
If disabled, depending on cursor position:
"C:\emacs\bin\prog1.exe"
"/usr/bin/prog1"
If you have strategiy to make it better, please suggest.
| > 3. In Cygwin Emacs the paths are expected to be in "/cygdrive/<letter>/"
| > format.
|
| What about Posix-standard /foo/bar/baz, which is the usual case on
| Cygwin?
Only "<drive letter>:" is converted into "/cygdrive/<drive letter>" under
Cygwin.
Jari
This bug report was last modified 4 years and 285 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.