all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* TTY frames parameters
@ 2008-08-24 20:39 Eli Zaretskii
  2008-08-24 21:54 ` Alan Mackenzie
  2008-08-30 12:20 ` Eli Zaretskii
  0 siblings, 2 replies; 5+ messages in thread
From: Eli Zaretskii @ 2008-08-24 20:39 UTC (permalink / raw)
  To: emacs-devel

There's a strange subtle difference between the first tty frame
created on a default terminal and all the other frames: the first one
has its `tty' association with nil cdr, while the rest have
"/dev/tty".  Is that a bug?

To reproduce:

  emacs -Q -nw
  M-: (frame-parameter (selected-frame) 'tty) RET => nil
  C-x 5 b foo
  M-: (frame-parameter (selected-frame) 'tty) RET => "/dev/tty"

You will also see that in the initial frame, (frame-parameters)
returns an alist that contains `(tty)', not `(tty . "/dev/tty")' as in
the other frames.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: TTY frames parameters
  2008-08-24 20:39 TTY frames parameters Eli Zaretskii
@ 2008-08-24 21:54 ` Alan Mackenzie
  2008-08-25  3:13   ` Eli Zaretskii
  2008-08-30 12:20 ` Eli Zaretskii
  1 sibling, 1 reply; 5+ messages in thread
From: Alan Mackenzie @ 2008-08-24 21:54 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

Hi, Eli,

On Sun, Aug 24, 2008 at 11:39:37PM +0300, Eli Zaretskii wrote:
> There's a strange subtle difference between the first tty frame
> created on a default terminal and all the other frames: the first one
> has its `tty' association with nil cdr, while the rest have
> "/dev/tty".  Is that a bug?

What does the frame parameter tty mean?  I couldn't find it described in
the Elisp manual.  Surely _that_ is a bug.

> To reproduce:

>   emacs -Q -nw
>   M-: (frame-parameter (selected-frame) 'tty) RET => nil
>   C-x 5 b foo
>   M-: (frame-parameter (selected-frame) 'tty) RET => "/dev/tty"

On Emacs 22, there doesn't seem to be a frame-parameter called tty.  On
Emacs 23, (running as emacs -Q on a Linux tty), I get the same symptoms
as you do.

> You will also see that in the initial frame, (frame-parameters)
> returns an alist that contains `(tty)', not `(tty . "/dev/tty")' as in
> the other frames.

-- 
Alan Mackenzie (Nuremberg, Germany).




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: TTY frames parameters
  2008-08-24 21:54 ` Alan Mackenzie
@ 2008-08-25  3:13   ` Eli Zaretskii
  0 siblings, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2008-08-25  3:13 UTC (permalink / raw)
  To: Alan Mackenzie; +Cc: emacs-devel

> Date: Sun, 24 Aug 2008 21:54:35 +0000
> Cc: emacs-devel@gnu.org
> From: Alan Mackenzie <acm@muc.de>
> 
> On Sun, Aug 24, 2008 at 11:39:37PM +0300, Eli Zaretskii wrote:
> > There's a strange subtle difference between the first tty frame
> > created on a default terminal and all the other frames: the first one
> > has its `tty' association with nil cdr, while the rest have
> > "/dev/tty".  Is that a bug?
> 
> What does the frame parameter tty mean?

It's a device on which the terminal frame is displayed.  More
specifically, the calls to fwrite Emacs does to write glyphs as part
of the frame's display go to a FILE stream open on this device.

> I couldn't find it described in the Elisp manual.  Surely _that_ is
> a bug.

This parameter was introduced by the mult-tty feature.  None of that
is documented yet, except very minimally in etc/NEWS.

> On Emacs 22, there doesn't seem to be a frame-parameter called tty.  On
> Emacs 23, (running as emacs -Q on a Linux tty), I get the same symptoms
> as you do.

Thanks for testing.  I hope someone will be able to answer my
question.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: TTY frames parameters
  2008-08-24 20:39 TTY frames parameters Eli Zaretskii
  2008-08-24 21:54 ` Alan Mackenzie
@ 2008-08-30 12:20 ` Eli Zaretskii
  2008-08-31  6:12   ` Stefan Monnier
  1 sibling, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2008-08-30 12:20 UTC (permalink / raw)
  To: emacs-devel

> Date: Sun, 24 Aug 2008 23:39:37 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> 
> There's a strange subtle difference between the first tty frame
> created on a default terminal and all the other frames: the first one
> has its `tty' association with nil cdr, while the rest have
> "/dev/tty".  Is that a bug?
> 
> To reproduce:
> 
>   emacs -Q -nw
>   M-: (frame-parameter (selected-frame) 'tty) RET => nil
>   C-x 5 b foo
>   M-: (frame-parameter (selected-frame) 'tty) RET => "/dev/tty"
> 
> You will also see that in the initial frame, (frame-parameters)
> returns an alist that contains `(tty)', not `(tty . "/dev/tty")' as in
> the other frames.

Since no one responded, I made a change in dispnew.c to have a non-nil
cdr in `tty's association on the initial frame as well.  Please holler
if I did something wrong.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: TTY frames parameters
  2008-08-30 12:20 ` Eli Zaretskii
@ 2008-08-31  6:12   ` Stefan Monnier
  0 siblings, 0 replies; 5+ messages in thread
From: Stefan Monnier @ 2008-08-31  6:12 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

> Since no one responded, I made a change in dispnew.c to have a non-nil
> cdr in `tty's association on the initial frame as well.  Please holler
> if I did something wrong.

Thanks,


        Stefan




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-08-31  6:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-24 20:39 TTY frames parameters Eli Zaretskii
2008-08-24 21:54 ` Alan Mackenzie
2008-08-25  3:13   ` Eli Zaretskii
2008-08-30 12:20 ` Eli Zaretskii
2008-08-31  6:12   ` Stefan Monnier

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.