GNU bug report logs -
#27267
25.1; ffap-file-at-point erroneously returns "" in some cases
Previous Next
Reported by: Alex <agrambot <at> gmail.com>
Date: Tue, 6 Jun 2017 22:44:01 UTC
Severity: minor
Found in version 25.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
Alex <agrambot <at> gmail.com> writes:
> Execute ffap-file-at-point with the following buffer contents (| for
> cursor position):
>
> 7:|
>
> The result is "", which leads to ffap's default input being ~ (not ~/ as
> expected).
I get
(ffap-file-at-point)
=> "/home/larsi/"
so this seems like it's fixed.
>
> Similarly, try ffap-file-at-point on:
>
> :6|
>
> This is due to ffap-file-at-point stripping off the colon and numbers,
> and sending "" to ffap-file-exists-string. (file-exists-p "") returns t,
> so ffap-file-at-point treats "" as an existent file.
I get nil from that in the Emacs trunk, which seems correct, so I guess
this has been fixed to, and I'm closing this bug report. Please reopen
if this is still present on the trunk.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 6 years and 26 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.