all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nick Helm <nick@tenpoint.co.nz>
To: "24229@debbugs.gnu.org" <24229@debbugs.gnu.org>
Subject: bug#24229: 25.1; Can't set EPA program
Date: Thu, 18 Aug 2016 01:32:42 +0000	[thread overview]
Message-ID: <FE7D735E-C8B8-47F8-A547-5485CF9CFD43@tenpoint.co.nz> (raw)
In-Reply-To: <od1oa4rx2h2.fsf-ueno@gnu.org>


> On 17/08/2016, at 7:46 PM, Daiki Ueno <ueno@gnu.org> wrote:
> 
> Nick Helm <nick@tenpoint.co.nz> writes:
> 
>> None of these variables forces the use of customize. Why 
>> is epg-gpg-program such a special case?
> 
> That is primarily because of the UX differences between three maintained
> versions of GnuPG: 2.0, 2.1, and 1.x.  GnuPG 2.0 does not provide a way
> to prompt passphrase without GUI, but others do.  Some people are fine
> with 2.0 as they use Emacs on a graphical environment only, but other
> people are not.
> 
> So, we really need to take account of user's intention here; check
> whether the variable set by user or it is the default value.  With
> 'setq' it is not possible to have such distinction.

I'm not sure I follow. If the user sets a variable, I think 
they're making their intention pretty clear – use the set 
value. 

If they know enough to set epg-gpg-program (using whatever 
mechanism), I'd argue they know enough to understand the 
capabilities of the program they're pointing to. Isn't it 
up to the user to know that gnupg 2.0 only supports 
GUI-based pinentry? 

But if the existing arrangement is important, can we at
least extend the test to determine if the variable has 
been set using either mechanism? Something like this might
work:

(not (equal (eval (car (get 'epg-gpg-program 'standard-value))) 
            (default-value 'epg-gpg-program)))

This returns true when the user sets the variable with 
setq or with customize (both current and future sessions). 
It doesn't detect the case where the user setqs one of the 
two possible standard-values ("gpg2" or "gpg") and the 
same (or both) executable(s) exists in the path, but that 
is the same as the default case anyway and is not a change 
from current behaviour.

Nick



      parent reply	other threads:[~2016-08-18  1:32 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-15  4:58 bug#24229: 25.1; Can't set EPA program Nick Helm
2016-08-15 22:26 ` Noam Postavsky
2016-08-16  0:56   ` Nick Helm
2016-08-16 19:38     ` Daiki Ueno
2016-08-17  0:18       ` Nick Helm
2016-08-17  7:46         ` Daiki Ueno
2016-08-17 15:21           ` Eli Zaretskii
2016-08-18  7:14             ` Daiki Ueno
2016-08-18 14:13               ` Eli Zaretskii
2016-08-18 15:08                 ` Daiki Ueno
2016-08-18 15:35                   ` Eli Zaretskii
2016-08-18 15:46                   ` Glenn Morris
2016-08-18 16:16                     ` Eli Zaretskii
2016-08-19  9:22                       ` Daiki Ueno
2016-08-19  9:40                         ` Eli Zaretskii
2016-08-17 17:45           ` Richard Stallman
2016-08-18  1:32           ` Nick Helm [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=FE7D735E-C8B8-47F8-A547-5485CF9CFD43@tenpoint.co.nz \
    --to=nick@tenpoint.co.nz \
    --cc=24229@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.