From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: process-tty-name of processes on remote hosts Date: Wed, 28 Jul 2010 14:28:59 +0200 Message-ID: <874ofjssc4.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1280320158 5677 80.91.229.12 (28 Jul 2010 12:29:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 28 Jul 2010 12:29:18 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 28 14:29:17 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Oe5l3-0005MK-Ly for ged-emacs-devel@m.gmane.org; Wed, 28 Jul 2010 14:29:13 +0200 Original-Received: from localhost ([127.0.0.1]:54267 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oe5l2-0008N6-3R for ged-emacs-devel@m.gmane.org; Wed, 28 Jul 2010 08:29:12 -0400 Original-Received: from [140.186.70.92] (port=37136 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oe5kv-0008Lv-VD for emacs-devel@gnu.org; Wed, 28 Jul 2010 08:29:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oe5ku-00053h-R1 for emacs-devel@gnu.org; Wed, 28 Jul 2010 08:29:05 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:35278 helo=mail.gmx.net) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1Oe5ku-00053I-BZ for emacs-devel@gnu.org; Wed, 28 Jul 2010 08:29:04 -0400 Original-Received: (qmail invoked by alias); 28 Jul 2010 12:29:01 -0000 Original-Received: from p4FC190E7.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [79.193.144.231] by mail.gmx.net (mp012) with SMTP; 28 Jul 2010 14:29:01 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1/l9zJrkCHl09OuSNcnRjebJjJonLMg1IK46bmgjU PH3gCaNX7eY2BF User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:127930 Archived-At: 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.