unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: emacs-devel@gnu.org
Subject: Re: EasyPG API and usage questions
Date: Wed, 05 Mar 2008 10:41:06 -0600	[thread overview]
Message-ID: <86fxv586ot.fsf@lifelogs.com> (raw)
In-Reply-To: 87d4q9my3h.fsf@broken.deisui.org

On Wed, 05 Mar 2008 16:25:22 +0900 Daiki Ueno <ueno@unixuser.org> wrote: 

DU> Ah, that's a bug.  Thanks for finding it in the corner case.  Here is a
DU> patch to fix this.
DU> Index: lisp/epa.el
DU> ===================================================================
DU> RCS file: /sources/emacs/emacs/lisp/epa.el,v
DU> retrieving revision 1.6
DU> diff -c -r1.6 epa.el
DU> *** lisp/epa.el	12 Feb 2008 01:24:20 -0000	1.6
DU> --- lisp/epa.el	5 Mar 2008 07:16:21 -0000
DU> ***************
DU> *** 542,551 ****
DU>   NAMES is a list of strings to be matched with keys.  If it is nil, all
DU>   the keys are listed.
DU>   If SECRET is non-nil, list secret keys instead of public keys."
DU> !   (let ((keys (epg-list-keys context names secret)))
DU> !     (if (> (length keys) 1)
DU> ! 	(epa--select-keys prompt keys)
DU> !       keys)))
  
DU>   (defun epa--show-key (key)
DU>     (let* ((primary-sub-key (car (epg-key-sub-key-list key)))
DU> --- 542,548 ----
DU>   NAMES is a list of strings to be matched with keys.  If it is nil, all
DU>   the keys are listed.
DU>   If SECRET is non-nil, list secret keys instead of public keys."
DU> !   (epa--select-keys prompt (epg-list-keys context names secret)))
  
DU>   (defun epa--show-key (key)
DU>     (let* ((primary-sub-key (car (epg-key-sub-key-list key)))

I can confirm this fixes the bug, I hope you can commit it soon.

It's very nice that if I cancel the encryption, I remain in the file.gpg
buffer, but it's unsaved.  If I try to save again, it brings up the save
dialog again.

If I open a symetrically encrypted file.gpg and write it to another
file1.gpg, I never get a question about the encryption.  EasyPG assumes
I want symmetric encryption again.  I don't know if that's a feature or
a bug.

Can the passphrase and symmetric encryption/key choice be automatically
cached for a whole directory of files, if it's entered for any one of
them?  That way I can have ~/Maildir-crypt/{cur,tmp,new} encrypted
consistently, for example.

In the key selection buffer, (described as "Major mode for
`epa-list-keys'") I think it would be nice to have

C-c C-c and Enter anywhere (except the "Cancel" button or on a key)
equivalent to "OK"

C-c C-k equivalent to "Cancel"

Thanks
Ted





  parent reply	other threads:[~2008-03-05 16:41 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-25 10:12 Suggestion: epa-file-select-keys should show currently selected keys Sascha Wilde
2008-02-25 19:01 ` Richard Stallman
2008-02-26  9:35   ` Sascha Wilde
2008-02-26 23:47     ` Richard Stallman
2008-02-27  8:39   ` Daiki Ueno
2008-02-27 16:08     ` Richard Stallman
2008-02-28  8:36       ` Daiki Ueno
2008-02-28 13:56     ` Bastien
2008-02-29  1:40       ` Richard Stallman
2008-02-29  4:07       ` Daiki Ueno
2008-02-29  4:59         ` Stefan Monnier
2008-02-29 16:40         ` EasyPG API and usage questions (was: Suggestion: epa-file-select-keys should show currently selected keys) Ted Zlatanov
2008-03-01  0:23           ` Daiki Ueno
2008-03-01  0:38             ` Daiki Ueno
2008-03-03 20:19             ` EasyPG API and usage questions Ted Zlatanov
2008-03-04  6:31               ` Daiki Ueno
2008-03-04 14:42                 ` Ted Zlatanov
2008-03-05  7:25                   ` Daiki Ueno
2008-03-05 16:24                     ` Ted Zlatanov
2008-03-05 16:41                     ` Ted Zlatanov [this message]
2008-03-01 10:20           ` Reiner Steib
2008-03-03 19:50             ` Ted Zlatanov
2008-02-26  9:42 ` Suggestion: epa-file-select-keys should show currently selected keys Sascha Wilde
2008-02-27  8:07   ` Daiki Ueno
2008-02-27 12:01     ` Sascha Wilde
2008-03-04 14:36       ` Sascha Wilde
2008-03-11  8:53         ` Sascha Wilde
2008-03-16  4:05           ` Michael Olson

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=86fxv586ot.fsf@lifelogs.com \
    --to=tzz@lifelogs.com \
    --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).