emacs-devel
[Top][All Lists]
Advanced

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

Re: 23.0.60; emacsclient -t not working within "less"


From: Eli Zaretskii
Subject: Re: 23.0.60; emacsclient -t not working within "less"
Date: Fri, 19 Sep 2008 19:30:49 +0300

> From: Chong Yidong <address@hidden>
> Date: Fri, 19 Sep 2008 11:51:09 -0400
> Cc: address@hidden, Andreas Amann <address@hidden>,
>       address@hidden
> 
> Dan Nicolaescu <address@hidden> 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.

Yes, but is this the right fix?  The `tty' command prints "/dev/tty"
as well in the situation described by the original bug report.  Why
doesn't Emacs DTRT with that name?  Can it fail in a similar way with
the name of the device connected to stdout?




reply via email to

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