From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/82452 Path: news.gmane.org!not-for-mail From: Philipp Haselwarter Newsgroups: gmane.emacs.gnus.general Subject: [PATCH] gnus-sync.el (gnus-sync-file-encrypt-to): Set epa-file-encrypt-to from variable to avoid querying Date: Fri, 26 Oct 2012 19:08:03 +0200 Message-ID: <87haphduvg.fsf@netarch.haselwarter.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Power-outage/Exercise/PLO/Geraldton/Tuberculosis/y41wjyR9vP" X-Trace: ger.gmane.org 1351271305 24891 80.91.229.3 (26 Oct 2012 17:08:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Oct 2012 17:08:25 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M30718@lists.math.uh.edu Fri Oct 26 19:08:32 2012 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TRnOZ-0007Fk-4m for ding-account@gmane.org; Fri, 26 Oct 2012 19:08:31 +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 1TRnOD-0003XK-0i; Fri, 26 Oct 2012 12:08:09 -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 1TRnOB-0003X2-3R for ding@lists.math.uh.edu; Fri, 26 Oct 2012 12:08:07 -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 1TRnO0-00072c-7L for ding@lists.math.uh.edu; Fri, 26 Oct 2012 12:08:06 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1TRnNx-0006i6-PL for ding@gnus.org; Fri, 26 Oct 2012 19:07:53 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TRnO5-0006y8-3E for ding@gnus.org; Fri, 26 Oct 2012 19:08:01 +0200 Original-Received: from jem75-1-89-84-36-245.dsl.sta.abo.bbox.fr ([89.84.36.245]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 26 Oct 2012 19:08:01 +0200 Original-Received: from philipp by jem75-1-89-84-36-245.dsl.sta.abo.bbox.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 26 Oct 2012 19:08:01 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 51 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: jem75-1-89-84-36-245.dsl.sta.abo.bbox.fr X-NSA-Fodder: Compsec Exon Shell World Trade Center Nogales Phreaking Crash X-Emacs-Acronym: Every Mode Acknowledges Customized Strokes User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.50 (gnu/linux) Cancel-Lock: sha1:l9bS/rWcI7YrdEh4aLpQED8tDfY= X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:82452 Archived-At: --Power-outage/Exercise/PLO/Geraldton/Tuberculosis/y41wjyR9vP Content-Type: text/plain Without this patch, `gnus-sync-save' asks which public key to use to encrypt `gnus-sync-backend' for on every save. lisp/gnus-sync.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lisp/gnus-sync.el b/lisp/gnus-sync.el index 510e858..4bcec84 100644 --Power-outage/Exercise/PLO/Geraldton/Tuberculosis/y41wjyR9vP Content-Type: text/x-patch Content-Disposition: inline --- a/lisp/gnus-sync.el +++ b/lisp/gnus-sync.el @@ -142,6 +142,11 @@ and `gnus-topic-alist'. Also see `gnus-variable-list'." (defvar gnus-sync-newsrc-loader nil "Carrier for newsrc data") +(defcustom gnus-sync-file-encrypt-to nil + "If non-nil, `epa-file-encrypt-to' is set from this for encrypting the Sync + file." + :group 'gnus-sync) + (defcustom gnus-sync-lesync-name (system-name) "The LeSync name for this machine." :group 'gnus-sync @@ -757,6 +762,9 @@ With a prefix, FORCE is set and all groups will be saved." (progn (let ((coding-system-for-write gnus-ding-file-coding-system) (standard-output (current-buffer))) + (when gnus-sync-file-encrypt-to + (set (make-local-variable 'epa-file-encrypt-to) + gnus-sync-file-encrypt-to)) (princ (format ";; -*- mode:emacs-lisp; coding: %s; -*-\n" gnus-ding-file-coding-system)) (princ ";; Gnus sync data v. 0.0.1\n") --Power-outage/Exercise/PLO/Geraldton/Tuberculosis/y41wjyR9vP Content-Type: text/plain -- Philipp Haselwarter --Power-outage/Exercise/PLO/Geraldton/Tuberculosis/y41wjyR9vP--