From debbugs-submit-bounces@debbugs.gnu.org Sat May 26 04:50:57 2018 Received: (at submit) by debbugs.gnu.org; 26 May 2018 08:50:57 +0000 Received: from localhost ([127.0.0.1]:49012 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fMUuf-000072-5N for submit@debbugs.gnu.org; Sat, 26 May 2018 04:50:57 -0400 Received: from eggs.gnu.org ([208.118.235.92]:45561) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fMUqr-0008Sp-6r for submit@debbugs.gnu.org; Sat, 26 May 2018 04:47:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fMUqk-000075-JZ for submit@debbugs.gnu.org; Sat, 26 May 2018 04:46:55 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:38088) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fMUqk-00006n-GU for submit@debbugs.gnu.org; Sat, 26 May 2018 04:46:54 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36526) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fMUqj-0000d0-5Z for bug-gnu-emacs@gnu.org; Sat, 26 May 2018 04:46:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fMUqe-0008RA-Qs for bug-gnu-emacs@gnu.org; Sat, 26 May 2018 04:46:53 -0400 Received: from mailscanner-bi.wsl.ch ([193.134.202.6]:25500) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fMUqe-0008Oj-JC for bug-gnu-emacs@gnu.org; Sat, 26 May 2018 04:46:48 -0400 X-IronPort-AV: E=Sophos;i="5.49,443,1520895600"; d="scan'208";a="15793002" Received: from unknown (HELO notesbi1.wsl.ch) ([10.30.1.65]) by mailscannerint-bi.wsl.ch with ESMTP; 26 May 2018 10:42:32 +0200 Received: from sampling ([10.13.0.51]) by notesbi1.wsl.ch (IBM Domino Release 9.0.1FP8 HF238) with ESMTP id 2018052610464557-237798 ; Sat, 26 May 2018 10:46:45 +0200 From: adrian.lanz@wsl.ch To: bug-gnu-emacs@gnu.org Subject: 27.0.50; pinentry loopback disappeared Date: Sat, 26 May 2018 10:46:45 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on notesbi1/WSL(Release 9.0.1FP8 HF238|May 05, 2017) at 26.05.2018 10:46:45, Serialize by Router on notesbi1/WSL(Release 9.0.1FP8 HF238|May 05, 2017) at 26.05.2018 10:46:45, Serialize complete at 26.05.2018 10:46:45 X-TNEFEvaluated: 1 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 26 May 2018 04:50:55 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) With 'allow-loopback-pinentry' in gpg-agent.conf and (setq epa-pinentry-mode 'loopback) in .emacs, I enjoy reliable pass-phrase prompting and entering in the Emacs minibuffer for quite some time (at least since September 2016). Now unexpectedly, pinentry-curses started to pop-up for pass-phrase prompting. I suspect commit 302e500087fd4cc1c5f37ec87c98e828b22aaa05 being the cause. I did not find a way to get pinentry-loopback back and working. Remark 1: The default graphical mode pinentry (X11 or similar) is available as expected. Remark 2: Text mode pinentry-curses is very unreliable (under my configuration). Several attempts are often needed to get the pass-phrase accepted. When pinentry-curses is automatically called to find-file a *.gpg file, mangled parts of the pass-phrase are inserted as clear text on top of the Emacs buffer into which the file is loaded. Mangled pass-phrase parts may also otherwise passed to Emacs (seems as key strokes with unpredictable effects). [This bug report is, however, not intended towards pinentry-curses, but pinentry-loopback. On the other hand, pinentry-curses seems the fall-back of pinentry-loopback (and graphical mode pinentry).] Use case: I access the system (at work) also on a daily basis from outside - through VPN/SSH and in terminal/text mode, so that a functioning text mode pinentry is a must (e.g. encrypted .authinfo.gpg for Emacs/Gnus). Workaround: I detected https://wiki.gnupg.org/AgentForwarding as an intermediate solution - graphical pinentry, and external access with a linux laptop, GnuPG configured. Ubuntu 16.04.4 LTS (Stable) GNU Emacs 27.0.50 (Snapshot) [http://ppa.launchpad.net/ubuntu-elisp/ppa/ubuntu xenial main] From debbugs-submit-bounces@debbugs.gnu.org Sat May 26 07:14:22 2018 Received: (at 31603) by debbugs.gnu.org; 26 May 2018 11:14:23 +0000 Received: from localhost ([127.0.0.1]:49050 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fMX9S-0003Xt-KD for submit@debbugs.gnu.org; Sat, 26 May 2018 07:14:22 -0400 Received: from mail-wm0-f54.google.com ([74.125.82.54]:34043) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fMX9Q-0003Xg-UG for 31603@debbugs.gnu.org; Sat, 26 May 2018 07:14:21 -0400 Received: by mail-wm0-f54.google.com with SMTP id q4-v6so17066599wmq.1 for <31603@debbugs.gnu.org>; Sat, 26 May 2018 04:14:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=/ypr+h/BXgF+5P5eyRUwAHOJAJmAC0jqC9xcj6+Plyc=; b=PYXO/6eNIh62IrYaMc8HT5t/VccgiX4Qg5nj3joqMR297QTImeVyxpzGvjw7GIKY3b ZdX7WHxdf/8QaKPT4jhdIoHWZSaq7XRAEssHMaYc25ZHfi9TDUoQmV7826rAqZ2zj1Xr 5laBlIf/QqGhAs2IgFeKWW87biXF56he+Z7jQJvzceFyUoQDVs3x57joGZTPeEGnMllT 3Ubo9Z7Z1YmuR0SKWw9rAwPAOzUO/K8iQBBiDVYxx3wJ19fn4hLgle9B0qSDfiZ8l64G Ef6mWI+hhwqVNOpBCVpekQQ7VtGkaun9IVDVlON9skYt1MXJiZlqd7wJSYaSdIahHlVl YKvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=/ypr+h/BXgF+5P5eyRUwAHOJAJmAC0jqC9xcj6+Plyc=; b=KQr8sf/0+LBH0awi9nfc+L0GPNy8N7lA5WJyETc2E0RLcJJ4IZ1dNetxvB/09u2Iy5 58M4SRi/YpdLvr87IrTI0le1E8mZ1Cq/Wp8hFdMcnUTsufY5Upx3kraDMbTAg3ddIfzO ujeY6zhZSIrYKgylSARFwGygEpP88noGcxWoeFF7bEo35fOQAeRiXVccHg4v8JQfAZHC grFzgrQyvwuY/BMPwr/hKGEDehh4Al7PMNlVGcX1fTKCnXBNATe+4d3Nk1e9xHSN0X1W 8A2SKH8izks3B/TwRD0YD8arAex/pvqGZJSVK35YNnU8Hih5kKANQ16jTAQw/hwhsWxg t1jg== X-Gm-Message-State: ALKqPwdqJRb0VhTnxbPTBB7zXaUZQEoAOpvNQW6nn46cj2zK0Ira5qQL uVe5suR8f+PegAFxQBlha5Vu/g== X-Google-Smtp-Source: ADUXVKK8678uVEtCmnSDSpCVIz4u24axG9f3Jx5zeW9xFNwXrWe6Rawe5Zs+HLTN8/PW8rwHw8Balg== X-Received: by 2002:a1c:ce:: with SMTP id 197-v6mr3773270wma.118.1527333255123; Sat, 26 May 2018 04:14:15 -0700 (PDT) Received: from localhost ([178.62.40.52]) by smtp.gmail.com with ESMTPSA id v31-v6sm22454617wrc.80.2018.05.26.04.14.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 26 May 2018 04:14:14 -0700 (PDT) From: "Basil L. Contovounesios" To: Subject: Re: bug#31603: 27.0.50; pinentry loopback disappeared References: Date: Sat, 26 May 2018 12:14:13 +0100 In-Reply-To: (adrian.lanz@wsl.ch's message of "Sat, 26 May 2018 10:46:45 +0200") Message-ID: <87lgc6acu2.fsf@tcd.ie> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 31603 Cc: 31603@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain writes: > With 'allow-loopback-pinentry' in gpg-agent.conf and (setq > epa-pinentry-mode 'loopback) in .emacs, I enjoy reliable pass-phrase > prompting and entering in the Emacs minibuffer for quite some time (at > least since September 2016). > > Now unexpectedly, pinentry-curses started to pop-up for pass-phrase > prompting. I suspect commit 302e500087fd4cc1c5f37ec87c98e828b22aaa05 > being the cause. I did not find a way to get pinentry-loopback back and > working. Have you tried replacing (setq epa-pinentry-mode 'loopback) with (setq epg-pinentry-mode 'loopback)? If doing this solves your issue, then I think the problem with the referenced commit [1: 302e500087] is that it uses define-obsolete-variable-alias (see docstring) in epa.el after epg-pinentry-mode has already been defined in epg-config.el. [1: 302e500087]: 2018-05-23 07:53:58 -0400 Move epa-pinentry-mode to epg-config (Bug#26298) https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=302e500087fd4cc1c5f37ec87c98e828b22aaa05 In other words, should we do the following? --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Place-epg-pinentry-mode-varalias-before-defcustom.patch >From e0577acadc471ffe64fb31a2a3ea457046cf1944 Mon Sep 17 00:00:00 2001 From: "Basil L. Contovounesios" Date: Sat, 26 May 2018 12:09:15 +0100 Subject: [PATCH] Place epg-pinentry-mode varalias before defcustom * lisp/epa.el (epa-pinentry-mode): Move obsolete varalias from here... * lisp/epg-config.el (epg-pinentry-mode): ...to here. (bug#31603) --- lisp/epa.el | 3 --- lisp/epg-config.el | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lisp/epa.el b/lisp/epa.el index 16621659a6..c3938e90a7 100644 --- a/lisp/epa.el +++ b/lisp/epa.el @@ -56,9 +56,6 @@ epa-info-window-height :type 'integer :group 'epa) -(define-obsolete-variable-alias - 'epa-pinentry-mode 'epg-pinentry-mode "27.1") - (defgroup epa-faces nil "Faces for epa-mode." :version "23.1" diff --git a/lisp/epg-config.el b/lisp/epg-config.el index 9d9bd7101e..98f458d996 100644 --- a/lisp/epg-config.el +++ b/lisp/epg-config.el @@ -69,6 +69,8 @@ epg-passphrase-coding-system "Coding system to use with messages from `epg-gpg-program'." :type 'symbol) +(define-obsolete-variable-alias + 'epa-pinentry-mode 'epg-pinentry-mode "27.1") ;; In the doc string below, we say "symbol `error'" to avoid producing ;; a hyperlink for `error' the function. -- 2.17.0 --=-=-= Content-Type: text/plain -- Basil --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat May 26 11:09:34 2018 Received: (at 31603) by debbugs.gnu.org; 26 May 2018 15:09:34 +0000 Received: from localhost ([127.0.0.1]:49803 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fMap3-0002dq-Nd for submit@debbugs.gnu.org; Sat, 26 May 2018 11:09:34 -0400 Received: from mailscanner-bi.wsl.ch ([193.134.202.6]:37738) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fMYdE-0007hi-PK for 31603@debbugs.gnu.org; Sat, 26 May 2018 08:49:13 -0400 X-IronPort-AV: E=Sophos;i="5.49,444,1520895600"; d="scan'208";a="15793542" Received: from unknown (HELO notesbi1.wsl.ch) ([10.30.1.65]) by mailscannerint-bi.wsl.ch with ESMTP; 26 May 2018 14:44:53 +0200 Received: from sampling ([10.13.0.51]) by notesbi1.wsl.ch (IBM Domino Release 9.0.1FP8 HF238) with ESMTP id 2018052614490592-238117 ; Sat, 26 May 2018 14:49:05 +0200 From: adrian.lanz@wsl.ch To: "Basil L. Contovounesios" Subject: Re: bug#31603: 27.0.50; pinentry loopback disappeared Organization: Eidgenoessische Forschungsanstalt fuer Wald, Schnee und Landschaft (WSL) References: <87lgc6acu2.fsf@tcd.ie> Date: Sat, 26 May 2018 14:49:06 +0200 In-Reply-To: <87lgc6acu2.fsf@tcd.ie> (Basil L. Contovounesios's message of "Sat, 26 May 2018 12:14:13 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on notesbi1/WSL(Release 9.0.1FP8 HF238|May 05, 2017) at 26.05.2018 14:49:05, Serialize by Router on notesbi1/WSL(Release 9.0.1FP8 HF238|May 05, 2017) at 26.05.2018 14:49:06, Serialize complete at 26.05.2018 14:49:06 X-TNEFEvaluated: 1 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 31603 X-Mailman-Approved-At: Sat, 26 May 2018 11:09:32 -0400 Cc: 31603@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Sam 26 Mai 2018 (12:14:13 +0100) Basil L. Contovounesios writes: > Have you tried replacing (setq epa-pinentry-mode 'loopback) with > (setq epg-pinentry-mode 'loopback)? If doing this solves your issue, > then I think the problem with the referenced commit [1: 302e500087] is > that it uses define-obsolete-variable-alias (see docstring) in epa.el > after epg-pinentry-mode has already been defined in epg-config.el. This was actually the first thing I tried (and I just tried it again to be sure): pinentry-loopback still fails. From debbugs-submit-bounces@debbugs.gnu.org Sat May 26 12:04:55 2018 Received: (at 31603) by debbugs.gnu.org; 26 May 2018 16:04:56 +0000 Received: from localhost ([127.0.0.1]:49815 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fMbgd-00040m-MU for submit@debbugs.gnu.org; Sat, 26 May 2018 12:04:55 -0400 Received: from mail-io0-f179.google.com ([209.85.223.179]:44743) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fMbgb-00040Y-Ug for 31603@debbugs.gnu.org; Sat, 26 May 2018 12:04:54 -0400 Received: by mail-io0-f179.google.com with SMTP id y2-v6so4368911iob.11 for <31603@debbugs.gnu.org>; Sat, 26 May 2018 09:04:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=s2usTC5O1VE8WgFUIKLN4Nr03npViJviK0RD7otNujM=; b=p6r/TQ44ssbxdNkQaOvMVzM/P45a03GnXMSb98Hj1ORLNCXo6gSswKye7HHM5WIwPK TyLDKwUXxApHMdT1+QarPaFuAQG7EV04WBdlwZM8YgapYdZh8V8TQjYi07i0+evMPgpY qe3+zFVP7R9Qur4t9lrOscjD2FFVTurBx8JJKrLpA83qoU/dHWTmror39q1ZPo3zjlVw 7v1eOh1xWHyiVAjtbnDamklEfcDcxRBN1FFhfT4WfOpjEKAdPDq74pHofsmslC0i3BaB BqYfSLWZFJeJUMLxAbqO+fHCM+StCYZDl83zGwVJECCA30d1Z9Wbqpycx3F/pNLvKLGu s7Ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=s2usTC5O1VE8WgFUIKLN4Nr03npViJviK0RD7otNujM=; b=Glwxw7eYKG2oOJT70NvmmDaQhBR/mVI5yj7Gt3YTP9D3xTU4sanCnqybZS7RvRpygk y06/LSnCAPtWvXWQgtLLRG6qNAXLmHnn8IFQ1PSitd9bWaP+hI8+AAECLTUSnTF86UPE vYXw1/ixwzlPL07q5bh4Vg9m3qZozxUWLjAgEY8C9VRTsEQCmwdBQQnMHAkIemEnkBhZ yHJglp5JnbiQ+1Pef6WsZSiG6Iv5qa28QgemgHtQATScfTYkFMiw3c8IK8UMipvb+RUK j6tuwpVOaqELXb9Y8+TxKS8mfiUwuPsB6y/ZSSSONcyugCecl6GVJDNe6jKxIg9k7L7d CG0w== X-Gm-Message-State: ALKqPwc8hJLhWIOPv/RPZ+8ToUnN7UZr9ptHknbNTElW0hi2T7HRmcYW ofn6FFIO7wEsxinXmT8YPoVMsw== X-Google-Smtp-Source: ADUXVKKAD569V+zQmUHr2w32MJKy6RRg0pQqDsljXTRf54VgBTX82zpIOa67B1op0LoiUKVfnv8Mhw== X-Received: by 2002:a6b:3889:: with SMTP id f131-v6mr5661344ioa.279.1527350688100; Sat, 26 May 2018 09:04:48 -0700 (PDT) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id v126-v6sm2874696iod.58.2018.05.26.09.04.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 26 May 2018 09:04:47 -0700 (PDT) From: Noam Postavsky To: adrian.lanz@wsl.ch Subject: Re: bug#31603: 27.0.50; pinentry loopback disappeared References: <87lgc6acu2.fsf@tcd.ie> Date: Sat, 26 May 2018 12:04:46 -0400 In-Reply-To: (adrian lanz's message of "Sat, 26 May 2018 14:49:06 +0200") Message-ID: <877enqflnl.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.8 (-) X-Debbugs-Envelope-To: 31603 Cc: "Basil L. Contovounesios" , 31603@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.8 (--) > On Sam 26 Mai 2018 (12:14:13 +0100) Basil L. Contovounesios writes: > >> then I think the problem with the referenced commit [1: 302e500087] is >> that it uses define-obsolete-variable-alias (see docstring) in epa.el >> after epg-pinentry-mode has already been defined in epg-config.el. Oh, you're right emacs -Q --eval "(setq epa-loopback-mode 'loopback)" -l epa Then v epa-loopback-mode RET shows that it has been reset to nil. adrian.lanz@wsl.ch writes: > This was actually the first thing I tried (and I just tried it again to > be sure): pinentry-loopback still fails. Well, it's at least part of the problem. Can you double check that epa-loopback-mode has the right value? When I apply Basil's patch, add 'allow-loopback-pinentry' to ~/.gnupg/gpg-agent.conf and (setq epa-loopback-mode 'loopback), then M-x epa-sign-file does give me a prompt in the minibuffer, as expected. Could you also double check that reverting 302e500087 fixes your problem? From debbugs-submit-bounces@debbugs.gnu.org Sun May 27 13:33:28 2018 Received: (at 31603) by debbugs.gnu.org; 27 May 2018 17:33:28 +0000 Received: from localhost ([127.0.0.1]:51204 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fMzXr-0005KF-Ot for submit@debbugs.gnu.org; Sun, 27 May 2018 13:33:28 -0400 Received: from mailscanner-bi.wsl.ch ([193.134.202.6]:36967) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fMyjZ-00043I-KR for 31603@debbugs.gnu.org; Sun, 27 May 2018 12:41:30 -0400 X-IronPort-AV: E=Sophos;i="5.49,448,1520895600"; d="scan'208";a="15796138" Received: from unknown (HELO notesbi1.wsl.ch) ([10.30.1.65]) by mailscannerint-bi.wsl.ch with ESMTP; 27 May 2018 18:37:08 +0200 Received: from inventur ([10.31.7.16]) by notesbi1.wsl.ch (IBM Domino Release 9.0.1FP8 HF238) with ESMTP id 2018052718412272-240276 ; Sun, 27 May 2018 18:41:22 +0200 From: adrian.lanz@wsl.ch To: Noam Postavsky Subject: Re: bug#31603: 27.0.50; pinentry loopback disappeared References: <87lgc6acu2.fsf@tcd.ie> <877enqflnl.fsf@gmail.com> Date: Sun, 27 May 2018 18:41:20 +0200 In-Reply-To: <877enqflnl.fsf@gmail.com> (Noam Postavsky's message of "Sat, 26 May 2018 12:04:46 -0400") Message-ID: <87muwloxu7.fsf@inventur.wsl.ch> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on notesbi1/WSL(Release 9.0.1FP8 HF238|May 05, 2017) at 27.05.2018 18:41:22, Serialize by Router on notesbi1/WSL(Release 9.0.1FP8 HF238|May 05, 2017) at 27.05.2018 18:41:22, Serialize complete at 27.05.2018 18:41:22 X-TNEFEvaluated: 1 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 31603 X-Mailman-Approved-At: Sun, 27 May 2018 13:33:26 -0400 Cc: "Basil L. Contovounesios" , 31603@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Sa 26 Mai 2018 (12:04:46 -0400) Noam Postavsky writes: >> On Sam 26 Mai 2018 (12:14:13 +0100) Basil L. Contovounesios writes: >> >>> then I think the problem with the referenced commit [1: 302e500087] is >>> that it uses define-obsolete-variable-alias (see docstring) in epa.el >>> after epg-pinentry-mode has already been defined in epg-config.el. > > Oh, you're right > > emacs -Q --eval "(setq epa-loopback-mode 'loopback)" -l epa > > Then v epa-loopback-mode RET shows that it has been reset to nil. > > > adrian.lanz@wsl.ch writes: > >> This was actually the first thing I tried (and I just tried it again to >> be sure): pinentry-loopback still fails. > > Well, it's at least part of the problem. Can you double check that > epa-loopback-mode has the right value? When I apply Basil's patch, add > 'allow-loopback-pinentry' to ~/.gnupg/gpg-agent.conf and (setq > epa-loopback-mode 'loopback), then M-x epa-sign-file does give me a (The variable name is epa-pinentry-mode, not epa-loopback-mode.) > prompt in the minibuffer, as expected. I confirm setting (setq epg-pinentry-mode 'loopback) in .emacs init file solves the problem (I get again the minibuffer prompt). The tcd.ie> proposed patch leads to minibuffer passphrase prompts, even with only the old (now obsoleted) variable (setq epa-pinentry-mode 'loopback) present in the .emacs init file. In other words, with this patch, users do not have to change the configuration right away. Thanks! From debbugs-submit-bounces@debbugs.gnu.org Sun May 27 14:21:46 2018 Received: (at 31603) by debbugs.gnu.org; 27 May 2018 18:21:46 +0000 Received: from localhost ([127.0.0.1]:51246 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fN0Ib-0006RP-PX for submit@debbugs.gnu.org; Sun, 27 May 2018 14:21:46 -0400 Received: from mail-it0-f41.google.com ([209.85.214.41]:39410) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fN0Ia-0006R8-B8; Sun, 27 May 2018 14:21:44 -0400 Received: by mail-it0-f41.google.com with SMTP id c3-v6so12435176itj.4; Sun, 27 May 2018 11:21:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=dccdsKiGtpQJycklS5de4raTZ1mO7v3dokx8bpGGlp4=; b=GICPVtmBU2pj+424u6/juoPyC4IquBqnHtu6EAm72lShK3uCbUfC1CTv7tIk6/oXlI iOAI6UptEeumYvztZrop33/G3oyFOJSyCKxe/9dPI6A1i7PHS0pbbM+zdwbtbAG8cqc+ KOo72VQNDVPXPsgfa1A/sW0iGZNs/l75m+MDyOuXV0JjdUbJ5UiknArYNkgIkgf1/ys8 /jI5rzzg3mEzgm55+TcdMZ/+kHgXKto15fejdIADnt8SUWagfNityUgbkrV+R5UlVB2G noMcQ5uZOM99v8TT2wiiJFSh/0JQyo9mF6si1E6qSV5nyhqKTpc0onHG95alTjYEHpQB RxbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=dccdsKiGtpQJycklS5de4raTZ1mO7v3dokx8bpGGlp4=; b=mCHIwNZktWEN9bgzHSdzvQd4V7zdSDKOChgSLSGMiZz632/osuZux1YOYOk5hY6l17 +1Z8JBiED24J2TvxWbog+ZMslYsSZQ7pplPGODIGKXUq/J3YNFFdPoeBOZqzR/ozHClD 95bEhwr/q4vwzES2ECNpnsc6d9Fsea04ir2C/mFoDEc6LIhy18vDT5FGGWUiopM8feIc RbftE1Az4voEVUjNSmVkhxf/+InSaLG3VyCaCwmZyHwMSCe2Hc1k4ZcaPtDsvNnLd5Of SIFmJMMJvGU8ghbG/ohoDOnQgiF2mjIEgApjkL88x78y2zZWD42y2GwkETWKKenFrYke 7VeQ== X-Gm-Message-State: ALKqPwcqGy3YJWkTbeQc38olY0iyrmX2E0T9GfRq7fHeqIFMvlO5E0XU rtAfduAIPtphMAqi8unl4PlOxQ== X-Google-Smtp-Source: ADUXVKK4TRiqFShdUrC4kueXcYkUW7Eg2AU+8Q7VgFMpaO35v3QLgGbOZxV1929+9K431wNLBi0IZA== X-Received: by 2002:a24:154c:: with SMTP id 73-v6mr2438264itq.51.1527445298827; Sun, 27 May 2018 11:21:38 -0700 (PDT) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id e204-v6sm3940461ioa.34.2018.05.27.11.21.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 27 May 2018 11:21:37 -0700 (PDT) From: Noam Postavsky To: adrian.lanz@wsl.ch Subject: Re: bug#31603: 27.0.50; pinentry loopback disappeared References: <87lgc6acu2.fsf@tcd.ie> <877enqflnl.fsf@gmail.com> <87muwloxu7.fsf@inventur.wsl.ch> Date: Sun, 27 May 2018 14:21:36 -0400 In-Reply-To: <87muwloxu7.fsf@inventur.wsl.ch> (adrian lanz's message of "Sun, 27 May 2018 18:41:20 +0200") Message-ID: <87muwldknj.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 31603 Cc: "Basil L. Contovounesios" , 31603@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 31603 fixed close 31603 27.1 quit adrian.lanz@wsl.ch writes: > (The variable name is epa-pinentry-mode, not epa-loopback-mode.) Oops, that's what I get for typing from memory instead of copying straight from the working example. > I confirm setting (setq epg-pinentry-mode 'loopback) in .emacs init file > solves the problem (I get again the minibuffer prompt). > > The tcd.ie> proposed patch leads to minibuffer passphrase > prompts, even with only the old (now obsoleted) variable (setq > epa-pinentry-mode 'loopback) present in the .emacs init file. In other > words, with this patch, users do not have to change the configuration > right away. Thanks for testing, I've pushed to master. [1: 584f05cb11]: 2018-05-27 14:14:35 -0400 Place epg-pinentry-mode varalias before defcustom https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=584f05cb11a8010f31beaf07c9ef4180b70d1d66 From unknown Sat Aug 16 18:42:38 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 25 Jun 2018 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator