From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.bugs Subject: bug#31603: 27.0.50; pinentry loopback disappeared Date: Sat, 26 May 2018 12:14:13 +0100 Message-ID: <87lgc6acu2.fsf@tcd.ie> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1527333190 1308 195.159.176.226 (26 May 2018 11:13:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 26 May 2018 11:13:10 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 31603@debbugs.gnu.org To: Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 26 13:13:06 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fMX8D-0000EI-OA for geb-bug-gnu-emacs@m.gmane.org; Sat, 26 May 2018 13:13:06 +0200 Original-Received: from localhost ([::1]:48492 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fMXAK-0005pW-VE for geb-bug-gnu-emacs@m.gmane.org; Sat, 26 May 2018 07:15:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55814) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fMXAA-0005pM-QC for bug-gnu-emacs@gnu.org; Sat, 26 May 2018 07:15:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fMXA6-0004wA-84 for bug-gnu-emacs@gnu.org; Sat, 26 May 2018 07:15:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41153) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fMXA6-0004w3-2V for bug-gnu-emacs@gnu.org; Sat, 26 May 2018 07:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fMXA5-0003Z0-Pp for bug-gnu-emacs@gnu.org; Sat, 26 May 2018 07:15:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 26 May 2018 11:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31603 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 31603-submit@debbugs.gnu.org id=B31603.152733326313637 (code B ref 31603); Sat, 26 May 2018 11:15:01 +0000 Original-Received: (at 31603) by debbugs.gnu.org; 26 May 2018 11:14:23 +0000 Original-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 Original-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 Original-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) Original-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) In-Reply-To: (adrian.lanz@wsl.ch's message of "Sat, 26 May 2018 10:46:45 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:146568 Archived-At: --=-=-= 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 --=-=-=--