From unknown Sat Jun 14 00:07:35 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#53223 <53223@debbugs.gnu.org> To: bug#53223 <53223@debbugs.gnu.org> Subject: Status: 27.2; multi-hop TRAMP with find-file-visit-truename t Reply-To: bug#53223 <53223@debbugs.gnu.org> Date: Sat, 14 Jun 2025 07:07:35 +0000 retitle 53223 27.2; multi-hop TRAMP with find-file-visit-truename t reassign 53223 emacs submitter 53223 Aleksei Fedotov severity 53223 normal tag 53223 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 12 16:34:20 2022 Received: (at submit) by debbugs.gnu.org; 12 Jan 2022 21:34:20 +0000 Received: from localhost ([127.0.0.1]:59329 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7lG7-0001AV-Ii for submit@debbugs.gnu.org; Wed, 12 Jan 2022 16:34:20 -0500 Received: from lists.gnu.org ([209.51.188.17]:48876) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7l69-00074x-V6 for submit@debbugs.gnu.org; Wed, 12 Jan 2022 16:24:03 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53686) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7l69-0000yj-GO for bug-gnu-emacs@gnu.org; Wed, 12 Jan 2022 16:24:01 -0500 Received: from mailtransmit05.runbox.com ([185.226.149.38]:39692) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7l66-0002w0-Ea for bug-gnu-emacs@gnu.org; Wed, 12 Jan 2022 16:24:01 -0500 Received: from mailtransmit02.runbox ([10.9.9.162] helo=aibo.runbox.com) by mailtransmit05.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1n7l5s-00EN4J-6G for bug-gnu-emacs@gnu.org; Wed, 12 Jan 2022 22:23:44 +0100 Received: from [10.9.9.72] (helo=submission01.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1n7l5r-0008FN-NF for bug-gnu-emacs@gnu.org; Wed, 12 Jan 2022 22:23:44 +0100 Received: by submission01.runbox with esmtpsa [Authenticated ID (873625)] (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) id 1n7l5r-0004TA-89; Wed, 12 Jan 2022 22:23:43 +0100 From: Aleksei Fedotov To: bug-gnu-emacs@gnu.org Subject: 27.2; multi-hop TRAMP with find-file-visit-truename t Date: Wed, 12 Jan 2022 22:23:41 +0100 Message-ID: <877db48x7m.fsf@hp.cfotr.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.226.149.38; envelope-from=aleksei@fedotov.email; helo=mailtransmit05.runbox.com X-Spam_score_int: 6 X-Spam_score: 0.6 X-Spam_bar: / X-Spam_report: (0.6 / 5.0 requ) BAYES_00=-1.9, HDRS_MISSP=2.497, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.1 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi, I've spotted a problem with TRAMP when using multi-hop ssh with find-file-visit-truename set to t. Assuming that there is a remote machine XXX.YYY.com with SSH server. On local machine I run emacs like that: Content analysis details: (1.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [209.51.188.17 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.9 SPF_FAIL SPF: sender does not match SPF record (fail) [SPF failed: Please see http://www.openspf.org/Why?s=mfrom; id=aleksei%40fedotov.email; ip=209.51.188.17; r=debbugs.gnu.org] 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.51.188.17 listed in wl.mailspike.net] 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 2.5 HDRS_MISSP Misspaced headers X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 12 Jan 2022 16:34:18 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) Hi, I've spotted a problem with TRAMP when using multi-hop ssh with find-file-visit-truename set to t. Assuming that there is a remote machine XXX.YYY.com with SSH server. On loc= al machine I run emacs like that: > emacs -Q --eval '(progn \ > (require (quote tramp)) \ > (setq find-file-visit-truename t) \ > (with-current-buffer (find-file "/ssh:root@XXX.YYYY.com|ssh:localho= st:") \ > (tramp-cleanup-all-connections) \ > (revert-buffer)))' It successfully connects to the remote machine and opens dired buffer with = the correct content, but the filename name in the dired header is not '/ssh:XXX.YYYY.com|ssh:localhost:' as I might expect, but '/ssh:localhost:/root:'. After (revert-buffer) I get an error in *Messages*: > tramp-handle-access-file: Reading directory: No such file or directory /s= sh:localhost:/root/ The issue does not reproduce if find-file-visit-truename set to nil. It loo= ks like 'file-truename' doesn't work correctly with multi-hop tramp file na= mes. In GNU Emacs 27.2 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.24.30, = cairo version 1.17.4) of 2021-08-07 built on buildvm-x86-31.iad2.fedoraproject.org Windowing system distributor 'The X.Org Foundation', version 11.0.12101004 System Description: Fedora Linux 35 (Workstation Edition) Recent messages: Tramp: Found remote shell prompt on =E2=80=98XXX.YYY.com=E2=80=99 Tramp: Sending command =E2=80=98exec ssh -e none localhost=E2=80=99 Tramp: Waiting for prompts from remote shell...done Tramp: Found remote shell prompt on =E2=80=98localhost=E2=80=99 Tramp: Opening connection for localhost using ssh...done Tramp: Opening connection for localhost using ssh... Tramp: Sending command =E2=80=98exec ssh -e none localhost=E2=80=99 Tramp: Waiting for prompts from remote shell...done Tramp: Found remote shell prompt on =E2=80=98localhost=E2=80=99 Tramp: Opening connection for localhost using ssh...done tramp-handle-access-file: Reading directory: No such file or directory /ssh= :localhost:/root/ Configured using: 'configure --build=3Dx86_64-redhat-linux-gnu --host=3Dx86_64-redhat-linux-gnu --program-prefix=3D --disable-dependency-tracking --prefix=3D/usr --exec-prefix=3D/usr --bindir=3D/usr/bin --sbindir=3D/usr/sbin --sysconfdir=3D/etc --datadir=3D/usr/share --includedir=3D/usr/include --libdir=3D/usr/lib64 --libexecdir=3D/usr/libexec --localstatedir=3D/var --sharedstatedir=3D/var/lib --mandir=3D/usr/share/man --infodir=3D/usr/share/info --with-dbus --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=3Dgtk3 --with-gpm=3Dno --with-xwidgets --with-modules --with-harfbuzz --with-cairo --with-json build_alias=3Dx86_64-redhat-linux-gnu host_alias=3Dx86_64-redhat-linux-gnu CC=3Dgcc 'CFLAGS=3D-DMAIL_USE_LOCKF -= O2 -flto=3Dauto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=3Dformat-security -Wp,-D_FORTIFY_SOURCE=3D2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=3D/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=3D/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=3Dgeneric -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' LDFLAGS=3D-Wl,-z,relro PKG_CONFIG_PATH=3D:/usr/lib64/pkgconfig:/usr/share/pkgconfig' Configured features: XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS LIBSYSTEMD JSON PDUMPER GMP Important settings: value of $LC_MONETARY: en_US.UTF-8 value of $LC_NUMERIC: en_US.UTF-8 value of $LC_TIME: en_US.UTF-8 value of $LANG: en_US.utf8 locale-coding-system: utf-8-unix Major mode: Dired by name Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny rfc822 mml easymenu mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils tramp-cmds dired dired-loaddefs tramp-sh tramp-cache tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat shell pcomplete comint ansi-color ring parse-time iso8601 time-date ls-lisp format-spec auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs cl-loaddefs cl-lib password-cache json subr-x map seq byte-opt gv bytecomp byte-compile cconv tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting xwidget-internal cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 67308 9233) (symbols 48 8131 1) (strings 32 24241 1892) (string-bytes 1 868840) (vectors 16 14042) (vector-slots 8 184813 11864) (floats 8 40 21) (intervals 56 271 0) (buffers 1000 13)) --=20 Aleksei From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 13 09:00:51 2022 Received: (at 53223) by debbugs.gnu.org; 13 Jan 2022 14:00:51 +0000 Received: from localhost ([127.0.0.1]:60536 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n80ep-0001tp-D0 for submit@debbugs.gnu.org; Thu, 13 Jan 2022 09:00:51 -0500 Received: from mout.gmx.net ([212.227.15.15]:47405) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n80en-0001tY-1m for 53223@debbugs.gnu.org; Thu, 13 Jan 2022 09:00:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1642082441; bh=XKLhbmnOeBMCLbpN9tsjFCnfOn95rAqm4v4cmY5f85s=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=Jk6XPQ7TYKRHPiTZ3XPqMamt4FoFUxXFtH/jscJpH4+I2c8F4c9153VXpyZIVHUc0 hY0+9USQbrT9211ODpySVUSF8iqUh709u87pZtPQHOem0gvdk8SLDRmKZ3hlF6zfJq BfOfyFcXqkX0XjUA0+aW6ZEMhqEDHmBNr9Q9Jqts= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from gandalf.gmx.de ([213.220.157.129]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MCKBc-1mzjCN0apu-009McH; Thu, 13 Jan 2022 15:00:41 +0100 From: Michael Albinus To: Aleksei Fedotov Subject: Re: bug#53223: 27.2; multi-hop TRAMP with find-file-visit-truename t References: <877db48x7m.fsf@hp.cfotr.com> Date: Thu, 13 Jan 2022 15:00:40 +0100 In-Reply-To: <877db48x7m.fsf@hp.cfotr.com> (Aleksei Fedotov's message of "Wed, 12 Jan 2022 22:23:41 +0100") Message-ID: <87a6fzpwfr.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:nrZf8DHnmF7C9XUyMGfq9cz341K+6gds+9FPAYRxf/Ttnh9i/2A 19N4nTn2UZsSFVe+oZBiFZrHTGzOgyPJrPbapc4XynIARQfjEvhOTdHvQ5uV2f6jKxKx9KK sFvrpAAuJkKnPA8NZjdaSzOsWxxkLO+h7YvH6l/S+EtFsu93bqCN12fXNqOExRDYLN3LYyk AUpCNiWZmbowxkP1xn68g== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:uPqnH4DIaRQ=:+xa309Mw8DKszp/Mah1sgA zC7S1nrWpahthJ9Bg1OX+P+hSxwjVDx1V+fPVqYEUUJXMhidjiqXIyfZO3AHbwdtFYD3ITcZT oY5L6an4kNq0NQzP9q13/niPOSzjsEV3cKZJt1j9R5Uygy4nnLC7dSFPUJ3Bl4xFuj88jrJYq XEN53hed95XJNiLQzxCKfN7mCylQT6YzAXGEx2+FPoJ3xchVBj67rp9FF0Q/KXplGwVNMGGbe r1Pl279+JnHOHvn1ulLt6TIy6CwINLfYM3EgPMgrKQ/v4yBXisvfH+vaRxWFnNDEzGou9iKnX NsEa6zCAZgZ0VPzXXPEmBOBtiPjK9YJtz1gEZJ+s/DCPH3xMK7h7Juaq57cbWjUBzmiWyp2gw MLfQ5sz1ME/zXQknfmXzWnj644aT1oVr8MkjQBeluRKqAJ/ObZqiVXB7ddCUd+dzYsL6k9Osg sOia7nHOLPDnbCXkPOht3zsIICzTndynQSete/7giYmiZivDAoa01s58THD6ciGfwBkmt27eV Jodzo5CWCNtjyy1MzOGKc3yPc7GNFeHH8KYzDqU4VHZo8MFiCqJtloD8dpS2FnRaKBg8z24cd F6erqRlVFCn+8xq6LL+suT9Xjoy9qIawfLGkUwy1kVsHSbOgaviuzSr+WUdXioTST2qOynBP+ Ms5BqU+5hZKJz7r3t/JkTgoMiS3vLMNczlej+ewD7F70x6hUmoAnmTiDLgoQo0MyYFTVlv2sk IgsLEbMDhUR1stNXbgl8+elh7dGVv+ql97QqAGWcyRZPGWuIDmYMYdH9YsCFQH7PB1K7Y9VgP SCKKxhAwgY/EZQgwo1Aq4FXnky4zrA6JV1VVKFaA1rmLgcvgwmC8EP3eIr3n0tzRduqaMsDTh KXTBLiBLopo757It92wc9Sp7xqR0L1n6BFbgmxgoNAUlgg097ZslSZnTTizYOnXmi98tl6iPV VUhrfcK6oJk+cAxKC8hhKpaytmD625m8J0idVOHAjOablc6k5CsJ0mgHSrT3ObYh4Pu7ooWht /XbHXVWwRxaplPcYC5wh8n/MlU/woX5Sz4sr8jtq+7oPCgCJG8U2RNlDe0AtzlDP7g1kFzM4q 0aynrtaY2AFA0U= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 53223 Cc: 53223@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Aleksei Fedotov writes: > Hi, Hi Aleksei, > I've spotted a problem with TRAMP when using multi-hop ssh with > find-file-visit-truename set to t. > > Assuming that there is a remote machine XXX.YYY.com with SSH server. On local > machine I run emacs like that: > >> emacs -Q --eval '(progn \ >> (require (quote tramp)) \ >> (setq find-file-visit-truename t) \ >> (with-current-buffer (find-file "/ssh:root@XXX.YYYY.com|ssh:localhost:") \ >> (tramp-cleanup-all-connections) \ >> (revert-buffer)))' > > It successfully connects to the remote machine and opens dired buffer with the > correct content, but the filename name in the dired header is not > '/ssh:XXX.YYYY.com|ssh:localhost:' as I might expect, but > '/ssh:localhost:/root:'. After (revert-buffer) I get an error in *Messages*: > >> tramp-handle-access-file: Reading directory: No such file or directory /ssh:localhost:/root/ > > The issue does not reproduce if find-file-visit-truename set to nil. It looks like 'file-truename' doesn't work correctly with multi-hop tramp file names. Tramp behaves as expected. You use an ad-hoc multi-hop remote file name. Such ad-hoc definitions are removed when you call `tramp-cleanup-all-connections'. This is described in the Tramp manual (info "(tramp) Ad-hoc multi-hops") (info "(tramp) Cleanup remote connections") If you want to keep multi-hop definitions permanently, configure `tramp-default-proxies-alist' as described in the Tramp manual, or set `tramp-save-ad-hoc-proxies' to t. See (info "(tramp) Multi-hops") Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 13 15:54:19 2022 Received: (at 53223) by debbugs.gnu.org; 13 Jan 2022 20:54:19 +0000 Received: from localhost ([127.0.0.1]:34718 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n876w-0002S5-QG for submit@debbugs.gnu.org; Thu, 13 Jan 2022 15:54:19 -0500 Received: from mailtransmit05.runbox.com ([185.226.149.38]:54132) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n876t-0002Rm-Qt for 53223@debbugs.gnu.org; Thu, 13 Jan 2022 15:54:18 -0500 Received: from mailtransmit03.runbox ([10.9.9.163] helo=aibo.runbox.com) by mailtransmit05.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1n876n-00GdKx-BY for 53223@debbugs.gnu.org; Thu, 13 Jan 2022 21:54:09 +0100 Received: from [10.9.9.73] (helo=submission02.runbox) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1n876m-0008RK-SB; Thu, 13 Jan 2022 21:54:09 +0100 Received: by submission02.runbox with esmtpsa [Authenticated ID (873625)] (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) id 1n876h-0002uv-HN; Thu, 13 Jan 2022 21:54:03 +0100 From: Aleksei Fedotov To: Michael Albinus Subject: Re: bug#53223: 27.2; multi-hop TRAMP with find-file-visit-truename t References: <877db48x7m.fsf@hp.cfotr.com> <87a6fzpwfr.fsf@gmx.de> Date: Thu, 13 Jan 2022 21:54:02 +0100 In-Reply-To: <87a6fzpwfr.fsf@gmx.de> (Michael Albinus's message of "Thu, 13 Jan 2022 15:00:40 +0100") Message-ID: <87sftr73x1.fsf@hp.cfotr.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 53223 Cc: 53223@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >> I've spotted a problem with TRAMP when using multi-hop ssh with >> find-file-visit-truename set to t. >> >> Assuming that there is a remote machine XXX.YYY.com with SSH server. On local >> machine I run emacs like that: >> >>> emacs -Q --eval '(progn \ >>> (require (quote tramp)) \ >>> (setq find-file-visit-truename t) \ >>> (with-current-buffer (find-file "/ssh:root@XXX.YYYY.com|ssh:localhost:") \ >>> (tramp-cleanup-all-connections) \ >>> (revert-buffer)))' >> >> It successfully connects to the remote machine and opens dired buffer with the >> correct content, but the filename name in the dired header is not >> '/ssh:XXX.YYYY.com|ssh:localhost:' as I might expect, but >> '/ssh:localhost:/root:'. After (revert-buffer) I get an error in *Messages*: >> >>> tramp-handle-access-file: Reading directory: No such file or directory /ssh:localhost:/root/ >> >> The issue does not reproduce if find-file-visit-truename set to nil. It looks like 'file-truename' doesn't work correctly with multi-hop tramp file names. > > Tramp behaves as expected. You use an ad-hoc multi-hop remote file > name. Such ad-hoc definitions are removed when you call > `tramp-cleanup-all-connections'. This is described in the Tramp manual > (info "(tramp) Ad-hoc multi-hops") > (info "(tramp) Cleanup remote connections") > > If you want to keep multi-hop definitions permanently, configure > `tramp-default-proxies-alist' as described in the Tramp manual, or set > `tramp-save-ad-hoc-proxies' to t. See (info "(tramp) Multi-hops") It works exactly as described in the documentaion, but what is bothering me is the difference in behaviour depending on the state of `find-file-visit-truename'. It should only affect symlink resolution, but it also changes Tramp behaviour. If `find-file-visit-truename' is set to nil, then Tramp is able to revert the buffer and add a multi-hop definition back to `tramp-default-proxies-alist'. If `find-file-visit-truename' is set to t, then it doesn't work. Shouldn't the buffer somehow preserve the full path? -- Aleksei From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 13 17:38:57 2022 Received: (at 53223) by debbugs.gnu.org; 13 Jan 2022 22:38:57 +0000 Received: from localhost ([127.0.0.1]:34824 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n88kD-0007mi-AM for submit@debbugs.gnu.org; Thu, 13 Jan 2022 17:38:57 -0500 Received: from mout.gmx.net ([212.227.15.15]:34517) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n88k7-0007mI-Uu for 53223@debbugs.gnu.org; Thu, 13 Jan 2022 17:38:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1642113524; bh=6FUseJ+tgoecn9XnIVkk17PHkHvM0mRI7SPUfx9gIBE=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=Gi72bS7K0JJo5n8CVydNqJjN2dff+DzRS4LZTSxj8j7+RMh/yHE1OwGokgSfITvAR ThjXfN4My6ifB/T3xeVJidzfHPm9/6oukGXzaovKCLrQnOC1hfgKh72xsFJoSjkCeX s3x2y3ML6VD5iKOSBjcRgJwaPS7hEPvkQpM/m6h0= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from gandalf.gmx.de ([213.220.157.129]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MeU4s-1mZuNz0Yrc-00aTTK; Thu, 13 Jan 2022 23:38:44 +0100 From: Michael Albinus To: Aleksei Fedotov Subject: Re: bug#53223: 27.2; multi-hop TRAMP with find-file-visit-truename t References: <877db48x7m.fsf@hp.cfotr.com> <87a6fzpwfr.fsf@gmx.de> <87sftr73x1.fsf@hp.cfotr.com> Date: Thu, 13 Jan 2022 23:38:38 +0100 In-Reply-To: <87sftr73x1.fsf@hp.cfotr.com> (Aleksei Fedotov's message of "Thu, 13 Jan 2022 21:54:02 +0100") Message-ID: <87mtjzz2fl.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:SXEcnho1Fp/YLSa6765pyij8YdDbfA8WrofLrpbPUL9zps4Cuuf m4WMUHTqR/TYQMfvJLz/fFW5LoMS1kJ6HeNLlf2r4RjDjuiUNj/NDRPYYzm+ipO6FItIgL4 1i0IIDWmLtW0jJP78MzvHxRSTRQ7jH5ixjfpPQKvPgPr3W01o6k5/uJBpOjiFS49TfAI0wR kDn/CTbIvTQ45cfkn+3Tw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:1y/lHgFAIv4=:zrRKkV6iJj+KCmnfc8iGnz kf8u1sz8E4rwXqgcd8V1UAesR+HwLS04hOqOWqPthj956jAzR9E+xqHMySz86YN0Ox62O6dZj vlJrRkM2SjXocFXCeM/MHA2ABYkfQS1xSH2cJy5/XYFBCww36fw1/S2rJFVohkoGyvT9nzwLv akGdIVUQw2eUgt0Bu1oIe63rK+V/NYxXDXBkxNHNhqq81YSTT09kpfw/ANjDc993ZB7RJdFed eNMYcUb/EjWXaKi9yab3MGLqmLQMGip5IEEPM6BlI2KFpOYlYT0Zn+GarNxJXLmpMkGkGLF8d L1Q6rwVV/5r5tdhcxXJ0OeLZoTlOv9ec3QN5rIgGcIxrb23kt50OaMp4e4RjJgdKrIboHcgBH v8My+N7jCnARnc/nlqFIKYdvzB5qFqzSR1yDu10R206P4h1kUYRmfBy16X4/FDMG8TgvxYJSL NpJFypM00zsU+QT7qCwy/XyJDZnrpKpUjUodU8kExoWmDt3YLcaHScIaEwBONVF2CkiPlrzOH 9jlrhUw9jiJAcOEzeUeCzQe/vfWCVLq4aBizSHLGZrBZK331WG2jZqCBYu4tUloylkyVKZNz7 V+NldnPk2525ygxrhVoizP+P55NmdWnf049H/dU53uXAWiDHc9PnKaKciXVxfCL5LG7FckxG0 6v3LfQh4l3slzxwOwK8qu6g4g7WVpzAwzeBxFQeoSSKVS/JXNZBUJG9gX6PjlvZbWdJyl7ZIc MPqNF3WonHQCusY2/nCJtdee8THxM9Yu9NsxdUoKBNQ3dekQoP7paAy0Tq3FNqjXKg5kjA9U5 rRtaeU8UVOB8oBOHKnVTMtY7J1+IjvKh63cxiGlb//sZ/Etb0HHU9QLSmAZnmRT/WQwqfCSHf uxSErJIbPNfDhCPZj6OII1Vu4YtPXQ6mDzyqY8RTyuApehGgQBRGXPHHApSjKC0en5pY4tSRk LXeylPF0QTziM7ETu3oewHljudLAKnD6WgFJxBZZXhqrGa/JSR9vyQ//dWojGO4lBuJ7Ix/tI JkdPXOdwhBoIiao9mKfHqxRGnpvIGsKilH8jbAmlUdpILLZO58dzzVWEUUCBVOz8fqjVqgb3G tU0pi+rfFCaYVI= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 53223 Cc: 53223@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Aleksei Fedotov writes: Hi Aleksei, > It works exactly as described in the documentaion, but what is bothering me is > the difference in behaviour depending on the state of > `find-file-visit-truename'. It should only affect symlink resolution, but it > also changes Tramp behaviour. > > If `find-file-visit-truename' is set to nil, then Tramp is able to revert the > buffer and add a multi-hop definition back to `tramp-default-proxies-alist'. > If `find-file-visit-truename' is set to t, then it doesn't work. Shouldn't the > buffer somehow preserve the full path? It isn't just a find-file-visit-truename problem. Tramp cleans up ad-hoc multi-hop proxies when tramp-cleanup-all-connections is performed. This could happen for many different Tramp file name operations, not just file truenames. It is sheer luck for you that the example works when you haven't set find-file-visit-truename. If you replace tramp-cleanup-all-connections by tramp-cleanup-this-connection in your example, it works as expected. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 23 03:40:54 2022 Received: (at 53223-done) by debbugs.gnu.org; 23 Feb 2022 08:40:54 +0000 Received: from localhost ([127.0.0.1]:43750 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nMnCg-00029h-GV for submit@debbugs.gnu.org; Wed, 23 Feb 2022 03:40:54 -0500 Received: from mout.gmx.net ([212.227.17.20]:33129) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nMnCe-00029P-Mf for 53223-done@debbugs.gnu.org; Wed, 23 Feb 2022 03:40:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1645605644; bh=R/YcMzuC07n/dQSz8w+NIBl3P/GMyPRhA3Cv1E1P/9U=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=XiUKow19m3QyrgkJ4T2jQBLoMdvtVsK3hecSMjEuHyRK1dR2Ex8lW0kcHz1UkawAI BDppRXxzPrCUHXjA0LjJLN2bSEA2zFgw2SGq7l3TGr6jc9niTZ1xgzbyfpf9KlECYa uMYoChwsae2A8HBuiP6QklNd9gamyweVbJscrFhE= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from gandalf.gmx.de ([212.91.249.160]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MvbBu-1oCptC2bTy-00scI9; Wed, 23 Feb 2022 09:40:44 +0100 From: Michael Albinus To: Aleksei Fedotov Subject: Re: bug#53223: 27.2; multi-hop TRAMP with find-file-visit-truename t References: <877db48x7m.fsf@hp.cfotr.com> <87a6fzpwfr.fsf@gmx.de> <87sftr73x1.fsf@hp.cfotr.com> <87mtjzz2fl.fsf@gmx.de> Date: Wed, 23 Feb 2022 09:40:43 +0100 In-Reply-To: <87mtjzz2fl.fsf@gmx.de> (Michael Albinus's message of "Thu, 13 Jan 2022 23:38:38 +0100") Message-ID: <87ee3u7z78.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:oRAobcn8iwEV5xeG7Gp5zM9gKMCeC9PFV9U00YoatrNHFqRuEp5 YLwhHkQDAea1Qe99rjzyygjflR8dtz5m6/oAVYuKkwP3n0HFDeHrYUc+w3eeG9svwK7sbXx gMdOLQsmBtuReMhYUJBPLiHQagkAUq46iHGEyc5rsvh7SH4m+cEdWe5f+vdaO8UtCpdJqtz oGWBdOfqDTutb9UX7DnQQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:iFKgxdJfcec=:NSjhUa/XuAXRUjYAtyCZUd htEWV7fvMeMaS9ugDuUFcXWCgXH7iQrisF9akmXmi7dfgyv7XyW29dS7AqKgh0uf7o1WcJcJy JKFBqvT+bKbgnEoz7o49FMefuKJsALErrlv8voRGS4gd+7DuSKxc1lKpAP9bNARpesF8agAle YIdPSA/MMECgLj7d9EavS0cWhsLiQ42XVy0q7s8IFOT+d9kAB+uwTt9wVv7P9pnlVQVlmDiHh NJhp4zeWuO0ieugpxA/C2xhw7OYLbcJnfpa9rrqrXY6C0+JQ6Iy6bw8BJ2p8AUjBklMpGUc9y LeUvUF68inRExh3x3MJxyFCKe7XfEYHeOnAvckTsslJt1FAdRzN2r4F0WMKXsJD+NzPFBc2Um FYdZn0fqB+isbi06VHFS7BXF55/VY0MpcgaU0VAI7k84WL7nEriQf1N1Yw+HEsYxvd7hERF4p CxhEZgno9vXJoxuolibZh0GUZIyy/DEOkkWMEIPmOrQXyjd3cynT05VFhktndJF8r1CYxA4wN vcepmxCMJPWa5RghcDZrqhtgvF2fv5qaAH8OQvrfgkrIlAnUhoOx7U2woFVrYWnRjDFn1zf4e uEigLYrdsxiOm+j2ghqyH//kGVD0iufJPt351SmyCbBWKSj4mKCbnsESpDXQUI4Lko+Uuq3Gy tS9UKRalEJgY+BniuMWNe9ZABcW+FVtYbNsO/26T0iQnXM2SU9zCM6Ozbe1qjqzFM+8Z2GZlB rmUfsGql0jf4VFDPbnsPrqIporeskS/6ZGR+jUsutYjQRkD5PLNJog3xBjoNgbHAgTb82duKx rjEKeJA04eCiMtY2juJ2tAckHCB6kl7IfPzifLIaFxbZxMYYyjdb9Kq4Dd13XgdXuDZ84fusT IrD9GdSERhmmhB2+aOCAPtyonvycYulsKXJt8etM1tEEOe0d7gg2U5AODGhfVxx0amdgwA+7e wDsn8pavcG+hLLB1CdtJDaqa5+KGLm9PeAIG8A/wA094cuviygC9Tds9t3wGlAxpyE2m/l4Tl zvPr6rzrm6ZSTJWyZP8Fwly3lVGRrQLKD89K6KSqEnMNuePBXe090Ajysu17wJa8YLjgI8ALn XFMq3xNPaAKz/E= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 53223-done Cc: 53223-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Michael Albinus writes: Hi Aleksei, >> It works exactly as described in the documentaion, but what is bothering me is >> the difference in behaviour depending on the state of >> `find-file-visit-truename'. It should only affect symlink resolution, but it >> also changes Tramp behaviour. >> >> If `find-file-visit-truename' is set to nil, then Tramp is able to revert the >> buffer and add a multi-hop definition back to `tramp-default-proxies-alist'. >> If `find-file-visit-truename' is set to t, then it doesn't work. Shouldn't the >> buffer somehow preserve the full path? > > It isn't just a find-file-visit-truename problem. Tramp cleans up ad-hoc > multi-hop proxies when tramp-cleanup-all-connections is performed. This > could happen for many different Tramp file name operations, not just > file truenames. It is sheer luck for you that the example works when you > haven't set find-file-visit-truename. > > If you replace tramp-cleanup-all-connections by tramp-cleanup-this-connection > in your example, it works as expected. No further comment, so I close this bug. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 23 03:41:21 2022 Received: (at control) by debbugs.gnu.org; 23 Feb 2022 08:41:21 +0000 Received: from localhost ([127.0.0.1]:43760 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nMnD7-0002BV-2t for submit@debbugs.gnu.org; Wed, 23 Feb 2022 03:41:21 -0500 Received: from mout.gmx.net ([212.227.17.20]:44087) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nMnD5-0002BG-Lu for control@debbugs.gnu.org; Wed, 23 Feb 2022 03:41:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1645605674; bh=njZI75Icln2f9dDzIFHGyX6C7MsZRVlc++cf7eFZxc0=; h=X-UI-Sender-Class:Date:To:From:Subject; b=ZdfFc/mQc0v2RnQa6146/gLz7M3GFE19wSbPzpZesCoxDGEpEQliGeWoBqCl8QqoB 5NBASliomz3yGH+1UPK8MNETQpM/FFNAzvg7/U3d/Lv07ZikC+QrxXk/U1ZTqjgVBg EAcTLPg09D9AuZ0GC2XNRoT7a+i81POFz0RmO/WU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from gandalf.gmx.de ([212.91.249.160]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MZTqg-1ni7iB3YT0-00WYFS for ; Wed, 23 Feb 2022 09:41:14 +0100 Date: Wed, 23 Feb 2022 09:41:13 +0100 Message-Id: <87czje7z6e.fsf@gmx.de> To: control@debbugs.gnu.org From: Michael Albinus Subject: control message for bug #53223 X-Provags-ID: V03:K1:vAWJJFqEijOdPFshPxLIeKR+34fYFfWkXPqWIFdR5UyeTMg8DKR 3EXQ4B9SVheJS71ToDrT7q92jTPofuMty7gK7v0+Ym61apd8SpglhYkd6m4jbR8jWf9C+hE CFSMlxaalF4QMnDm/wd07NGN5mQJidkfxxPX3Je98uFa3Tnq3kIgE8xog+bNFyvwwAY6Fdn 9zMq1FCSOuwPuPbIn+1lQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Aq4rGprY1No=:Llr+Yp2nirxgDfnEDraTsj pgeQPkIGXgWLAMwRmFLODpGCE71m/qii2u9hURT4skerBBdG9QOOHzafKPs2kIfDM/duJJoSF H7dyAtRZXf0b3FDGXlVGKXMswG7Ro1IhmZfSJOIrST9Vi8lzFQt0oy3RbnhPmWawJ9z7Tzpry 804wIkmQkdUN+zDuR14kOmS+kHDcijYzL3asFDyaICx5ji2qaKaWza7z+xmbv0jQq0wvoaZ86 JonhqHB4pNrT7sKZgQVkf1YgkcRfRXUclci/sP94K8U13y1XUToefVPQWEoXE8OjZAIJmlDWn gODL1GKdhX/mB1IGgk/KoACiEpcckqN5aJOvibc7kZ03tMzeIet62h7qF2hSGUXFuGq1UDQPW q+2ODJAzeEq0N4YUu2BY2Ch/dWQLHdSIhipTlhQwnGAvDiomzYtbmanGpRqOQubpDfRTYjQ9+ fMvqL+fmOFv13nnx++g2poktsTgQvMET+Pf35eff27I6XDIQRhPGqGlhiRE3DU7w0u275JPz5 QWZEWIx/AlK9hy0chY2kWJ+jE0ya0QYDsgZlJbstI4DJOImHqxLth0TtGWUD2qax3D8HF5EDF PH9zhNFpdB7tfgjluJpyrw0vOHVnV95m3kmBUrPkZCpwLB5s7YrxSftsWyPiCvRl4mLS8dYKd dBIhgOsgFwv2+u39zguJsQOV8/WP0XyyHUnOKdp7U5bGlBCSuWNEF/RNHpYkYwp/C+js8anpS ni5bCA5njXyIaYeoR+Rd+ET1E3BYE9ZJUhDCXlsjTyztMfb8cOzNUOC1DhuWshcv8YGGP++EO ZlSJvvCuz6MXO7htkHSg+57onyBx/JZxGfkJZjWWsLV5qyHrd91VNtF8FYhiC/gSk1SY9ijZT wR8RzaqADmDCN5pBxVhkkSjN19+/Q73u8Xh5UpKrKi3/nvXmBGQqOJymXdNGxG02V13+DhVg1 TNjDC2Vg7W62JZ0ltzS1H+Izccx0TYHyydfXG1mZn7gQv2TTRNMjbANYkKCCqqg+ikPqAUtfC KXTHwMUnU/BFZ3F5Ula+7biOP1MYIxpFVeuCXzjtUKX4OISU0cS5DnlcGCRLU0rAn2A4uFKa1 Jkt+YeBKokk/kA= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) tags 53223 + notabug quit From unknown Sat Jun 14 00:07:35 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 23 Mar 2022 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator