GNU bug report logs -
#65039
30.0.50; [PATCH] Add bookmark handler for M-x shell
Previous Next
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 #109 received at 65039 <at> debbugs.gnu.org (full text, mbox):
Ship Mints <shipmints <at> gmail.com> writes:
Hi,
> Latest version of the patch attached.
Still some minor comments :-)
> +(defun shell-bookmark-make-record ()
> + "Create a bookmark record for the current `shell-mode' buffer.
> +Handle both local and remote shell buffers.
> +Bind `tramp-show-ad-hoc-proxies' to non-nil to ensure multi-hop remote
> +connections are fully qualified."
Don't mention tramp-show-ad-hoc-proxies.
> + (let ((bookmark-shell-file-name
> + (cond
> + ((file-remote-p default-directory)
> + (with-connection-local-variables
> + (cdr (assoc 'shell-file-name (buffer-local-value
> + 'connection-local-variables-alist
> + (current-buffer))))))
> + (shell-file-name shell-file-name)
> + (t sh-shell-file))))
This can be expressed simpler:
(let ((bookmark-shell-file-name
(or (connection-local-value shell-file-name) sh-shell-file)))
> +(defun shell-bookmark-jump (bookmark)
> + "Default BOOKMARK handler for shell buffers.
> +Create a shell buffer with its `default-directory', shell process, and
> +buffer name from the bookmark. If there is an existing shell buffer of
> +the same name, default shell-mode behavior is to reuse that buffer.
> +
> +For a remote shell `default-directory' will be the remote file name.
> +Remote shell buffers reuse existing connections that match the remote
> +file name, or may prompt you to create a new connection. Bind
> +`tramp-show-ad-hoc-proxies' to non-nil to ensure multi-hop remote
> +connections are fully qualified.
Don't mention tramp-show-ad-hoc-proxies.
Best regards, Michael.
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.