all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sascha Wilde <wilde@sha-bang.de>
To: rms@gnu.org
Cc: Werner Koch <wk@gnupg.org>, Chong Yidong <cyd@stupidchicken.com>,
	Daiki Ueno <ueno@unixuser.org>,
	emacs-devel@gnu.org
Subject: Re: Fix needed for communication with gpg-agent
Date: Wed, 21 Feb 2007 23:41:46 +0100	[thread overview]
Message-ID: <m2odnnrv4l.fsf@kenny.sha-bang.de> (raw)
In-Reply-To: <E1HJCsN-000541-DO@fencepost.gnu.org> (Richard Stallman's message of "Mon\, 19 Feb 2007 13\:04\:35 -0500")

Richard Stallman <rms@gnu.org> wrote:

>     Roughly speaking, when Emacs is run in a console (i.e. as a curses
>     program), it monopolizes terminal input and output.  I don't know of
>     any way to call the curses version of pinentry, have it temporarily
>     "take over" the terminal, and return control to Emacs once it's done.
>
> I am not sure whether that is a problem or not.  Daiki-san and Sascha,
> can you tell us whether this is a problem?

Unfortunately, yes.

A few more in depth tests[0] tests show, that emacs some how catches
some of the input, which is meant to go to pinentry:  The pinentry
curses interface is already shown, when emacs still gets some of the
key events...

> Is this part implemented already?  What will happen when gpg-agent
> tries to run pinentry if you are using a tty?

See above, the curses version of pinentry is started and shows up in
the terminal, but under certain circumstances it is hard to impossible
to input the passphrase.

I'm not sure if this is an emacs problem or an pinentry issue, but I
would tend to guess, that it would be pinentries job to make sure that
it gets full control other the terminal -- I'm not sure if this is
actually possible in a portable way, though.

Werner, what do you think?

On the other hand: the redraw problem, that some people mentioned,
doesn't seem to be a serious issue to me, emacs would only need to do
a full screen updated when all of the following conditions are true:
- emacs runs on an non graphical console
- gpg-agent is used
- an cryptographic action, which might need passphrase input, was run
I don't think that it would a big performance problem if we would do a
redraw in this case.  (And it shouldn't be hard to implement.)

cheers
sascha

[0] I tested this when I wrote the first implementation of gpg-agent
    support for pgg, but obviously not thoroughly enough.
--
Sascha Wilde
God put me on earth to accomplish a certain number of things.
Right now I am so far behind I will never die.
                       -- Bill Waterson, Calvin and Hobbes

  parent reply	other threads:[~2007-02-21 22:41 UTC|newest]

Thread overview: 63+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-17 20:57 Fix needed for communication with gpg-agent Richard Stallman
2007-02-18 17:42 ` Chong Yidong
2007-02-19 23:35   ` Miles Bader
2007-02-20  1:59     ` Chong Yidong
2007-02-22 17:31       ` Chong Yidong
2007-02-22 17:44         ` Chong Yidong
2007-02-22 18:04         ` Werner Koch
2007-02-22 18:40           ` Chong Yidong
2007-02-22 22:00             ` Sascha Wilde
2007-02-22 22:47               ` Chong Yidong
2007-02-23 20:01                 ` Sascha Wilde
2007-02-24  8:28                   ` Richard Stallman
2007-02-23 22:09               ` Richard Stallman
2007-02-23 23:41                 ` Sascha Wilde
2007-02-25  4:06                   ` Richard Stallman
2007-02-25 19:32                     ` Chong Yidong
2007-02-25 19:50                       ` Andreas Schwab
2007-02-25 20:22                         ` David Kastrup
2007-02-26  3:27                       ` Richard Stallman
2007-02-26 10:27                         ` Werner Koch
2007-02-27  7:38                           ` Richard Stallman
2007-02-27  8:53                             ` Werner Koch
2007-02-28  2:37                               ` Richard Stallman
2007-02-23  8:53             ` Werner Koch
2007-02-23 10:27               ` Sascha Wilde
2007-02-23 16:23               ` Chong Yidong
2007-02-23 16:47                 ` Werner Koch
2007-02-23 19:37                   ` Chong Yidong
2007-02-23 20:10                     ` Sascha Wilde
2007-02-23 22:10                     ` Richard Stallman
2007-02-23 22:09                   ` Richard Stallman
2007-02-23 23:03                     ` Chong Yidong
2007-02-23 17:13           ` Andreas Schwab
2007-02-23 18:30             ` Kim F. Storm
2007-02-23 18:07           ` Stefan Monnier
2007-02-24 14:08             ` Miles Bader
2007-02-23 19:35         ` Richard Stallman
2007-02-20 13:43     ` Richard Stallman
2007-02-20 15:35       ` Chong Yidong
2007-02-21  8:37         ` Richard Stallman
2007-02-21 12:04           ` Chong Yidong
2007-02-22 17:21             ` Richard Stallman
2007-02-20 15:11   ` Kim F. Storm
2007-02-20 15:45     ` Chong Yidong
2007-02-21  8:37     ` Richard Stallman
2007-02-21 13:11       ` Chong Yidong
2007-02-22  7:19         ` Richard Stallman
     [not found]   ` <E1HJCsN-000541-DO@fencepost.gnu.org>
2007-02-21 22:41     ` Sascha Wilde [this message]
2007-02-21 23:15       ` Kim F. Storm
2007-02-22  0:14         ` Chong Yidong
2007-02-22  8:04           ` Werner Koch
2007-02-22 12:09           ` Kim F. Storm
2007-02-22  8:13         ` Werner Koch
2007-02-23 10:22           ` Richard Stallman
2007-02-23 13:20             ` Werner Koch
2007-02-23 16:40               ` Chong Yidong
2007-02-23 22:09               ` Richard Stallman
2007-02-23 19:36           ` Richard Stallman
2007-02-23 23:25             ` Chong Yidong
2007-02-23 23:58               ` Kim F. Storm
2007-02-24  0:19                 ` Chong Yidong
2007-02-24  0:57                   ` Kim F. Storm
2007-02-24  9:58                     ` Sascha Wilde

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2odnnrv4l.fsf@kenny.sha-bang.de \
    --to=wilde@sha-bang.de \
    --cc=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    --cc=rms@gnu.org \
    --cc=ueno@unixuser.org \
    --cc=wk@gnupg.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 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.