GNU bug report logs - #65039
30.0.50; [PATCH] Add bookmark handler for M-x shell

Previous Next

Package: emacs;

Reported by: Protesilaos Stavrou <info <at> protesilaos.com>

Date: Thu, 3 Aug 2023 14:42:01 UTC

Severity: wishlist

Tags: patch

Found in version 30.0.50

Fixed in version 31.1

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


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

From: Ship Mints <shipmints <at> gmail.com>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 65039 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>, prot <at> protesilaos.com,
 Visuwesh <visuweshm <at> gmail.com>
Subject: Re: bug#65039: [PATCH] Add bookmark handler for shell-mode
Date: Thu, 13 Feb 2025 12:53:55 -0500
[Message part 1 (text/plain, inline)]
On Thu, Feb 13, 2025 at 11:34 AM Ship Mints <shipmints <at> gmail.com> wrote:

> On Thu, Feb 13, 2025 at 11:23 AM Michael Albinus <michael.albinus <at> gmx.de>
> wrote:
>
>>
>> A further remark (don't know where to do it in your code): If you
>> bookmark a remote file name, I recommend to keep multi-hop file names
>> (let-bind tramp-show-ad-hoc-proxies to t). Otherwise, a remote file name
>> like "/ssh:host|sudo:host:/" would be saved in your bookmark-default-file
>> as "/sudo:host:/", which doesn't work in the next Emacs session.
>>
>
> I'll experiment with multi-hop now and ensure they are correctly stored
> and restored.
>

Hi, Michael,

With tramp-show-ad-hoc-proxies bound to t *at the time of multi-hop
connection*, default-directory retains the fully-qualified multi-hop file
name and bookmarks work fine. I tested both shell and file bookmarks.
Though files are not in scope for this patch, I ensured they worked, too.

When nil, default-directory is abbreviated, as you pointed out. I can't see
a way to recover the multi-hop nature of the buffer based on just
default-directory. I read through the tramp code and I can't find a way to
do that.

If it is possible to do at bookmarking time, please tell me how. If this is
not possible, we will highlight in the docs that tramp-show-ad-hoc-proxies
must be t if users expect multi-hop bookmarks to be effective.

-Stephane
[Message part 2 (text/html, inline)]

This bug report was last modified 64 days ago.

Previous Next


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