tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: don't take over M-x shell started for unrelated buffers


From: Michael Albinus
Subject: Re: don't take over M-x shell started for unrelated buffers
Date: Sun, 06 Aug 2017 19:42:51 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

積丹尼 Dan Jacobson <address@hidden> writes:

Hi Dan,

> OK but if the user, while in a TRAMP window, decides to send an email,
> this email window now is "infected" with the remote directory, and then
> doing M-x shell there will also be "infected".
>
> So maybe instead of looking at the default-directory, look at the buffer
> name.

No way. Checking for a remote default-directory is the very basic
mechanism for process-file, start-file-process and shell-command to
invoke Tramp. This cannot be changed.

But you can call "C-u M-x shell". Beside other questions, it asks you
also for default-directory. You could change it in the mini-buffer.

Best regards, Michael.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]