emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] trunk r113332: Merge changes made in Gnus master


From: Katsumi Yamaoka
Subject: [Emacs-diffs] trunk r113332: Merge changes made in Gnus master
Date: Mon, 08 Jul 2013 23:51:32 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 113332
revision-id: address@hidden
parent: address@hidden
author: Gnus developers <address@hidden>
committer: Katsumi Yamaoka <address@hidden>
branch nick: trunk
timestamp: Mon 2013-07-08 23:51:26 +0000
message:
  Merge changes made in Gnus master
modified:
  doc/misc/ChangeLog             changelog-20091113204419-o5vbwnq5f7feedwu-6331
  doc/misc/gnus.texi             gnus.texi-20091113204419-o5vbwnq5f7feedwu-6305
  lisp/gnus/ChangeLog            changelog-20091113204419-o5vbwnq5f7feedwu-1433
  lisp/gnus/gnus-registry.el     
gnusregistry.el-20091113204419-o5vbwnq5f7feedwu-3247
  lisp/gnus/nnml.el              nnml.el-20091113204419-o5vbwnq5f7feedwu-1159
=== modified file 'doc/misc/ChangeLog'
--- a/doc/misc/ChangeLog        2013-07-06 23:40:56 +0000
+++ b/doc/misc/ChangeLog        2013-07-08 23:51:26 +0000
@@ -1,3 +1,9 @@
+2013-07-08  Tassilo Horn  <address@hidden>
+
+       * gnus.texi (lines): Correct description of
+       `gnus-registry-track-extra's default value.  Mention
+       `gnus-registry-remove-extra-data'.
+
 2013-07-06  Lars Ingebrigtsen  <address@hidden>
 
        * gnus.texi (Group Parameters): Mention regexp

=== modified file 'doc/misc/gnus.texi'
--- a/doc/misc/gnus.texi        2013-07-06 23:40:56 +0000
+++ b/doc/misc/gnus.texi        2013-07-08 23:51:26 +0000
@@ -26006,9 +26006,13 @@
 
 @defvar gnus-registry-track-extra
 This is a list of symbols, so it's best to change it from the
-Customize interface.  By default it's @code{(subject sender)}, which
-may work for you.  It can be annoying if your mail flow is large and
-people don't stick to the same groups.
+Customize interface.  By default it's @code{(subject sender recipient)},
+which may work for you.  It can be annoying if your mail flow is large
+and people don't stick to the same groups.
+
+When you decide to stop tracking any of those extra data, you can use
+the command @code{gnus-registry-remove-extra-data} to purge it from
+the existing registry entries.
 @end defvar
 
 @defvar gnus-registry-split-strategy

=== modified file 'lisp/gnus/ChangeLog'
--- a/lisp/gnus/ChangeLog       2013-07-06 23:40:56 +0000
+++ b/lisp/gnus/ChangeLog       2013-07-08 23:51:26 +0000
@@ -1,3 +1,12 @@
+2013-07-08  Lars Magne Ingebrigtsen  <address@hidden>
+
+       * nnml.el (nnml-request-compact-group): Don't bug out if we can't
+       delete files (bug#13481).
+
+2013-07-08  Tassilo Horn  <address@hidden>
+
+       * gnus-registry.el (gnus-registry-remove-extra-data): New function.
+
 2013-07-06  Lars Ingebrigtsen  <address@hidden>
 
        * gnus-art.el (gnus-block-private-groups): Allow `global' methods to

=== modified file 'lisp/gnus/gnus-registry.el'
--- a/lisp/gnus/gnus-registry.el        2013-02-24 22:44:49 +0000
+++ b/lisp/gnus/gnus-registry.el        2013-07-08 23:51:26 +0000
@@ -1186,6 +1186,29 @@
                   (gnus-select-group-with-message-id group message-id) t)
               (throw 'found t))))))))
 
+(defun gnus-registry-remove-extra-data (extra)
+  "Remove tracked EXTRA data from the gnus registry.
+EXTRA is a list of symbols.  Valid symbols are those contained in
+the docs of `gnus-registry-track-extra'.  This command is useful
+when you stop tracking some extra data and now want to purge it
+from your existing entries."
+  (interactive (list (mapcar 'intern
+                            (completing-read-multiple
+                             "Extra data: "
+                             '("subject" "sender" "recipient")))))
+  (when extra
+    (let ((db gnus-registry-db))
+      (registry-reindex db)
+      (loop for k being the hash-keys of (oref db :data)
+           using (hash-value v)
+           do (let ((newv (delq nil (mapcar #'(lambda (entry)
+                                                (unless (member (car entry) 
extra)
+                                                  entry))
+                                            v))))
+                (registry-delete db (list k) nil)
+                (gnus-registry-insert db k newv)))
+      (registry-reindex db))))
+
 ;; TODO: a few things
 
 (provide 'gnus-registry)

=== modified file 'lisp/gnus/nnml.el'
--- a/lisp/gnus/nnml.el 2013-01-01 09:11:05 +0000
+++ b/lisp/gnus/nnml.el 2013-07-08 23:51:26 +0000
@@ -1094,7 +1094,10 @@
                       (concat group ":" new-number-string)))
                    ;; Save to the new file:
                    (nnmail-write-region (point-min) (point-max) newfile))
-                 (funcall nnmail-delete-file-function oldfile))
+                 (condition-case ()
+                     (funcall nnmail-delete-file-function oldfile)
+                   (file-error
+                    (message "Couldn't delete %s" oldfile))))
                ;; 2/ Update all marks for this article:
                ;; #### NOTE: it is possible that the new article number
                ;; #### already belongs to a range, whereas the corresponding


reply via email to

[Prev in Thread] Current Thread [Next in Thread]