From: Magnus Henoch Date: Wed, 5 Sep 2012 22:30:10 +0000 (+0200) Subject: * nnmaildir.el (nnmaildir--article-set-flags): Fix compilation error. X-Git-Url: http://cgit.sxemacs.org/?p=gnus;a=commitdiff_plain;h=cc50e3e15d7a8c8fe77ce93c370fb8e6b90e8de5 * nnmaildir.el (nnmaildir--article-set-flags): Fix compilation error. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c568d7993..32eebba5f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2012-09-05 Magnus Henoch + + * nnmaildir.el (nnmaildir--article-set-flags): Fix compilation error. + 2012-09-05 Martin Stjernholm * nnimap.el (nnimap-request-move-article): Decode the group name when diff --git a/lisp/nnmaildir.el b/lisp/nnmaildir.el index caf28202f..327649d41 100644 --- a/lisp/nnmaildir.el +++ b/lisp/nnmaildir.el @@ -127,16 +127,6 @@ SUFFIX should start with \":2,\"." (new-flags (concat (delq flag flags-as-list)))) (concat ":2," new-flags))) -(defun nnmaildir--article-set-flags (article new-suffix curdir) - (let* ((prefix (nnmaildir--art-prefix article)) - (suffix (nnmaildir--art-suffix article)) - (article-file (concat curdir prefix suffix)) - (new-name (concat curdir prefix new-suffix))) - (unless (file-exists-p article-file) - (error "Couldn't find article file %s" article-file)) - (rename-file article-file new-name 'replace) - (setf (nnmaildir--art-suffix article) new-suffix))) - (defvar nnmaildir-article-file-name nil "*The filename of the most recently requested article. This variable is set by nnmaildir-request-article.") @@ -212,6 +202,16 @@ by nnmaildir-request-article.") (gnm nil) ;; flag: split from mail-sources? (target-prefix nil :type string)) ;; symlink target prefix +(defun nnmaildir--article-set-flags (article new-suffix curdir) + (let* ((prefix (nnmaildir--art-prefix article)) + (suffix (nnmaildir--art-suffix article)) + (article-file (concat curdir prefix suffix)) + (new-name (concat curdir prefix new-suffix))) + (unless (file-exists-p article-file) + (error "Couldn't find article file %s" article-file)) + (rename-file article-file new-name 'replace) + (setf (nnmaildir--art-suffix article) new-suffix))) + (defun nnmaildir--expired-article (group article) (setf (nnmaildir--art-nov article) nil) (let ((flist (nnmaildir--grp-flist group))