GNU bug report logs - #6568
23.2; easypg opens blank buffer when password is incorrect

Previous Next

Package: emacs;

Reported by: Leo <sdl.web <at> gmail.com>

Date: Mon, 5 Jul 2010 16:01:02 UTC

Severity: normal

Merged with 8792

Found in versions 23.2, 23.3

Fixed in version 24.1

Done: Daiki Ueno <ueno <at> unixuser.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Leo <sdl.web <at> gmail.com>
To: Daiki Ueno <ueno <at> unixuser.org>
Cc: 6568 <at> debbugs.gnu.org
Subject: bug#6568: 23.2; easypg opens blank buffer when password is incorrect
Date: Tue, 06 Jul 2010 10:21:04 +0100
On 2010-07-06 09:47 +0100, Daiki Ueno wrote:
> Basically agree.  I have worndered for a long time how to implement
> this, because error handling in find-file is too complex to control.
>
> One idea is to re-throw the error in find-file-not-found-functions
> (patch attached).  I'm not sure if this approach is palatable as other
> basic Emacs commands.  Anyway, testing would be much appreciated.
>
> === modified file 'lisp/epa-file.el'
> --- lisp/epa-file.el	2010-01-13 08:35:10 +0000
> +++ lisp/epa-file.el	2010-07-06 08:36:24 +0000
[patch omitted]

Thank you for your prompt action on the bug. Much appreciated.

I have just tested the patch with emacs 23.2 and as far as I can see the
blank buffer is still opened with incorrect passwords or typing C-g at
the password prompt.

Is it plausible to just signal a 'password-error?

BTW, both the magic file and find file functions seem overly complex to
me.

Leo




This bug report was last modified 13 years and 359 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.