From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Filipp Gunbin Newsgroups: gmane.emacs.devel Subject: Re: epa.texi: Emacs and GnuPG pinentry Date: Thu, 06 Jul 2023 03:15:39 +0300 Message-ID: References: <4c2b40c1-2bd6-47cb-6d66-9addd90d7518@vodafonemail.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1714"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Jens Schmidt Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jul 06 02:16:58 2023 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 1qHCg4-0000D7-2q for ged-emacs-devel@m.gmane-mx.org; Thu, 06 Jul 2023 02:16:57 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qHCf7-0004RT-BC; Wed, 05 Jul 2023 20:15:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qHCf1-0004O7-HI for emacs-devel@gnu.org; Wed, 05 Jul 2023 20:15:54 -0400 Original-Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qHCey-0002Ly-16 for emacs-devel@gnu.org; Wed, 05 Jul 2023 20:15:49 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 9BD6A3200917; Wed, 5 Jul 2023 20:15:43 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Wed, 05 Jul 2023 20:15:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1688602543; x=1688688943; bh=3T YsHFNsoK+yzIK6n0pKBfw6XpHnKf5ZSNkKb1C4c4w=; b=uwCpHl9uGe/tVxV4mB riNQXEbEkv0qs48HlfdiTDLpyGnvDn8Nv8ERQQU8qFhDEtwOaK9p1NJedOxC6Q5x Gc/5FtPpizgKINBHHNtQZDxvpT+KD28g4c8ZoaZqPxHAd1Bv5NNVp871FNN0dfl4 HZXdfj3InN4o/iLa8RSsVHp1S92FwTW2c6vauGYMuo3l4UkI3mlszdorzXdV0A9K 2n16ygxVl9PE2FvesDd3f4e9pMTDDuF2RzdbsY9goosdTjYwHtRKi4TAv2P6myq6 iJmWfCy9cTqzKjRZeWAfFLsyI5efOOJTMbC/gv6Ph1Fmqeqt4qnfTU0iLiogCZwP pZcA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1688602543; x=1688688943; bh=3TYsHFNsoK+yz IK6n0pKBfw6XpHnKf5ZSNkKb1C4c4w=; b=SPDXnMSG7gYzbDOHuHSvfS1yA/Wol IOAL2ndqcmirOaFGUHEatfk+Z0vabzyE2QsAPmVvWuZcsQTxGfec6rHlyLJjftas A7s1a2Tiv/vA56+BEEGQDmW1mxSpYBTtzVjlAlYZE4Nhs9gcZA7A6h2tPi4/XVyN FtaeP9eL+qXiEPEEzZ2pS++YqZW8PIxIRhz8JYzi1ZEOlfxZ/yG+Uf1ZFKZY0gNq gnZIom9u6eHKC0qbR9GO4PfjVBiT2D/KCrCi2GzSm7Ma7/Uo+3wCNJErLDOxTxF9 m5l5/Qc4kQOcAxO6ptr7pFPS9tfhU4tFuNrT+ihIxbwg2F88fllo8iTJQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudekgdefvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvvefujghffgffkfggtgesthdtre dttdertdenucfhrhhomhephfhilhhiphhpucfiuhhnsghinhcuoehfghhunhgsihhnsehf rghsthhmrghilhdrfhhmqeenucggtffrrghtthgvrhhnpeejhfeufedvfeelfeejfeffke eglefguddvgfefvddtjeelkeehvefhveehfffhveenucffohhmrghinhepghhnuhdrohhr ghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehfgh hunhgsihhnsehfrghsthhmrghilhdrfhhm X-ME-Proxy: Feedback-ID: id48c41f1:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 5 Jul 2023 20:15:41 -0400 (EDT) In-Reply-To: <4c2b40c1-2bd6-47cb-6d66-9addd90d7518@vodafonemail.de> (Jens Schmidt's message of "Wed, 5 Jul 2023 00:13:27 +0200") Mail-Followup-To: Jens Schmidt , emacs-devel@gnu.org Received-SPF: pass client-ip=64.147.123.21; envelope-from=fgunbin@fastmail.fm; helo=wout5-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:307481 Archived-At: Hi Jens, On 05/07/2023 00:13 +0200, Jens Schmidt wrote: [...] > What puzzled me during my first-time setup were the different modes of > Emacs as GnuPG Pinentry. Basically you can have for GnuPG >= 2.1: > > 1. Use Emacs only for GnuPG requests that are triggered by Emacs itself > (aka loopback pinentry), > > 2. use Emacs for *all* GnuPG requests (also non-Emacs ones), or > > 3. use Emacs for all GnuPG requests with some other non-Emacs Pinentry > as fallback. > > The latter two alternatives require pinentry.el, which was present in > Emacs core only in versions [25, ..., 27] (see > https://lists.gnu.org/archive/html/emacs-devel/2018-01/msg00233.html). > Plus they are not supported on Debian. > > While some users may consider alternatives 2. and 3. desirable I'm not > sure whether I should describe their setup in detail in epa.texi. I > could just mention them and that "they are not recommended for use". Or > whatever. > > WDYT? I think that putting (setq epg-pinentry-mode 'loopback) into .emacs is all that should be needed. BTW, we could think of making this value the default. Filipp