GNU bug report logs -
#80031
31.0.50; tramp-completion-file-name-handler leads to empty file list for shadowed path
Previous Next
To reply to this bug, email your comments to 80031 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org:
bug#80031; Package
emacs.
(Fri, 19 Dec 2025 02:16:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Daniel Mendler <mail <at> daniel-mendler.de>:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org.
(Fri, 19 Dec 2025 02:16:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
1. I start from emacs -Q and execute this code in the scratch buffer:
(require 'tramp)
(setq default-directory "/")
2. Type C-x C-f
=> Find file: /
3. Type: ~/ TAB
=> [No match]
EXPECTED: List of files in ~
The problem can be reproduced with the following snippets:
(let ((tramp-mode t)
(minibuffer-completing-file-name t))
(completion-file-name-table "~/" #'file-exists-p t))
=> nil ;; EXPECTED: List of files in ~
(let ((tramp-mode nil)
(minibuffer-completing-file-name nil))
(completion-file-name-table "~/" #'file-exists-p t))
=> '(".cache/" ".config/" ...)
In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
3.24.49, cairo version 1.18.4) of 2025-12-14
Windowing system distributor 'The X.Org Foundation', version 11.0.12101016
System Description: Debian GNU/Linux 13 (trixie)
Configured using:
'configure --prefix=$HOME/.local/share/emacs
--without-compress-install --with-tree-sitter --with-native-compilation
--with-dbus --without-selinux --without-threads --disable-gc-mark-trace
--without-gsettings --without-gpm --with-cairo --with-cairo-xcb
--with-xinput2 --with-x-toolkit=gtk3 --without-toolkit-scroll-bars
'CFLAGS=-O3 -mtune=native -march=native''
Configured features:
CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS HARFBUZZ JPEG LIBOTF LIBSYSTEMD
LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP
SOUND SQLITE3 TIFF TREE_SITTER WEBP X11 XDBE XIM XINERAMA XINPUT2 XPM
XRANDR GTK3 ZLIB
Information forwarded
to
bug-gnu-emacs <at> gnu.org:
bug#80031; Package
emacs.
(Fri, 19 Dec 2025 19:03:01 GMT)
Full text and
rfc822 format available.
Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Daniel Mendler via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <bug-gnu-emacs <at> gnu.org> writes:
Hi Daniel,
> 1. I start from emacs -Q and execute this code in the scratch buffer:
>
> (require 'tramp)
> (setq default-directory "/")
>
> 2. Type C-x C-f
> => Find file: /
>
> 3. Type: ~/ TAB
> => [No match]
> EXPECTED: List of files in ~
Thanks for the report, I can reproduce the problem. Could you, pls,
check, whether the appended patch fixes the problem?
Best regards, Michael.
[Message part 2 (text/x-patch, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org:
bug#80031; Package
emacs.
(Fri, 19 Dec 2025 19:03:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org:
bug#80031; Package
emacs.
(Fri, 19 Dec 2025 19:20:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 80031 <at> debbugs.gnu.org (full text, mbox):
Michael Albinus <michael.albinus <at> gmx.de> writes:
> Daniel Mendler via "Bug reports for GNU Emacs, the Swiss army knife of
> text editors" <bug-gnu-emacs <at> gnu.org> writes:
>
> Hi Daniel,
>
>> 1. I start from emacs -Q and execute this code in the scratch buffer:
>>
>> (require 'tramp)
>> (setq default-directory "/")
>>
>> 2. Type C-x C-f
>> => Find file: /
>>
>> 3. Type: ~/ TAB
>> => [No match]
>> EXPECTED: List of files in ~
>
> Thanks for the report, I can reproduce the problem. Could you, pls,
> check, whether the appended patch fixes the problem?
Yes, it fixes the problem. Thanks and happy holidays!
> Best regards, Michael.
This bug report was last modified today.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.