From: Stefan Monnier <monnier@iro.umontreal.ca>
To: rms@gnu.org
Cc: emacs-devel@gnu.org
Subject: Re: frame-with-environment
Date: Fri, 14 Sep 2007 10:17:00 -0400 [thread overview]
Message-ID: <jwv7imttk05.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <E1IW5EO-00058t-2L@fencepost.gnu.org> (Richard Stallman's message of "Fri\, 14 Sep 2007 03\:04\:48 -0400")
> [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
prev parent reply other threads:[~2007-09-14 14:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-14 7:04 frame-with-environment Richard Stallman
2007-09-14 14:17 ` Stefan Monnier [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv7imttk05.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=rms@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).