unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Ekstrand <michael@elehack.net>
To: emacs-devel@gnu.org
Cc: ding@gnus.org
Subject: Re: frame-environment
Date: Sat, 17 Jan 2009 15:37:00 -0600	[thread overview]
Message-ID: <87d4elfwcj.fsf@elehack.net> (raw)
In-Reply-To: 87ocy596x4.fsf@cyd.mit.edu

[-- Attachment #1: Type: text/plain, Size: 2280 bytes --]

Chong Yidong <cyd@stupidchicken.com> writes:
> Eli Zaretskii <eliz@gnu.org> writes:
>> What's the story with this function?  It doesn't exist, AFAICS, and
>> its two uses (in `environment' and `read-envvar-name') are commented
>> out.
>>
>> Without this function or something similar, the FRAME argument to
>> `environment' has no effect.  Unless this is for future extensions,
>> I'd suggest to remove it now, before it's too late.
>
> It sounds like an un-implemented or abandoned part of multi-tty.  If so,
> it should certainly be removed.

If this is removed rather than implemented, would that then mean that
there is no way to access the varying environments of frames under
multi-tty?

I have encountered a difficulty with Gnus, multi-tty, and GnuPG that I
have not yet taken time to investigate or do anything about; namely,
when I launch Emacs in my GUI environment, it has access to gpg-agent.
If I SSH in to that machine and connect to Emacs from the shell terminal
session, and try to send a GPG-signed mail, it fails, presumably because
it's trying to use the gpg-agent which is on a locked screen that I'm
not in front of.

It seems that this kind of functionality (sensing the environment of the
current frame), possibly augmented or replaced with the ability to
choose which Emacs process launches an inferior process, is necessary in
order to provide a solution to the problem I have described.

As I said, I have not taken the time to look in to this problem in depth
yet; I've just been working around it.  I just saw the message here and
wanted to make sure that these considerations were brought to light when
deciding what to do with this functionality -- when we have multiple
processes (with multiple environments and differing access to resources)
functioning as one Emacs, situations can arise where the environment of
the process a user is using to initiate a command is important.

I'm cross-posting this to the Gnus list so that the problem is now
brought to light there as well.

- Michael

-- 
mouse, n: A device for pointing at the xterm in which you want to type.
Confused by the strange files?  I cryptographically sign my messages.
For more information see <http://www.elehack.net/resources/gpg>.

[-- Attachment #2: Type: application/pgp-signature, Size: 196 bytes --]

  reply	other threads:[~2009-01-17 21:37 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-17 15:08 frame-environment Eli Zaretskii
2009-01-17 15:25 ` frame-environment Eli Zaretskii
2009-01-17 15:37   ` frame-environment Juanma Barranquero
2009-01-18  1:52     ` frame-environment Stefan Monnier
2009-01-18  2:53       ` frame-environment Juanma Barranquero
2009-01-18  3:17         ` frame-environment Stefan Monnier
2009-01-17 17:30 ` frame-environment Chong Yidong
2009-01-17 21:37   ` Michael Ekstrand [this message]
2009-01-18  1:59     ` frame-environment Stefan Monnier
2009-01-18  4:11     ` frame-environment Eli Zaretskii
2009-01-18 15:30       ` frame-environment Michael Ekstrand
2009-01-18  1:48 ` frame-environment Stefan Monnier
2009-01-18  4:09   ` frame-environment Eli Zaretskii
2009-01-18 20:36     ` frame-environment Stefan Monnier
2009-01-18 21:01       ` frame-environment Eli Zaretskii
2009-01-20  4:53         ` frame-environment Stefan Monnier
2009-01-24 16:24           ` frame-environment Eli Zaretskii

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=87d4elfwcj.fsf@elehack.net \
    --to=michael@elehack.net \
    --cc=ding@gnus.org \
    --cc=emacs-devel@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).