From: Glenn Morris <rgm@gnu.org>
To: Jens Lechtenboerger <lechten@wi.uni-muenster.de>
Cc: 25947@debbugs.gnu.org, Daiki Ueno <ueno@unixuser.com>
Subject: bug#25947: 26.0.50; EasyPG does not honor customized epg-gpg-program
Date: Thu, 09 Mar 2017 18:26:58 -0500 [thread overview]
Message-ID: <9hy3we9gl9.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <87y3wmbnmc.fsf@wi.uni-muenster.de> (Jens Lechtenboerger's message of "Fri, 03 Mar 2017 12:34:03 +0100")
Jens Lechtenboerger wrote:
> However, customizing epg-gpg-program does not work, recipe from
> 'emacs -Q':
>
> Check value of epg-gpg-program; in my case, I see gpg2:
> C-h v epg-gpg-program
>
> Eval the following:
> (setq epg-debug t)
> (customize-set-variable 'epg-gpg-program "/bin/echo")
>
> Invoke some EasyPG operation, e.g., encrypt a fresh file:
> C-x C-f test.gpg
>
> At this point, the debug buffer " *epg-debug*" shows that
> /usr/bin/gpg was invoked for decryption. Note that this is neither
> gpg2 (my machine's default) nor /bin/echo (my customization).
Thanks for the report. How about the following:
--- a/lisp/epg-config.el
+++ b/lisp/epg-config.el
@@ -129,7 +129,8 @@ epg-find-configuration
(or (and (not no-cache) (alist-get protocol epg--configurations))
;; If the executable value is already set with M-x
;; customize, use it without checking.
- (if (and symbol (get symbol 'saved-value))
+ (if (and symbol (or (get symbol 'saved-value)
+ (get symbol 'customized-value)))
(let ((configuration
(funcall constructor (symbol-value symbol))))
(push (cons protocol configuration) epg--configurations)
next prev parent reply other threads:[~2017-03-09 23:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-03 11:34 bug#25947: 26.0.50; EasyPG does not honor customized epg-gpg-program Jens Lechtenboerger
2017-03-09 23:26 ` Glenn Morris [this message]
2017-03-10 15:09 ` Jens Lechtenboerger
2017-03-10 19:26 ` Glenn Morris
2017-03-11 14:05 ` Jens Lechtenboerger
2017-03-12 1:27 ` Glenn Morris
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=9hy3we9gl9.fsf@fencepost.gnu.org \
--to=rgm@gnu.org \
--cc=25947@debbugs.gnu.org \
--cc=lechten@wi.uni-muenster.de \
--cc=ueno@unixuser.com \
/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.