From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Colin Baxter Newsgroups: gmane.emacs.bugs Subject: bug#44134: 28.0.50; epa-list-keys failing with =?UTF-8?Q?=E2=80=98wrong?= type argument: interger-or-marker-p, =?UTF-8?Q?nil=E2=80=99?= Date: Thu, 22 Oct 2020 15:21:54 +0100 Message-ID: <87zh4e9w8t.fsf@yandex.com> References: <878sbybreg.fsf@yandex.com> <875z72fxwo.fsf@gmx.net> <874kmmbjwk.fsf@yandex.com> <871rhqfq84.fsf@gmx.net> 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="8298"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) To: 44134@debbugs.gnu.org Cancel-Lock: sha1:xQkPWVOG19AljWJWXVL6KZZKeP8= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 22 16:23:33 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1kVbV6-000247-UM for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Oct 2020 16:23:32 +0200 Original-Received: from localhost ([::1]:51486 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kVbV4-0001J3-4V for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Oct 2020 10:23:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47794) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kVbUc-0001Fx-Jn for bug-gnu-emacs@gnu.org; Thu, 22 Oct 2020 10:23:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41748) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kVbUc-0002jw-9V for bug-gnu-emacs@gnu.org; Thu, 22 Oct 2020 10:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kVbUc-0003HY-5Y for bug-gnu-emacs@gnu.org; Thu, 22 Oct 2020 10:23:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Colin Baxter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Oct 2020 14:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44134 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.160337652812528 (code B ref -1); Thu, 22 Oct 2020 14:23:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Oct 2020 14:22:08 +0000 Original-Received: from localhost ([127.0.0.1]:53294 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVbTk-0003G0-I2 for submit@debbugs.gnu.org; Thu, 22 Oct 2020 10:22:08 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:37192) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVbTj-0003Ft-MF for submit@debbugs.gnu.org; Thu, 22 Oct 2020 10:22:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47656) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kVbTj-0008Rl-CD for bug-gnu-emacs@gnu.org; Thu, 22 Oct 2020 10:22:07 -0400 Original-Received: from static.214.254.202.116.clients.your-server.de ([116.202.254.214]:46136 helo=ciao.gmane.io) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kVbTh-0002dQ-FT for bug-gnu-emacs@gnu.org; Thu, 22 Oct 2020 10:22:07 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1kVbTd-0000Cx-HN for bug-gnu-emacs@gnu.org; Thu, 22 Oct 2020 16:22:01 +0200 X-Injected-Via-Gmane: http://gmane.org/ X-Face: BHjiJOg/Qmj'BQgsAKL@])L)e62P)C"Y=6T Face: iVBORw0KGgoAAAANSUhEUgAAAGQAAAAeBAMAAAAodabAAAAAB3RJTUUH1wQdAAY04/L8hgAA AAlwSFlzAAAewQAAHsEBw2lUUwAAAARnQU1BAACxjwv8YQUAAAASUExURc7OzpwAAAAAAP////8A AGNj/2aqqTQAAAA8SURBVHjaYzA2NnEBAmdj01D8wNgYpM7F2JiBgYFREAgEGJiU8AMGBpA6QaCG UVtGbRm1ZdSWUVsGjS0Aq20lJnMawnkAAAAASUVORK5CYII= Received-SPF: pass client-ip=116.202.254.214; envelope-from=geb-bug-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/22 10:22:02 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:191275 Archived-At: >>>>> Stephen Berman writes: > On Thu, 22 Oct 2020 12:05:31 +0100 Colin Baxter wrote: >> Hello Stephen, >>>>>>> Stephen Berman writes: >> >> > On Thu, 22 Oct 2020 09:23:35 +0100 Colin Baxter wrote: >> >>>>>>> Pankaj Jangid writes: >> >> >> >> > Steps: 1. M-x epa-list-keys RET ⇒ (lists keys) 2. q 3. M-x > >> >> epa-list-keys RET ⇒ Wrong type argument: interger-or-marker-p, >> >> nil >> >> >> >> Works for me using emacs-28.0.50 and emacs-27.1. >> >> > It works in emacs-27 but AFAICT it cannot work with emacs -Q >> from > master. >> >> I'm afraid emacs -Q does work for me on master. However, there is >> a subtlety in that if M-x epa-list-keys is entered first, >> the public keys are listed, but if entered a second time (after >> first entering 'q' to remove the keys buffer) the error message >> >> epa-list-keys: Wrong type argument: integer-or-marker-p, nil >> >> is obtained. > That's precisely the bug, look closely at the above recipe again! >> Do you want me to apply your patch to see if it makes any >> difference? > Yes, please do. Ok, patch applied to my setup and it appears to work. emacs -Q M-x epa-list-keys --> keys listed q M-x epa-list-keys --> keys listed repeated 2 more times> --> same outcome repeated 2 more times using epa-list-secret-keys --> keys listed Would it be possible to use 'q' to kill the keys-buffer rather than hide it? That way, the buffer will not display an old duplicate listing. Colin Baxter.