From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: 16emacsbug@nospam.scs.stanford.edu Newsgroups: gmane.emacs.bugs Subject: bug#24553: 25.1; epa ignores epg-gpg-program in very confusing way Date: Tue, 27 Sep 2016 01:15:40 -0700 Message-ID: <87twd1ep1v.fsf@ta.scs.stanford.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1474967305 10445 195.159.176.226 (27 Sep 2016 09:08:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 27 Sep 2016 09:08:25 +0000 (UTC) To: 24553@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 27 11:08:21 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1booN6-0001mH-8x for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Sep 2016 11:08:16 +0200 Original-Received: from localhost ([::1]:48941 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1booN4-00014T-Po for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Sep 2016 05:08:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38077) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1booMx-000140-Bk for bug-gnu-emacs@gnu.org; Tue, 27 Sep 2016 05:08:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1booMs-0004dC-5U for bug-gnu-emacs@gnu.org; Tue, 27 Sep 2016 05:08:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58955) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1booMs-0004d6-2L for bug-gnu-emacs@gnu.org; Tue, 27 Sep 2016 05:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1booMr-0003Pn-PK for bug-gnu-emacs@gnu.org; Tue, 27 Sep 2016 05:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: 16emacsbug@nospam.scs.stanford.edu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Sep 2016 09:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 24553 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.147496724813076 (code B ref -1); Tue, 27 Sep 2016 09:08:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Sep 2016 09:07:28 +0000 Original-Received: from localhost ([127.0.0.1]:36912 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1booMK-0003Op-3A for submit@debbugs.gnu.org; Tue, 27 Sep 2016 05:07:28 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33647) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bonZv-0002FZ-MO for submit@debbugs.gnu.org; Tue, 27 Sep 2016 04:17:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bonZo-0001LT-Em for submit@debbugs.gnu.org; Tue, 27 Sep 2016 04:17:22 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:43794) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bonZo-0001LL-BL for submit@debbugs.gnu.org; Tue, 27 Sep 2016 04:17:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52822) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bonZl-0000Ur-Py for bug-gnu-emacs@gnu.org; Tue, 27 Sep 2016 04:17:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bonZi-0001J4-Hr for bug-gnu-emacs@gnu.org; Tue, 27 Sep 2016 04:17:17 -0400 Original-Received: from market.scs.stanford.edu ([171.66.3.10]:16299) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bonZi-0001Be-6c for bug-gnu-emacs@gnu.org; Tue, 27 Sep 2016 04:17:14 -0400 Original-Received: from market.scs.stanford.edu (localhost [127.0.0.1]) by market.scs.stanford.edu (8.15.2/8.15.2) with ESMTP id u8R8FgEi034733 for ; Tue, 27 Sep 2016 01:15:42 -0700 (PDT) Original-Received: (from dm@localhost) by market.scs.stanford.edu (8.15.2/8.15.2/Submit) id u8R8FfPZ017881; Tue, 27 Sep 2016 01:15:41 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: OpenBSD 4.x-5.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Tue, 27 Sep 2016 05:07:27 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:123713 Archived-At: I need to edit some files that decrypt properly with gpg 1.4 but not gpg 2.1. I have both installed on my system, with 1.4 as /usr/bin/gpg1 and 2.1 as /usr/bin/gpg2. The bug is that emacs ignores the epg-gpg-program variable *except* in error messages, which is very confusing. To reproduce this problem, do the following: * Run strace -o /tmp/log emacs -Q * Eval expression (setq epg-gpg-program "/usr/bin/gpg1") * Open a gpg-encrypted file By examining /tmp/log, or running ps, you can see that emacs is executing a command like the following: /usr/bin/gpg2 --no-tty --status-fd 1 --yes --enable-progress-filter= --command-fd 0 --output /tmp/epg-output6602ygi --decrypt -- /tmp/x.gpg However, when it fails to decrypt, it prints the message: Error while decrypting with "/usr/bin/gpg1." This is obviously very frustrating since gpg1 can in fact decrypt the file. Ideally emacs should obey epg-gpg-program, but if it doesn't, it should properly report what failed. In GNU Emacs 25.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.20.9) of 2016-09-18 built on juergen Windowing system distributor 'The X.Org Foundation', version 11.0.11804000 System Description: Arch Linux Configured using: 'configure --prefix=3D/usr --sysconfdir=3D/etc --libexecdir=3D/usr/lib --localstatedir=3D/var --with-x-toolkit=3Dgtk3 --with-xft 'CFLAGS=3D-march=3Dx86-64 -mtune=3Dgeneric -O2 -pipe -fstack-protector-strong' CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2 LDFLAGS=3D-Wl,-O1,--sort-common,--as-needed,-z,relro' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: value of $LANG: C locale-coding-system: nil Major mode: Lisp Interaction Minor modes in effect: diff-auto-refine-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: Loading /u/dm/.emacs.local...done For information about GNU Emacs and the GNU system, type C-a. Source file =E2=80=98/usr/share/emacs/site-lisp/notmuch-parser.el=E2=80=99 = newer than byte-compiled file Loading ~/.dot/elisp/my-notmuch (compiled; note, source file is newer)... Loading /u/dm/.dot/elisp/notmuch-identities.el (source)...done calling notmuch-address-message-insinuate is no longer needed Loading ~/.dot/elisp/my-notmuch (compiled; note, source file is newer)...do= ne Load-path shadows: /usr/share/emacs/site-lisp/haskell-mode/haskell-modules hides /usr/share/em= acs/site-lisp/haskell-mode/build-24.5.1/haskell-modules /usr/share/emacs/site-lisp/haskell-mode/haskell-utils hides /usr/share/emac= s/site-lisp/haskell-mode/build-24.5.1/haskell-utils /usr/share/emacs/site-lisp/haskell-mode/w3m-haddock hides /usr/share/emacs/= site-lisp/haskell-mode/build-24.5.1/w3m-haddock /usr/share/emacs/site-lisp/haskell-mode/haskell-presentation-mode hides /us= r/share/emacs/site-lisp/haskell-mode/build-24.5.1/haskell-presentation-mode /usr/share/emacs/site-lisp/haskell-mode/haskell-checkers hides /usr/share/e= macs/site-lisp/haskell-mode/build-24.5.1/haskell-checkers /usr/share/emacs/site-lisp/haskell-mode/inf-haskell hides /usr/share/emacs/= site-lisp/haskell-mode/build-24.5.1/inf-haskell /usr/share/emacs/site-lisp/haskell-mode/haskell-align-imports hides /usr/sh= are/emacs/site-lisp/haskell-mode/build-24.5.1/haskell-align-imports /usr/share/emacs/site-lisp/haskell-mode/haskell-customize hides /usr/share/= emacs/site-lisp/haskell-mode/build-24.5.1/haskell-customize /usr/share/emacs/site-lisp/haskell-mode/haskell-cabal hides /usr/share/emac= s/site-lisp/haskell-mode/build-24.5.1/haskell-cabal /usr/share/emacs/site-lisp/haskell-mode/haskell-collapse hides /usr/share/e= macs/site-lisp/haskell-mode/build-24.5.1/haskell-collapse /usr/share/emacs/site-lisp/haskell-mode/haskell-load hides /usr/share/emacs= /site-lisp/haskell-mode/build-24.5.1/haskell-load /usr/share/emacs/site-lisp/haskell-mode/haskell hides /usr/share/emacs/site= -lisp/haskell-mode/build-24.5.1/haskell /usr/share/emacs/site-lisp/haskell-mode/haskell-commands hides /usr/share/e= macs/site-lisp/haskell-mode/build-24.5.1/haskell-commands /usr/share/emacs/site-lisp/haskell-mode/haskell-hoogle hides /usr/share/ema= cs/site-lisp/haskell-mode/build-24.5.1/haskell-hoogle /usr/share/emacs/site-lisp/haskell-mode/haskell-decl-scan hides /usr/share/= emacs/site-lisp/haskell-mode/build-24.5.1/haskell-decl-scan /usr/share/emacs/site-lisp/haskell-mode/haskell-navigate-imports hides /usr= /share/emacs/site-lisp/haskell-mode/build-24.5.1/haskell-navigate-imports /usr/share/emacs/site-lisp/haskell-mode/haskell-sort-imports hides /usr/sha= re/emacs/site-lisp/haskell-mode/build-24.5.1/haskell-sort-imports /usr/share/emacs/site-lisp/haskell-mode/haskell-completions hides /usr/shar= e/emacs/site-lisp/haskell-mode/build-24.5.1/haskell-completions /usr/share/emacs/site-lisp/haskell-mode/haskell-unicode-input-method hides = /usr/share/emacs/site-lisp/haskell-mode/build-24.5.1/haskell-unicode-input-= method /usr/share/emacs/site-lisp/haskell-mode/haskell-repl hides /usr/share/emacs= /site-lisp/haskell-mode/build-24.5.1/haskell-repl /usr/share/emacs/site-lisp/haskell-mode/haskell-process hides /usr/share/em= acs/site-lisp/haskell-mode/build-24.5.1/haskell-process /usr/share/emacs/site-lisp/haskell-mode/haskell-sandbox hides /usr/share/em= acs/site-lisp/haskell-mode/build-24.5.1/haskell-sandbox /usr/share/emacs/site-lisp/haskell-mode/highlight-uses-mode hides /usr/shar= e/emacs/site-lisp/haskell-mode/build-24.5.1/highlight-uses-mode /usr/share/emacs/site-lisp/haskell-mode/haskell-c2hs hides /usr/share/emacs= /site-lisp/haskell-mode/build-24.5.1/haskell-c2hs /usr/share/emacs/site-lisp/haskell-mode/haskell-compat hides /usr/share/ema= cs/site-lisp/haskell-mode/build-24.5.1/haskell-compat /usr/share/emacs/site-lisp/haskell-mode/haskell-font-lock hides /usr/share/= emacs/site-lisp/haskell-mode/build-24.5.1/haskell-font-lock /usr/share/emacs/site-lisp/haskell-mode/haskell-compile hides /usr/share/em= acs/site-lisp/haskell-mode/build-24.5.1/haskell-compile /usr/share/emacs/site-lisp/haskell-mode/haskell-move-nested hides /usr/shar= e/emacs/site-lisp/haskell-mode/build-24.5.1/haskell-move-nested /usr/share/emacs/site-lisp/haskell-mode/haskell-indent hides /usr/share/ema= cs/site-lisp/haskell-mode/build-24.5.1/haskell-indent /usr/share/emacs/site-lisp/haskell-mode/haskell-menu hides /usr/share/emacs= /site-lisp/haskell-mode/build-24.5.1/haskell-menu /usr/share/emacs/site-lisp/haskell-mode/haskell-session hides /usr/share/em= acs/site-lisp/haskell-mode/build-24.5.1/haskell-session /usr/share/emacs/site-lisp/haskell-mode/haskell-string hides /usr/share/ema= cs/site-lisp/haskell-mode/build-24.5.1/haskell-string /usr/share/emacs/site-lisp/haskell-mode/haskell-doc hides /usr/share/emacs/= site-lisp/haskell-mode/build-24.5.1/haskell-doc /usr/share/emacs/site-lisp/haskell-mode/ghci-script-mode hides /usr/share/e= macs/site-lisp/haskell-mode/build-24.5.1/ghci-script-mode /usr/share/emacs/site-lisp/haskell-mode/haskell-lexeme hides /usr/share/ema= cs/site-lisp/haskell-mode/build-24.5.1/haskell-lexeme /usr/share/emacs/site-lisp/haskell-mode/haskell-interactive-mode hides /usr= /share/emacs/site-lisp/haskell-mode/build-24.5.1/haskell-interactive-mode /usr/share/emacs/site-lisp/haskell-mode/ghc-core hides /usr/share/emacs/sit= e-lisp/haskell-mode/build-24.5.1/ghc-core /usr/share/emacs/site-lisp/haskell-mode/haskell-indentation hides /usr/shar= e/emacs/site-lisp/haskell-mode/build-24.5.1/haskell-indentation /usr/share/emacs/site-lisp/haskell-mode/haskell-complete-module hides /usr/= share/emacs/site-lisp/haskell-mode/build-24.5.1/haskell-complete-module /usr/share/emacs/site-lisp/haskell-mode/haskell-debug hides /usr/share/emac= s/site-lisp/haskell-mode/build-24.5.1/haskell-debug /usr/share/emacs/site-lisp/flim/hex-util hides /usr/share/emacs/25.1/lisp/h= ex-util /usr/share/emacs/site-lisp/flim/md4 hides /usr/share/emacs/25.1/lisp/md4 /usr/share/emacs/site-lisp/flim/sasl-ntlm hides /usr/share/emacs/25.1/lisp/= net/sasl-ntlm /usr/share/emacs/site-lisp/flim/hmac-md5 hides /usr/share/emacs/25.1/lisp/n= et/hmac-md5 /usr/share/emacs/site-lisp/flim/sasl hides /usr/share/emacs/25.1/lisp/net/s= asl /usr/share/emacs/site-lisp/flim/ntlm hides /usr/share/emacs/25.1/lisp/net/n= tlm /usr/share/emacs/site-lisp/flim/hmac-def hides /usr/share/emacs/25.1/lisp/n= et/hmac-def /usr/share/emacs/site-lisp/flim/sasl-cram hides /usr/share/emacs/25.1/lisp/= net/sasl-cram /usr/share/emacs/site-lisp/flim/sasl-digest hides /usr/share/emacs/25.1/lis= p/net/sasl-digest /usr/share/emacs/site-lisp/semi/smime hides /usr/share/emacs/25.1/lisp/gnus= /smime /usr/share/emacs/site-lisp/semi/pgg-parse hides /usr/share/emacs/25.1/lisp/= obsolete/pgg-parse /usr/share/emacs/site-lisp/semi/pgg-def hides /usr/share/emacs/25.1/lisp/ob= solete/pgg-def /usr/share/emacs/site-lisp/semi/pgg-pgp5 hides /usr/share/emacs/25.1/lisp/o= bsolete/pgg-pgp5 /usr/share/emacs/site-lisp/semi/pgg-gpg hides /usr/share/emacs/25.1/lisp/ob= solete/pgg-gpg /usr/share/emacs/site-lisp/semi/pgg hides /usr/share/emacs/25.1/lisp/obsole= te/pgg /usr/share/emacs/site-lisp/semi/pgg-pgp hides /usr/share/emacs/25.1/lisp/ob= solete/pgg-pgp Features: (shadow sort flyspell ispell mail-extr emacsbug sendmail notmuch hl-line notmuch-message notmuch-maildir-fcc notmuch-hello edmacro kmacro wid-edit notmuch-tree notmuch-show notmuch-print notmuch-crypto notmuch-mua notmuch-address notmuch-company notmuch-parser notmuch-wash diff-mode easy-mmode coolj notmuch-query goto-addr thingatpt icalendar diary-lib diary-loaddefs cal-menu calendar cal-loaddefs notmuch-tag crm notmuch-lib notmuch-version cl message idna dired format-spec rfc822 mml mailabbrev mail-utils gmm-utils mailheader mm-view mml-smime mml-sec password-cache epg gnus-util smime mel mime-def alist mcharset mcs-20 mcs-e20 pces pces-e20 pces-20 broken pcustom path-util poe pym static apel-ver product mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr warnings server time-date finder-inf package epg-config seq byte-opt gv bytecomp byte-compile cl-extra help-mode easymenu cconv viper viper-ex viper-macs viper-mous viper-cmd viper-keym ring viper-util viper-init advice proof-site proof-autoloads pg-vars haskell-mode-autoloads cc-styles cc-align cc-engine cc-vars cc-defs cl-loaddefs pcase cl-lib mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 208677 7152) (symbols 48 31752 0) (miscs 40 214 946) (strings 32 52762 7347) (string-bytes 1 1545196) (vectors 16 24034) (vector-slots 8 573560 5264) (floats 8 217 6) (intervals 56 543 318) (buffers 976 158))