unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#26090: 26.0.50; Documentation for epg-gpg-program not sufficient
@ 2017-03-13 19:20 Jens Lechtenboerger
  2019-07-26 11:57 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Jens Lechtenboerger @ 2017-03-13 19:20 UTC (permalink / raw)
  To: 26090

[-- Attachment #1: Type: text/plain, Size: 614 bytes --]

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


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Add-more-details-to-doc-string-of-epg-gpg-program.patch --]
[-- Type: text/x-diff, Size: 1405 bytes --]

From bcd4239ea9472dcbb9922808d3a2ce832c381a71 Mon Sep 17 00:00:00 2001
From: Jens Lechtenboerger <jens.lechtenboerger@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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#26090: 26.0.50; Documentation for epg-gpg-program not sufficient
  2017-03-13 19:20 bug#26090: 26.0.50; Documentation for epg-gpg-program not sufficient Jens Lechtenboerger
@ 2019-07-26 11:57 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2019-07-26 11:57 UTC (permalink / raw)
  To: Jens Lechtenboerger; +Cc: 26090

Jens Lechtenboerger <jens.lechtenboerger@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





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-07-26 11:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-13 19:20 bug#26090: 26.0.50; Documentation for epg-gpg-program not sufficient Jens Lechtenboerger
2019-07-26 11:57 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).