[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#3789: 23.0.95; confusion with EasyPG/vc interaction
From: |
Dan Nicolaescu |
Subject: |
bug#3789: 23.0.95; confusion with EasyPG/vc interaction |
Date: |
Wed, 8 Jul 2009 22:56:25 -0700 (PDT) |
Jay Berkenbilt <ejb@ql.org> writes:
> If you have a .gpg file that is encrypted using a key that you don't
> have in your keyring, EasyPG reports
>
> File exists, but cannot be read
>
> and gives you an empty buffer. This is probably reasonable behavior,
> though I would be happier if it handled it in the same way as a file
> that you really don't have read permission on, since this reduces the
> likelihood of clobbering it making the buffer writable and saving. Not
> a big deal.
>
> If, however, that file is checked into RCS, EasyPG asks
>
> File whatever.gpg was lost; check out from version control? (yes or no)
>
> and then falls back to
>
> File exists, but cannot be read.
>
> This is pretty easy to reproduce. Create a file and encrypt it using a
> public key for which you don't have a private key. Now kill the buffer
> and, outside of emacs, do
>
> mkdir RCS
> ci -u file.gpg
>
> Now, back in emacs, do C-x C-f on the file, and observe the behavior I
> have described.
>
> All this can be reproduced with emacs 23.0.95 run as emacs -q.
In 23.2 this problem will not exist anymore because vc will not try to
do this: "check out from version control? (yes or no)"