From: Michael Albinus <michael.albinus@gmx.de>
To: emacs-devel@gnu.org
Subject: process-tty-name of processes on remote hosts
Date: Wed, 28 Jul 2010 14:28:59 +0200 [thread overview]
Message-ID: <874ofjssc4.fsf@gmx.de> (raw)
While working on tramp and gdb-mi for Bug#4604 and Bug#6360, there has
been a problem with `process-tty-name'. For processes started by
`start-file-process' this function returns the tty name of the local
host the process is bound to. This is not sufficient; sometimes the tty
name on the remote host must be known.
A solution by a file name handler is not possible; `process-tty-name'
does not know about magic file names.
One possiblity would be to introduce a new function
`set-process-tty-name', which could be called by Tramp, and which would
allow `process-tty-name' to return the proper value.
If it shall be still supported to distinguish the "local" and "remote"
tty names, a new function `process-remote-tty-name' could be introduced,
which DTRT.
Or Tramp simply sets a process property 'remote-tty, which could be
checked by other packages with
(or (process-get proc 'remote-tty)
(process-tty-name proc))
What do people think?
Best regards, Michael.
next reply other threads:[~2010-07-28 12:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-28 12:28 Michael Albinus [this message]
2010-07-28 22:39 ` process-tty-name of processes on remote hosts Stefan Monnier
2010-07-29 14:00 ` Michael Albinus
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874ofjssc4.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=emacs-devel@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.