From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Herbert J. Skuhra" Newsgroups: gmane.emacs.devel Subject: Re: master 6e70b37: When decrypting non-decrypted files, make epa show the raw files Date: Sun, 23 Aug 2020 23:36:51 +0200 Message-ID: <20200823213651.GA73398@mail.bsd4all.net> References: <20200804194302.9117.35185@vcs0.savannah.gnu.org> <20200804194304.43835209B0@vcs0.savannah.gnu.org> <87k0xpytfg.wl-herbert@gojira.at> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14541"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org, Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Aug 23 23:39:21 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k9xhx-0003fv-7R for ged-emacs-devel@m.gmane-mx.org; Sun, 23 Aug 2020 23:39:21 +0200 Original-Received: from localhost ([::1]:47864 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k9xhw-00075v-4Z for ged-emacs-devel@m.gmane-mx.org; Sun, 23 Aug 2020 17:39:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57300) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k9xfc-0006cf-5a for emacs-devel@gnu.org; Sun, 23 Aug 2020 17:36:56 -0400 Original-Received: from mail.bsd4all.net ([94.130.200.20]:14407) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k9xfZ-0000ly-MO for emacs-devel@gnu.org; Sun, 23 Aug 2020 17:36:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=gojira.at; s=mail202005; t=1598218611; bh=HBCqJjgHC3oWyLQan4y804EVwpie5qHELNo66Ri1Wrs=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type; b=j/a4z2gJAGf22LnkA+fsBtVhdq1hP1R1VH+6o/QxEWG5jkTUSsIH1LuG2YPzEyBRz umteT5QcYII1EzbGrRtEU2Lc2FBcDjxLF9tqTG2k7+/kydKfil7SH6aFUP82AO4nZM x0dSDjnhXFZAAdqeq7DQAMKRcftWKo/52OPO7WCoss1oV7UoTxS+8LWCL2Jw8HZP+b eFa48S8X0xmn0vh09pICdegs541ImmZ9YR2d3rHQeN/LEqw+wKIj2l5it5QE6aIM6c qPvnN98tfd7EC6eL35wmP/vt/0tnRXHVZrQzRzD0L+Uz/GzpNvcAx3U06fNsELucZl 5cb/lpHn5JThA== Content-Disposition: inline In-Reply-To: <87k0xpytfg.wl-herbert@gojira.at> Received-SPF: pass client-ip=94.130.200.20; envelope-from=herbert@gojira.at; helo=mail.bsd4all.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/23 17:09:30 X-ACL-Warn: Detected OS = FreeBSD 9.x or newer [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:254168 Archived-At: On Sun, Aug 23, 2020 at 10:54:27PM +0200, Herbert J. Skuhra wrote: > On Tue, 04 Aug 2020 21:43:03 +0200, larsi@gnus.org wrote: > > > > branch: master > > commit 6e70b3793b9cb7730ab8a7132aa6e99f1ca13f98 > > Author: Lars Ingebrigtsen > > Commit: Lars Ingebrigtsen > > > > When decrypting non-decrypted files, make epa show the raw files > > > > * lisp/epa-file.el (epa-file-insert-file-contents): When trying to > > decrypt a non-decrypted file, just show the bytes from the file > > instead (bug#3829). > > After this commit running 'C-x C-f ~/newfile.gpg' produces an error: > > epa-file-insert-file-contents: Wrong type argument: char-or-string-p, nil > > Debugger entered--Lisp error: (wrong-type-argument char-or-string-p nil) > epa-file-decode-and-insert(nil "/home/herbert/newfile.gpg" t nil nil nil) > epa-file-insert-file-contents("/home/herbert/newfile.gpg" t nil nil nil) > apply(epa-file-insert-file-contents ("/home/herbert/newfile.gpg" t nil nil nil)) > epa-file-handler(insert-file-contents "/home/herbert/newfile.gpg" t nil nil nil) > insert-file-contents("~/newfile.gpg" t) > find-file-noselect-1(# "~/newfile.gpg" nil nil "~/newfile.gpg" nil) > find-file-noselect("~/newfile.gpg" nil nil t) > find-file("~/newfile.gpg" t) > funcall-interactively(find-file "~/newfile.gpg" t) > call-interactively(find-file nil nil) > command-execute(find-file) > > If I run the command 'find-file' again it works. But I am not asked to select a gpg key ... only symmetric encryption is offered! There is obviously another bug (but unrelated to this commit): If I revert the above commit and try to create and save an encrypted file I get: Select recipients for encryption. If no one is selected, symmetric encryption will be performed. - ‘m’ to mark a key on the line - ‘u’ to unmark a key on the line [Cancel][OK] How do you proceed with symmetric encryption? Just pressing OK without selecting a key does not work. -- Herbert