unofficial mirror of bug-gnu-emacs@gnu.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: Wed, 17 Aug 2016 00:18:51 +0000	[thread overview]
Message-ID: <4B42E5C1-2FC6-471D-9E68-309B1C9DF1FD@tenpoint.co.nz> (raw)
In-Reply-To: <87mvkcqzbf.fsf-ueno@gnu.org>


> On 17/08/2016, at 7:38 AM, Daiki Ueno <ueno@gnu.org> wrote:
> 
> Nick Helm <nick@tenpoint.co.nz> writes:
> 
>> Yes, the error still occurs when launching with: 
>> emacs -Q —-eval '(setq epg-gpg-program "gpg1")'
>> 
>> However, it doesn’t occur when launching with:
>> emacs -Q --eval '(customize-save-variable (quote epg-gpg-program) "gpg1")'
>> 
>> A quick look at `epg-find-configuration' shows it only 
>> checks epg-gpg-program's saved-value symbol property; 
>> if the variable is set elsewhere it is ignored.
>> 
>> I can get around it by symlinking gpg>gpg1 but that
>> kinda defeats the purpose of having the variable.
> 
> It's an intended behaviour.  If you expect all the setup behind the
> scene, you need to use the Customize interface instead of ‘setq'.

Yes, I gathered it is intended from the code, but that 
doesn't make it the right thing to do.

Why are users focred to use customize? There are many 
cases where Emacs enables the user to point to an 
external executable with setq. Here are a few I found 
in my init:

ispell-program-name
insert-directory-program
find-program
remote-shell-program
dired-chmod-program

None of these variables forces the use of customize. Why 
is epg-gpg-program such a special case?

> This is similar to the mode variables.  See:
> https://www.gnu.org/software/emacs/manual/html_node/emacs/Minor-Modes.html#Minor-Modes

I don't see a parallel between mode variables and a user 
option like epg-gpg-program. They are different things 
with different purposes. 




  reply	other threads:[~2016-08-17  0:18 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 [this message]
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

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=4B42E5C1-2FC6-471D-9E68-309B1C9DF1FD@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 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).