GNU bug report logs - #67688
30.0.50; ffap prepends buffers default-directory to guessed file name in case of tramp's file name syntax

Previous Next

Package: emacs;

Reported by: Gregor Zattler <grfz <at> gmx.de>

Date: Thu, 7 Dec 2023 13:47:02 UTC

Severity: normal

Found in version 30.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#67688: closed (30.0.50; ffap prepends buffers default-directory
 to guessed file name in case of tramp's file name syntax )
Date: Sat, 23 Dec 2023 09:35:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 23 Dec 2023 11:33:56 +0200
with message-id <83jzp5dzzv.fsf <at> gnu.org>
and subject line Re: bug#67688: 30.0.50; ffap prepends buffers default-directory to guessed file name in case of tramp's file name syntax
has caused the debbugs.gnu.org bug report #67688,
regarding 30.0.50; ffap prepends buffers default-directory to guessed file name in case of tramp's file name syntax 
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
67688: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=67688
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Gregor Zattler <grfz <at> gmx.de>
To: bug-gnu-emacs <at> gnu.org
Subject: 30.0.50; ffap prepends buffers default-directory to guessed file
 name in case of tramp's file name syntax 
Date: Thu, 07 Dec 2023 14:45:34 +0100
Dear Emacs developers, following this recipe (in
some Gnu/Linux shell):

$ cd /tmp
tmp$ emacs -Q -nw
# type /ssh:user <at> server:/home/test
# type M-x ffap RET

the proposed file name in minibuffer then is:
/tmp/ssh:user <at> server:/home/test
instead of
/ssh:user <at> server:/home/test

Therefore it's not possible to just hit RET in order
to open that file.  But that would be nice.

Thanks for your attention, Gregor

In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu,
 cairo version 1.16.0) of 2023-12-02 built on no
Repository revision: fb4b0b30a24e8192e71c1425dc8a295cf39f64ff
Repository branch: HEAD
Windowing system distributor 'The X.Org Foundation', version 11.0.12101007
System Description: Debian GNU/Linux 12 (bookworm)

Configured using:
 'configure --infodir=/usr/share/info/emacs --with-json
 --with-file-notification=yes --with-libsystemd
 --with-cairo --with-x=yes --with-x-toolkit=no
 --without-toolkit-scroll-bars --without-gsettings
 --enable-checking=yes,glyphs
 --enable-check-lisp-object-type
 --with-native-compilation 'CFLAGS=-g3 -O3
 -ffile-prefix-map=/home/grfz/src/emacs-master--fb4b0b30a24e8192e71c1425dc8a295cf39f64ff--2023-12-02T22-47+01-00=. -fstack-protector-strong
 -Wformat -Werror=format-security ''

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM
HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD
LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY
OLDXMENU PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS
TIFF WEBP X11 XDBE XIM XINPUT2 XPM ZLIB

Important settings:
  value of $LC_ALL:
  value of $LC_COLLATE: de_DE.utf8
  value of $LC_CTYPE: de_DE.utf8
  value of $LC_MESSAGES: POSIX
  value of $LC_MONETARY: de_DE.utf8
  value of $LC_NUMERIC: de_DE.utf8
  value of $LC_TIME: de_DE.utf8
  value of $LANG: de_DE.utf8
  locale-coding-system: utf-8-unix


[Message part 3 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: Visuwesh <visuweshm <at> gmail.com>
Cc: michael.albinus <at> gmx.de, grfz <at> gmx.de, 67688-done <at> debbugs.gnu.org
Subject: Re: bug#67688: 30.0.50; ffap prepends buffers default-directory to
 guessed file name in case of tramp's file name syntax
Date: Sat, 23 Dec 2023 11:33:56 +0200
> From: Visuwesh <visuweshm <at> gmail.com>
> Cc: michael.albinus <at> gmx.de,  grfz <at> gmx.de,  67688 <at> debbugs.gnu.org
> Date: Sat, 16 Dec 2023 20:15:48 +0530
> 
> >> --- a/etc/NEWS
> >> +++ b/etc/NEWS
> >> @@ -258,6 +258,11 @@ called in the '--eval' expression, which is useful when those
> >>  arguments contain arbitrary characters that otherwise might require
> >>  elaborate and error-prone escaping (to protect them from the shell).
> >>  
> >> +---
> >> +** ffap-lax-url now defaults to nil.
> >> +Previously, it was set to ffap-lax-url to t but this broke remote file
> >> +name detection.
> >
> > Please quote symbols in NEWS 'like this'.
> 
> Oops, fixed in attached patch.

Thanks, installed on master, and closing the bug.


This bug report was last modified 1 year and 153 days ago.

Previous Next


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