From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.bugs Subject: bug#6568: 23.2; easypg opens blank buffer when password is incorrect Date: Tue, 06 Jul 2010 10:21:04 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1278408617 25554 80.91.229.12 (6 Jul 2010 09:30:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 6 Jul 2010 09:30:17 +0000 (UTC) Cc: 6568@debbugs.gnu.org To: Daiki Ueno Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 06 11:30:13 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OW4Tg-0000Bo-91 for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Jul 2010 11:30:09 +0200 Original-Received: from localhost ([127.0.0.1]:33519 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OW4Te-0004ue-17 for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Jul 2010 05:30:06 -0400 Original-Received: from [140.186.70.92] (port=46406 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OW4TT-0004tj-0B for bug-gnu-emacs@gnu.org; Tue, 06 Jul 2010 05:29:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OW4TM-00020Y-7l for bug-gnu-emacs@gnu.org; Tue, 06 Jul 2010 05:29:54 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34883) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OW4TM-00020R-6S for bug-gnu-emacs@gnu.org; Tue, 06 Jul 2010 05:29:48 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OW4Lq-0004i8-1J; Tue, 06 Jul 2010 05:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Leo Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Jul 2010 09:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6568 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6568-submit@debbugs.gnu.org id=B6568.127840806918094 (code B ref 6568); Tue, 06 Jul 2010 09:22:02 +0000 Original-Received: (at 6568) by debbugs.gnu.org; 6 Jul 2010 09:21:09 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OW4Kz-0004hm-8C for submit@debbugs.gnu.org; Tue, 06 Jul 2010 05:21:09 -0400 Original-Received: from ppsw-33.csi.cam.ac.uk ([131.111.8.133]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OW4Kx-0004hS-Cr for 6568@debbugs.gnu.org; Tue, 06 Jul 2010 05:21:07 -0400 X-Cam-AntiVirus: no malware found X-Cam-SpamDetails: not scanned X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Original-Received: from cpc1-cmbg13-0-0-cust596.cmbg.cable.ntl.com ([86.9.122.85]:63074 helo=Victoria.local) by ppsw-33.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.159]:587) with esmtpsa (PLAIN:sl392) (TLSv1:DHE-RSA-AES128-SHA:128) id 1OW4Kt-000378-i8 (Exim 4.72) (return-path ); Tue, 06 Jul 2010 10:21:03 +0100 In-Reply-To: (Daiki Ueno's message of "Tue, 06 Jul 2010 17:47:02 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (Mac OS X 10.6.4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 06 Jul 2010 05:22:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:38255 Archived-At: 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