From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: 23.0.60; emacsclient -t not working within "less" Date: Fri, 19 Sep 2008 11:51:09 -0400 Message-ID: <87bpykkuc2.fsf@cyd.mit.edu> References: <87skrxz4h0.fsf@cyd.mit.edu> <200809190628.m8J6SHQX000229@mothra.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1221839486 1568 80.91.229.12 (19 Sep 2008 15:51:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Sep 2008 15:51:26 +0000 (UTC) Cc: 427-done@emacsbugs.donarmstrong.com, Andreas Amann , emacs-devel@gnu.org To: Dan Nicolaescu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 19 17:52:22 2008 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.50) id 1KgiHN-0002cS-1M for ged-emacs-devel@m.gmane.org; Fri, 19 Sep 2008 17:52:21 +0200 Original-Received: from localhost ([127.0.0.1]:46887 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KgiGL-0005Wn-M3 for ged-emacs-devel@m.gmane.org; Fri, 19 Sep 2008 11:51:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KgiGG-0005WZ-NA for emacs-devel@gnu.org; Fri, 19 Sep 2008 11:51:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KgiGE-0005WE-3i for emacs-devel@gnu.org; Fri, 19 Sep 2008 11:51:11 -0400 Original-Received: from [199.232.76.173] (port=40489 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KgiGD-0005WB-V8 for emacs-devel@gnu.org; Fri, 19 Sep 2008 11:51:09 -0400 Original-Received: from cyd.mit.edu ([18.115.2.24]:55727) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KgiGD-0004zB-Lc for emacs-devel@gnu.org; Fri, 19 Sep 2008 11:51:09 -0400 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id 5C45357E352; Fri, 19 Sep 2008 11:51:09 -0400 (EDT) In-Reply-To: <200809190628.m8J6SHQX000229@mothra.ics.uci.edu> (Dan Nicolaescu's message of "Thu, 18 Sep 2008 23:28:17 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:103973 Archived-At: Dan Nicolaescu writes: > You can edebug `server-process-filter'. Doing that shows quickly the > problem: emacsclient passes the tty as: -tty /dev/tty. > /dev/tty means one thing for emacsclient and another one for emacs... > > emacsclient.c computes the tty like this: > > tty_name = ttyname (fileno (stdin)); > > changing it to: > > tty_name = ttyname (fileno (stdout)); > > gets the right terminal and this problem seems to be fixed. That seems to work fine for me too. I checked in the fix. Thanks.