GNU bug report logs - #24057
25.1.50; ffap interprets comments beginning with "//" as file path

Previous Next

Package: emacs;

Reported by: Kaushal Modi <kaushal.modi <at> gmail.com>

Date: Fri, 22 Jul 2016 23:01:01 UTC

Severity: minor

Tags: fixed, patch

Merged with 7229, 8990

Found in versions 23.1, 23.3, 25.1.50

Fixed in version 26.1

Done: npostavs <at> users.sourceforge.net

Bug is archived. No further changes may be made.

Full log


Message #14 received at 24057 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Kaushal Modi <kaushal.modi <at> gmail.com>
Cc: 24057 <at> debbugs.gnu.org
Subject: Re: bug#24057: 25.1.50;
 ffap interprets comments beginning with "//" as file path
Date: Sat, 23 Jul 2016 10:34:00 +0300
> From: Kaushal Modi <kaushal.modi <at> gmail.com>
> Date: Fri, 22 Jul 2016 23:00:00 +0000
> 
> (1) a major mode uses "//" as comment start chars, and
> (2) ido-mode is enabled, and
> (3) ffap feature is enabled, and
> (4) user does C-x C-f on a comment like "//foo"
> 
> attempt is made to access "//foo" path.

I see no reason to assume that file names cannot appear in comments.

> (3) Hit "C-x C-f"
> 
> You will see that emacs is trying to look for a path "//This"!
> 
> This must not happen.

I could agree with a user option to disable this behavior, but
disabling it unconditionally is IMO a mistake.

Thanks.




This bug report was last modified 8 years and 120 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.