GNU bug report logs - #26090
26.0.50; Documentation for epg-gpg-program not sufficient

Previous Next

Package: emacs;

Reported by: Jens Lechtenboerger <jens.lechtenboerger <at> fsfe.org>

Date: Mon, 13 Mar 2017 19:21:01 UTC

Severity: minor

Tags: fixed

Found in version 26.0.50

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 26090 in the body.
You can then email your comments to 26090 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#26090; Package emacs. (Mon, 13 Mar 2017 19:21:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jens Lechtenboerger <jens.lechtenboerger <at> fsfe.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 13 Mar 2017 19:21:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jens Lechtenboerger <jens.lechtenboerger <at> fsfe.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 26.0.50; Documentation for epg-gpg-program not sufficient
Date: Mon, 13 Mar 2017 20:20:35 +0100
[Message part 1 (text/plain, inline)]
Hi there,

this is a followup to https://debbugs.gnu.org/24229 and
https://debbugs.gnu.org/25947 .

If epg-gpg-program has the default value "gpg2" and if gpg2's version is
2.0.x, then gpg 1.x will be used (if it is installed).

The attached patch extends the doc string of epg-gpg-program to explain
that epg-gpg-program needs to be customized to "gpg2" then (as hinted at
in https://debbugs.gnu.org/24229).

I fail to see that this is a reasonable behavior (why initialize that
variable to gpg2 in the first place although that value will be
ignored?), but at least it needs to be documented.

Best wishes
Jens

[0001-Add-more-details-to-doc-string-of-epg-gpg-program.patch (text/x-diff, inline)]
From bcd4239ea9472dcbb9922808d3a2ce832c381a71 Mon Sep 17 00:00:00 2001
From: Jens Lechtenboerger <jens.lechtenboerger <at> fsfe.org>
Date: Mon, 13 Mar 2017 19:58:51 +0100
Subject: [PATCH] Add more details to doc string of epg-gpg-program

* lisp/epg-config.el (epg-gpg-program): Augment doc string.

If epg-gpg-program has the value "gpg2", "gpg" may be used instead.
Use of gpg2 can be enforced via customize then.  This was explained in
(Bug#24229) and referenced in (Bug#25947).
---
 lisp/epg-config.el | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/lisp/epg-config.el b/lisp/epg-config.el
index 7b963ad..04e4596 100644
--- a/lisp/epg-config.el
+++ b/lisp/epg-config.el
@@ -46,7 +46,14 @@ epg-gpg-program
                              "gpg")
   "The `gpg' executable.
 Setting this variable directly does not take effect;
-instead use \\[customize] (see the info node `Easy Customization')."
+instead use \\[customize] (see the info node `Easy Customization').
+
+Note that if this variable has the default value \"gpg2\" and
+if your version of gpg is 2.0.x (instead of the modern variant
+2.1.x), then gpg 1.x will be used (if it is installed) regardless
+of this variable.  If you really want to use gpg2 version 2.0.x,
+you need to \\[customize] this variable to \"gpg2\" (even if that
+is its default value)."
   :version "25.1"
   :group 'epg
   :type 'string)
-- 
2.7.4


Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#26090; Package emacs. (Fri, 26 Jul 2019 11:58:01 GMT) Full text and rfc822 format available.

Message #8 received at 26090 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Jens Lechtenboerger <jens.lechtenboerger <at> fsfe.org>
Cc: 26090 <at> debbugs.gnu.org
Subject: Re: bug#26090: 26.0.50; Documentation for epg-gpg-program not
 sufficient
Date: Fri, 26 Jul 2019 13:57:37 +0200
Jens Lechtenboerger <jens.lechtenboerger <at> fsfe.org> writes:

> I fail to see that this is a reasonable behavior (why initialize that
> variable to gpg2 in the first place although that value will be
> ignored?), but at least it needs to be documented.

That is indeed curious behaviour, but perhaps there's historical reasons
for this...

> +Note that if this variable has the default value \"gpg2\" and
> +if your version of gpg is 2.0.x (instead of the modern variant
> +2.1.x), then gpg 1.x will be used (if it is installed) regardless
> +of this variable.  If you really want to use gpg2 version 2.0.x,
> +you need to \\[customize] this variable to \"gpg2\" (even if that
> +is its default value)."

I think this is essentially correct (I've read the code now, and this is
indeed what seems to be happening).  But I think I'll rephrase it a bit
and say something about how this variable is just a mild preference
unless actually customized.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 26 Jul 2019 12:04:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 27.1, send any further explanations to 26090 <at> debbugs.gnu.org and Jens Lechtenboerger <jens.lechtenboerger <at> fsfe.org> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 26 Jul 2019 12:04:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 24 Aug 2019 11:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 247 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.