unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* frame-with-environment
@ 2007-09-14  7:04 Richard Stallman
  2007-09-14 14:17 ` frame-with-environment Stefan Monnier
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Stallman @ 2007-09-14  7:04 UTC (permalink / raw)
  To: Karoly Lorentey; +Cc: emacs-devel

[I sent this message a week ago but did not get a response.]

What is the reason for the function `frame-with-environment'?

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

* Re: frame-with-environment
  2007-09-14  7:04 frame-with-environment Richard Stallman
@ 2007-09-14 14:17 ` Stefan Monnier
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2007-09-14 14:17 UTC (permalink / raw)
  To: rms; +Cc: emacs-devel

> [I sent this message a week ago but did not get a response.]
> What is the reason for the function `frame-with-environment'?

IIUC this is meant to simulate terminal-local settings.  The multi-tty code
wants to keep the environment of its clients for various uses (mostly to
find the TERM, TERMCAP as well as the DISPLAY setting and a bunch of
others).  It could keep it in a terminal-local variable, but for some reason
it stores it in the terminal's frames instead.  I suppose one of the reason
is that it wants/needs to distinguish between various clients that run on
the same terminal (not sure here how this shows up, but maybe if you start
"emacsclient -t" then suspend that with C-z and start another
"emacsclient -t" in the same terminal; or maybe under X11 if you have
several frames, some of which are linked to one `emacsclient' invocation
and others are linked to some other or to no client at all).


        Stefan

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

end of thread, other threads:[~2007-09-14 14:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-14  7:04 frame-with-environment Richard Stallman
2007-09-14 14:17 ` frame-with-environment Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).