diff options
| author | Gnus developers | 2012-09-05 22:45:43 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2012-09-05 22:45:43 +0000 |
| commit | 067b39d4296765e83f9530eca456168f6cda95fc (patch) | |
| tree | 75523b9d24b8524d034bd47cad5a7e538ba3fbbe | |
| parent | 350a188850c4eeceab0220ba1f6fdf98f0f57e93 (diff) | |
| download | emacs-067b39d4296765e83f9530eca456168f6cda95fc.tar.gz emacs-067b39d4296765e83f9530eca456168f6cda95fc.zip | |
Merge changes made in Gnus master
2012-09-05 Magnus Henoch <magnus.henoch@gmail.com>
* nnmaildir.el (nnmaildir--article-set-flags): Fix compilation error.
2012-09-05 Martin Stjernholm <mast@lysator.liu.se>
* gnus-demon.el (gnus-demon-init): Fixed regression when IDLE is t and
TIME is set.
2012-09-05 Juri Linkov <juri@jurta.org>
* gnus-group.el (gnus-read-ephemeral-bug-group): Allow opening more
than one group at a time (bug#11961).
| -rw-r--r-- | lisp/gnus/ChangeLog | 14 | ||||
| -rw-r--r-- | lisp/gnus/gnus-demon.el | 9 | ||||
| -rw-r--r-- | lisp/gnus/gnus-group.el | 3 | ||||
| -rw-r--r-- | lisp/gnus/nnmaildir.el | 20 |
4 files changed, 32 insertions, 14 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index c6220204511..d3398aa1d8d 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,17 @@ | |||
| 1 | 2012-09-05 Magnus Henoch <magnus.henoch@gmail.com> | ||
| 2 | |||
| 3 | * nnmaildir.el (nnmaildir--article-set-flags): Fix compilation error. | ||
| 4 | |||
| 5 | 2012-09-05 Martin Stjernholm <mast@lysator.liu.se> | ||
| 6 | |||
| 7 | * gnus-demon.el (gnus-demon-init): Fixed regression when IDLE is t and | ||
| 8 | TIME is set. | ||
| 9 | |||
| 10 | 2012-09-05 Juri Linkov <juri@jurta.org> | ||
| 11 | |||
| 12 | * gnus-group.el (gnus-read-ephemeral-bug-group): Allow opening more | ||
| 13 | than one group at a time (bug#11961). | ||
| 14 | |||
| 1 | 2012-09-05 Julien Danjou <julien@danjou.info> | 15 | 2012-09-05 Julien Danjou <julien@danjou.info> |
| 2 | 16 | ||
| 3 | * gnus-srvr.el (gnus-server-open-server): Don't message on failure: | 17 | * gnus-srvr.el (gnus-server-open-server): Don't message on failure: |
diff --git a/lisp/gnus/gnus-demon.el b/lisp/gnus/gnus-demon.el index 115c5777448..671c566d09f 100644 --- a/lisp/gnus/gnus-demon.el +++ b/lisp/gnus/gnus-demon.el | |||
| @@ -144,9 +144,12 @@ marked with SPECIAL." | |||
| 144 | (* (gnus-demon-time-to-step time) gnus-demon-timestep)) | 144 | (* (gnus-demon-time-to-step time) gnus-demon-timestep)) |
| 145 | (t | 145 | (t |
| 146 | (* time gnus-demon-timestep)))) | 146 | (* time gnus-demon-timestep)))) |
| 147 | (idle (if (numberp idle) | 147 | (idle (cond ((numberp idle) |
| 148 | (* idle gnus-demon-timestep) | 148 | (* idle gnus-demon-timestep)) |
| 149 | idle)) | 149 | ((and (eq idle t) (numberp time)) |
| 150 | time) | ||
| 151 | (t | ||
| 152 | idle))) | ||
| 150 | 153 | ||
| 151 | (timer | 154 | (timer |
| 152 | (cond | 155 | (cond |
diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el index 37e4470239e..71af5792d2c 100644 --- a/lisp/gnus/gnus-group.el +++ b/lisp/gnus/gnus-group.el | |||
| @@ -2481,7 +2481,8 @@ the bug number, and browsing the URL must return mbox output." | |||
| 2481 | "/.*$" "")))) | 2481 | "/.*$" "")))) |
| 2482 | (write-region (point-min) (point-max) tmpfile) | 2482 | (write-region (point-min) (point-max) tmpfile) |
| 2483 | (gnus-group-read-ephemeral-group | 2483 | (gnus-group-read-ephemeral-group |
| 2484 | "gnus-read-ephemeral-bug" | 2484 | (format "gnus-read-ephemeral-bug:%s" |
| 2485 | (mapconcat 'number-to-string ids ",")) | ||
| 2485 | `(nndoc ,tmpfile | 2486 | `(nndoc ,tmpfile |
| 2486 | (nndoc-article-type mbox)) | 2487 | (nndoc-article-type mbox)) |
| 2487 | nil window-conf)) | 2488 | nil window-conf)) |
diff --git a/lisp/gnus/nnmaildir.el b/lisp/gnus/nnmaildir.el index caf28202f04..327649d41a1 100644 --- a/lisp/gnus/nnmaildir.el +++ b/lisp/gnus/nnmaildir.el | |||
| @@ -127,16 +127,6 @@ SUFFIX should start with \":2,\"." | |||
| 127 | (new-flags (concat (delq flag flags-as-list)))) | 127 | (new-flags (concat (delq flag flags-as-list)))) |
| 128 | (concat ":2," new-flags))) | 128 | (concat ":2," new-flags))) |
| 129 | 129 | ||
| 130 | (defun nnmaildir--article-set-flags (article new-suffix curdir) | ||
| 131 | (let* ((prefix (nnmaildir--art-prefix article)) | ||
| 132 | (suffix (nnmaildir--art-suffix article)) | ||
| 133 | (article-file (concat curdir prefix suffix)) | ||
| 134 | (new-name (concat curdir prefix new-suffix))) | ||
| 135 | (unless (file-exists-p article-file) | ||
| 136 | (error "Couldn't find article file %s" article-file)) | ||
| 137 | (rename-file article-file new-name 'replace) | ||
| 138 | (setf (nnmaildir--art-suffix article) new-suffix))) | ||
| 139 | |||
| 140 | (defvar nnmaildir-article-file-name nil | 130 | (defvar nnmaildir-article-file-name nil |
| 141 | "*The filename of the most recently requested article. This variable is set | 131 | "*The filename of the most recently requested article. This variable is set |
| 142 | by nnmaildir-request-article.") | 132 | by nnmaildir-request-article.") |
| @@ -212,6 +202,16 @@ by nnmaildir-request-article.") | |||
| 212 | (gnm nil) ;; flag: split from mail-sources? | 202 | (gnm nil) ;; flag: split from mail-sources? |
| 213 | (target-prefix nil :type string)) ;; symlink target prefix | 203 | (target-prefix nil :type string)) ;; symlink target prefix |
| 214 | 204 | ||
| 205 | (defun nnmaildir--article-set-flags (article new-suffix curdir) | ||
| 206 | (let* ((prefix (nnmaildir--art-prefix article)) | ||
| 207 | (suffix (nnmaildir--art-suffix article)) | ||
| 208 | (article-file (concat curdir prefix suffix)) | ||
| 209 | (new-name (concat curdir prefix new-suffix))) | ||
| 210 | (unless (file-exists-p article-file) | ||
| 211 | (error "Couldn't find article file %s" article-file)) | ||
| 212 | (rename-file article-file new-name 'replace) | ||
| 213 | (setf (nnmaildir--art-suffix article) new-suffix))) | ||
| 214 | |||
| 215 | (defun nnmaildir--expired-article (group article) | 215 | (defun nnmaildir--expired-article (group article) |
| 216 | (setf (nnmaildir--art-nov article) nil) | 216 | (setf (nnmaildir--art-nov article) nil) |
| 217 | (let ((flist (nnmaildir--grp-flist group)) | 217 | (let ((flist (nnmaildir--grp-flist group)) |