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
View this message in rfc822 format
>> C:\emacs\bin\prog1.exe on Windows or /usr/bin/prog1 on Unix.
> Eli, excuse me very much, but you cheating.
I don't see the relationship with cheating. Yes, his example is
probably not too important, but I think if we want to add support for
spaces we first need to decide which cases we want to handle, since the
general case is simply impossible.
Here are some disorganized thoughts:
- many of the examples shown in this thread have to do with "one file
name per line". But if noone tells us beforehand that the file name
goes to EOL, handling these well will unavoidably end up with too many
false positives.
- we should think of good hints for beginning/end of file names.
E.g. I think if we find something that matches "['\">,.][ \n]", we
should probably assume it's the end of the file name (EOFN).
Or " /" is probably a BOFN, whereas "/ " is an EOFN.
- maybe if the separators are forward slashes, we should assume that
there's no space in the file name.
> But, if there no way to make false positives amount small enough, I
> would to propose an idea for extension: find-file-at-region(). You
> just select a region of text, and Emacs tries to interprets it as
> default value for find-file().
M-w C-x C-f C-y already handles this case.
Stefan
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.