unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Ken Manheimer <ken.manheimer@gmail.com>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: 22452@debbugs.gnu.org
Subject: bug#22452: 24.4; Tramp remote shell fails on remote+sudo+homedir destination
Date: Sun, 24 Jan 2016 13:38:43 -0500	[thread overview]
Message-ID: <CAAT_zTFviC58XEvwe_qLoToWBf_ik5UygRsdB6aJvYA7=hj=Lg@mail.gmail.com> (raw)
In-Reply-To: <871t96c1il.fsf@gmx.de>

[-- Attachment #1: Type: text/plain, Size: 2325 bytes --]

I'm glad you're investigating, Michael!

Interesting that changing tramp-verbose avoids the problem. Sounds like
that, in itself, might be a lead on the problem?

In any case, I do have a good workaround, which I'm sure you saw the reply,
in the follow-up I sent just a moment ago to you and emacs-devel. For the
sake of the bug transcript I'll repeat the substance of the message here:

I actually have a workaround, and the premise of it resides in the special
conditions I included for the repeating the problem. In order to repeat the
problem, you have to specifically use a default-directory that is set to
the remote+sudo+homedir format, and not allow something like `(cd path)' to
first resolve the home directory to an explicit path. So there's my
workaround, for multishell - use `(cd path)', rather than directly setting
default-directory.

Upshot is that I believe that there still is a bug worth unravelling
[especially since it involves an aggravating and elusive "Selecting deleted
buffer" event], in the way that shells start when default-directory is set
to remote+sudo+homedir format, but I can avoid that by using `cd'.

Ken

On Sun, Jan 24, 2016 at 12:48 PM, Michael Albinus <michael.albinus@gmx.de>
wrote:

> Ken Manheimer <ken.manheimer@gmail.com> writes:
>
> Hi Ken,
>
> > Tramp fails to start a remote shell when the remote path is exactly of
> > the form '/ssh:host|sudo:root@host:'. It fails with a message in the
> > minibuffer, "Selecting deleted buffer".
> >
> > To reproduce the error:
> >
> > * Start emacs with -Q
> > * In any buffer (*scratch* is fine):
> > M-Esc (setq default-directory
> > "/ssh:example.com|sudo:root@example.com:")
> > * In that same buffer, Esc-x shell
> >
> > This fails (with "Selecting deleted buffer") for me in the version of
> > emacs listed in the bug report and more recent versions, which I
> > compiled, eg: GNU Emacs 24.5.50.1 (x86_64-apple-darwin14.5.0, NS
> > apple-appkit-1348.17) of 2015-12-16 on twist.myriadicity.net.
> >
> > I can't get a backtrace for it, even if I set debug-on-error and
> > signal-on-error.
>
> Same here, hard to debug. The error doesn't happen if tramp-verbose is
> less than 3 prior calling M-x shell. So maybe you bind it temporarily to
> 2 in your package, as workaround.
>
> I'll continue to debug.
>
> Best regards, Michael.
>

[-- Attachment #2: Type: text/html, Size: 3355 bytes --]

  reply	other threads:[~2016-01-24 18:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-24  2:00 bug#22452: 24.4; Tramp remote shell fails on remote+sudo+homedir destination Ken Manheimer
2016-01-24  2:20 ` Ken Manheimer
2016-01-24 17:48 ` Michael Albinus
2016-01-24 18:38   ` Ken Manheimer [this message]
2016-01-24 18:48     ` Michael Albinus
2016-01-24 19:11       ` Ken Manheimer
2016-01-28 12:45     ` Michael Albinus
2016-01-31 17:09       ` Ken Manheimer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAAT_zTFviC58XEvwe_qLoToWBf_ik5UygRsdB6aJvYA7=hj=Lg@mail.gmail.com' \
    --to=ken.manheimer@gmail.com \
    --cc=22452@debbugs.gnu.org \
    --cc=michael.albinus@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).