GNU bug report logs -
#4374
find-file-at-point doesn't recognize absolute file paths with trailing line numbers. (Patch included.)
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Tue, 08 Sep 2009 22:36:42 -0400
with message-id <xnzl94269x.fsf <at> fencepost.gnu.org>
and subject line Re: bug#4374: find-file-at-point doesn't recognize absolute file paths with trailing line numbers. (Patch included.)
has caused the Emacs bug report #4374,
regarding find-file-at-point doesn't recognize absolute file paths with trailing line numbers. (Patch included.)
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact help-debbugs <at> gnu.org
immediately.)
--
4374: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=4374
Emacs Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
I frequently run across absolute file paths with a trailing line-number
specification, e.g. ~/foo.el:7.
Find-file-at-point fails to recognize the file part and falls back to
opening the parent dir.
Here's the (trivial) fix:
--- emacs-23/lisp/ffap.el
+++ emacs-23/lisp/ffap-fix.el
@@ -1170,7 +1170,7 @@
;; remote, you probably already have a connection.
((and (not abs) (ffap-file-exists-string name)))
;; Try stripping off line numbers; good for compilation/grep
output.
- ((and (not abs) (string-match ":[0-9]" name)
+ ((and (string-match ":[0-9]" name)
(ffap-file-exists-string (substring name 0
(match-beginning 0)))))
;; Try stripping off prominent (non-root - #) shell prompts
;; if the ffap-shell-prompt-regexp is non-nil.
[Message part 3 (message/rfc822, inline)]
hans bennekop wrote:
> I frequently run across absolute file paths with a trailing line-number
> specification, e.g. ~/foo.el:7.
> Find-file-at-point fails to recognize the file part and falls back to
> opening the parent dir.
(I guess path-separator is not ":" on your platform, since if it is
this seems to work for me.)
> Here's the (trivial) fix:
I installed something similar.
This bug report was last modified 15 years and 341 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.