From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/80010 Path: news.gmane.org!not-for-mail From: Daiki Ueno Newsgroups: gmane.emacs.gnus.general Subject: Re: plstore questions Date: Mon, 26 Sep 2011 11:41:19 +0900 Message-ID: References: <874o03gegk.fsf@keller.adm.naquadah.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1317004976 4347 80.91.229.12 (26 Sep 2011 02:42:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 26 Sep 2011 02:42:56 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M28304@lists.math.uh.edu Mon Sep 26 04:42:52 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R819g-0001TE-5f for ding-account@gmane.org; Mon, 26 Sep 2011 04:42:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1R818Y-0007Ma-N1; Sun, 25 Sep 2011 21:41:42 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1R818X-0007MP-FI for ding@lists.math.uh.edu; Sun, 25 Sep 2011 21:41:41 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1R818V-0005FE-Ju for ding@lists.math.uh.edu; Sun, 25 Sep 2011 21:41:40 -0500 Original-Received: from www10194u.sakura.ne.jp ([182.48.42.232]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1R818T-0004NB-7I for ding@gnus.org; Mon, 26 Sep 2011 04:41:37 +0200 In-Reply-To: <874o03gegk.fsf@keller.adm.naquadah.org> (Julien Danjou's message of "Fri, 23 Sep 2011 23:02:03 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) X-Spam-Score: -0.5 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:80010 Archived-At: Julien Danjou writes: > 1. Why isn't `plstore-encrypt-to' a defcustom rather than a defvar? Since plstore-encrypt-to is marked as permanent local, I think users don't want to set it with M-x customize. > 2. In `plstore--insert-buffer', I don't understand this test: > > (if (or (eq plstore-select-keys t) > (and (null plstore-select-keys) > (not (local-variable-p 'plstore-encrypt-to > (current-buffer))))) > (epa-select-keys =E2=80=A6 > > The documentation indicate that if `plstore-select-keys' is to nil and > if `plstore-encrypt-to' is set to something, then no epa-select-keys. > But the test does not check if plstore-encrypt-to is set, but checks if > it is local variable. I don't get why, and that does not make plstore > acts according to the documentation. Could you enlighten me? plstore-encrypt-to is supposed to be set through file variable and the above check is for the case where plstore-encrypt-to is set to nil. For example, if plstore-select-keys is nil and a file begins with: ;; plstore-encrypt-to: nil it will skip epa-select-keys dialog and use symmetric encryption. If there is no such line, it will open the dialog with default recipients (if any) selected. I agree with that the documentation is a bit misleading though. Regards, --=20 Daiki Ueno