aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGnus developers2012-12-23 12:45:01 +0000
committerKatsumi Yamaoka2012-12-23 12:45:01 +0000
commit1a8b65e042f587ff56dbc5debdb075c641564108 (patch)
tree6762716a51848e23d557eca932dbf49cbb35ef83
parentcf162aee2b9c574cb0f4095720a19f4efceee22b (diff)
downloademacs-1a8b65e042f587ff56dbc5debdb075c641564108.tar.gz
emacs-1a8b65e042f587ff56dbc5debdb075c641564108.zip
Merge changes made in Gnus master
2012-12-23 Lars Ingebrigtsen <larsi@gnus.org> * gnus-int.el (gnus-backend-trace): Factor out into its own function for reuse. (gnus-open-server): Use it to add more tracing. (gnus-finish-retrieve-group-infos): Add backend tracing. 2012-12-22 Philipp Haselwarter <philipp@haselwarter.org> * gnus-sync.el (gnus-sync-file-encrypt-to, gnus-sync-save): Set epa-file-encrypt-to from variable to avoid querying.
-rw-r--r--lisp/gnus/ChangeLog12
-rw-r--r--lisp/gnus/gnus-int.el25
-rw-r--r--lisp/gnus/gnus-sync.el8
3 files changed, 36 insertions, 9 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index cfdb44b9961..516ef5e4948 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,15 @@
12012-12-23 Lars Ingebrigtsen <larsi@gnus.org>
2
3 * gnus-int.el (gnus-backend-trace): Factor out into its own function
4 for reuse.
5 (gnus-open-server): Use it to add more tracing.
6 (gnus-finish-retrieve-group-infos): Add backend tracing.
7
82012-12-22 Philipp Haselwarter <philipp@haselwarter.org>
9
10 * gnus-sync.el (gnus-sync-file-encrypt-to, gnus-sync-save): Set
11 epa-file-encrypt-to from variable to avoid querying.
12
12012-12-14 Akinori MUSHA <knu@iDaemons.org> (tiny change) 132012-12-14 Akinori MUSHA <knu@iDaemons.org> (tiny change)
2 14
3 * sieve-mode.el (sieve-font-lock-keywords): 15 * sieve-mode.el (sieve-font-lock-keywords):
diff --git a/lisp/gnus/gnus-int.el b/lisp/gnus/gnus-int.el
index bc3ba187dd4..b69229965a7 100644
--- a/lisp/gnus/gnus-int.el
+++ b/lisp/gnus/gnus-int.el
@@ -249,16 +249,18 @@ If it is down, start it up (again)."
249 249
250(defvar gnus-backend-trace nil) 250(defvar gnus-backend-trace nil)
251 251
252(defun gnus-backend-trace (type form)
253 (with-current-buffer (get-buffer-create "*gnus trace*")
254 (buffer-disable-undo)
255 (goto-char (point-max))
256 (insert (format-time-string "%H:%M:%S")
257 (format " %s %S\n" type form))))
258
252(defun gnus-open-server (gnus-command-method) 259(defun gnus-open-server (gnus-command-method)
253 "Open a connection to GNUS-COMMAND-METHOD." 260 "Open a connection to GNUS-COMMAND-METHOD."
254 (when (stringp gnus-command-method) 261 (when (stringp gnus-command-method)
255 (setq gnus-command-method (gnus-server-to-method gnus-command-method))) 262 (setq gnus-command-method (gnus-server-to-method gnus-command-method)))
256 (when gnus-backend-trace 263 (gnus-backend-trace :opening gnus-command-method)
257 (with-current-buffer (get-buffer-create "*gnus trace*")
258 (buffer-disable-undo)
259 (goto-char (point-max))
260 (insert (format-time-string "%H:%M:%S")
261 (format " %S\n" gnus-command-method))))
262 (let ((elem (assoc gnus-command-method gnus-opened-servers)) 264 (let ((elem (assoc gnus-command-method gnus-opened-servers))
263 (server (gnus-method-to-server-name gnus-command-method))) 265 (server (gnus-method-to-server-name gnus-command-method)))
264 ;; If this method was previously denied, we just return nil. 266 ;; If this method was previously denied, we just return nil.
@@ -333,6 +335,7 @@ If it is down, start it up (again)."
333 (save-excursion 335 (save-excursion
334 (gnus-agent-possibly-synchronize-flags-server 336 (gnus-agent-possibly-synchronize-flags-server
335 gnus-command-method))) 337 gnus-command-method)))
338 (gnus-backend-trace :opened gnus-command-method)
336 result))))) 339 result)))))
337 340
338(defun gnus-close-server (gnus-command-method) 341(defun gnus-close-server (gnus-command-method)
@@ -353,9 +356,13 @@ If it is down, start it up (again)."
353 "Read and update infos from GNUS-COMMAND-METHOD." 356 "Read and update infos from GNUS-COMMAND-METHOD."
354 (when (stringp gnus-command-method) 357 (when (stringp gnus-command-method)
355 (setq gnus-command-method (gnus-server-to-method gnus-command-method))) 358 (setq gnus-command-method (gnus-server-to-method gnus-command-method)))
356 (funcall (gnus-get-function gnus-command-method 'finish-retrieve-group-infos) 359 (gnus-backend-trace :finishing gnus-command-method)
357 (nth 1 gnus-command-method) 360 (prog1
358 infos data)) 361 (funcall (gnus-get-function gnus-command-method
362 'finish-retrieve-group-infos)
363 (nth 1 gnus-command-method)
364 infos data)
365 (gnus-backend-trace :finished gnus-command-method)))
359 366
360(defun gnus-retrieve-group-data-early (gnus-command-method infos) 367(defun gnus-retrieve-group-data-early (gnus-command-method infos)
361 "Start early async retrieval of data from GNUS-COMMAND-METHOD." 368 "Start early async retrieval of data from GNUS-COMMAND-METHOD."
diff --git a/lisp/gnus/gnus-sync.el b/lisp/gnus/gnus-sync.el
index 0ec9fedffe3..6776f9ccfc9 100644
--- a/lisp/gnus/gnus-sync.el
+++ b/lisp/gnus/gnus-sync.el
@@ -138,6 +138,11 @@ and `gnus-topic-alist'. Also see `gnus-variable-list'."
138(defvar gnus-sync-newsrc-loader nil 138(defvar gnus-sync-newsrc-loader nil
139 "Carrier for newsrc data") 139 "Carrier for newsrc data")
140 140
141(defcustom gnus-sync-file-encrypt-to nil
142 "If non-nil, `epa-file-encrypt-to' is set from this for encrypting the Sync
143 file."
144 :group 'gnus-sync)
145
141(defcustom gnus-sync-lesync-name (system-name) 146(defcustom gnus-sync-lesync-name (system-name)
142 "The LeSync name for this machine." 147 "The LeSync name for this machine."
143 :group 'gnus-sync 148 :group 'gnus-sync
@@ -762,6 +767,9 @@ With a prefix, FORCE is set and all groups will be saved."
762 (progn 767 (progn
763 (let ((coding-system-for-write gnus-ding-file-coding-system) 768 (let ((coding-system-for-write gnus-ding-file-coding-system)
764 (standard-output (current-buffer))) 769 (standard-output (current-buffer)))
770 (when gnus-sync-file-encrypt-to
771 (set (make-local-variable 'epa-file-encrypt-to)
772 gnus-sync-file-encrypt-to))
765 (princ (format ";; -*- mode:emacs-lisp; coding: %s; -*-\n" 773 (princ (format ";; -*- mode:emacs-lisp; coding: %s; -*-\n"
766 gnus-ding-file-coding-system)) 774 gnus-ding-file-coding-system))
767 (princ ";; Gnus sync data v. 0.0.1\n") 775 (princ ";; Gnus sync data v. 0.0.1\n")