From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#12923: 24.2; epa-file--find-file-not-found-function: Opening input file: Can't decrypt, Exit Date: Wed, 21 Nov 2012 09:00:58 -0500 Message-ID: References: <87haon10zw.fsf@gavenkoa.example.com> <878v9w6t69.fsf@gavenkoa.example.com> <87lidw54hx.fsf-ueno@unixuser.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1353506524 22100 80.91.229.3 (21 Nov 2012 14:02:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Nov 2012 14:02:04 +0000 (UTC) Cc: 12923@debbugs.gnu.org, Oleksandr Gavenko To: Daiki Ueno Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 21 15:02:13 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TbAsU-0006tM-TK for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Nov 2012 15:02:11 +0100 Original-Received: from localhost ([::1]:55443 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbAsK-0003Y0-AC for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Nov 2012 09:02:00 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:41262) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbAsD-0003XI-PD for bug-gnu-emacs@gnu.org; Wed, 21 Nov 2012 09:01:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TbAs7-0004VV-H2 for bug-gnu-emacs@gnu.org; Wed, 21 Nov 2012 09:01:53 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48151) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbAs7-0004VR-Dq for bug-gnu-emacs@gnu.org; Wed, 21 Nov 2012 09:01:47 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TbAtJ-0002K5-Qv for bug-gnu-emacs@gnu.org; Wed, 21 Nov 2012 09:03:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Nov 2012 14:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12923 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12923-submit@debbugs.gnu.org id=B12923.13535065378872 (code B ref 12923); Wed, 21 Nov 2012 14:03:01 +0000 Original-Received: (at 12923) by debbugs.gnu.org; 21 Nov 2012 14:02:17 +0000 Original-Received: from localhost ([127.0.0.1]:58400 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TbAsa-0002J3-LO for submit@debbugs.gnu.org; Wed, 21 Nov 2012 09:02:17 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:26985) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TbAsY-0002Iw-Nc for 12923@debbugs.gnu.org; Wed, 21 Nov 2012 09:02:14 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAG6Zu09FpaQ6/2dsb2JhbABEtBGBCIIVAQEEAVYjBQsLNAcLFBgNJIgcBboJkEQDiEKacYFYgwc X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="208118167" Original-Received: from 69-165-164-58.dsl.teksavvy.com (HELO pastel.home) ([69.165.164.58]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 21 Nov 2012 09:00:59 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id F3973597C9; Wed, 21 Nov 2012 09:00:58 -0500 (EST) In-Reply-To: <87lidw54hx.fsf-ueno@unixuser.org> (Daiki Ueno's message of "Wed, 21 Nov 2012 06:49:46 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:67266 Archived-At: > If the above magic works well for typical use-cases, it might be worth > adding them to Emacs too. I took this bug-report to say "make sure that we handle .gpg files in a file-safe way, showing the raw-bytes if we can't show the decrypted content". So rather than try to detect that we have a keyring, we should just try to decrypt and look at the resulting error (which should hopefully be different for "bad decryption key" than it is for "trying to decrypt something else (e.g. a keyring file)"). Stefan