From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Daiki Ueno Newsgroups: gmane.emacs.bugs Subject: bug#24229: 25.1; Can't set EPA program Date: Thu, 18 Aug 2016 17:08:03 +0200 Message-ID: References: <89B49EC8-8E9C-462F-8E0C-9A6ABC7A8C87@tenpoint.co.nz> <87mvkcqzbf.fsf-ueno@gnu.org> <4B42E5C1-2FC6-471D-9E68-309B1C9DF1FD@tenpoint.co.nz> <83ziobe80q.fsf@gnu.org> <83pop6dv1x.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1471532965 16955 195.159.176.226 (18 Aug 2016 15:09:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 18 Aug 2016 15:09:25 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cc: nick@tenpoint.co.nz, 24229@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 18 17:09: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 1baOwa-00049C-8E for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Aug 2016 17:09:20 +0200 Original-Received: from localhost ([::1]:53116 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1baOwX-0002kS-GD for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Aug 2016 11:09:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42721) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1baOwM-0002k4-Sz for bug-gnu-emacs@gnu.org; Thu, 18 Aug 2016 11:09:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1baOwI-00078y-C6 for bug-gnu-emacs@gnu.org; Thu, 18 Aug 2016 11:09:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35822) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1baOwI-00078u-92 for bug-gnu-emacs@gnu.org; Thu, 18 Aug 2016 11:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1baOwI-0004rK-5P for bug-gnu-emacs@gnu.org; Thu, 18 Aug 2016 11:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daiki Ueno Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 18 Aug 2016 15:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24229 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24229-submit@debbugs.gnu.org id=B24229.147153290618637 (code B ref 24229); Thu, 18 Aug 2016 15:09:02 +0000 Original-Received: (at 24229) by debbugs.gnu.org; 18 Aug 2016 15:08:26 +0000 Original-Received: from localhost ([127.0.0.1]:33534 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1baOvh-0004qW-ST for submit@debbugs.gnu.org; Thu, 18 Aug 2016 11:08:26 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51524) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1baOvf-0004qI-TR for 24229@debbugs.gnu.org; Thu, 18 Aug 2016 11:08:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1baOvX-0006th-7e for 24229@debbugs.gnu.org; Thu, 18 Aug 2016 11:08:18 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:32794) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1baOvX-0006tc-4K; Thu, 18 Aug 2016 11:08:15 -0400 Original-Received: from du-a.org ([219.94.251.20]:42647 helo=localhost.localdomain) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1baOvU-0008IH-PU; Thu, 18 Aug 2016 11:08:13 -0400 In-Reply-To: <83pop6dv1x.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 18 Aug 2016 17:13:30 +0300") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:122366 Archived-At: Eli Zaretskii writes: >> From: Daiki Ueno >> Cc: nick@tenpoint.co.nz, 24229@debbugs.gnu.org >> Date: Thu, 18 Aug 2016 09:14:27 +0200 >> >> Eli Zaretskii writes: >> >> >> 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. >> > >> > Doesn't Customize provide some functions that allow such a >> > distinction? The Customize UI surely is able to tell when a variable >> > was "changed not through Customize", isn't that what you want? >> >> This is what we are currently doing, and the bug is saying that it >> should be done without Customize. It doesn't make sense to me though. > > What I meant is that Customize does have a way of telling that a value > was changed using setq, so evidently there's some infrastructure for > that which you could use. Am I missing something? Do you mean custom-variable-state or anything else? The function just compares a value with the default value. In that case, we cannot determine whether a user explicitly sets the variable to "gpg2", or the default value "gpg2" is used. If the former, we want to use "gpg2" binary anyway. But if the latter and "gpg2" is GnuPG 2.0, we want to try other versions when available. This is not possible with that function. Regards, -- Daiki Ueno