summaryrefslogtreecommitdiff
path: root/lisp/gnus/nnmaildir.el
diff options
context:
space:
mode:
authorGnus developers <ding@gnus.org>2011-07-31 22:15:44 +0000
committerKatsumi Yamaoka <yamaoka@jpl.org>2011-07-31 22:15:44 +0000
commit93855df97b1f05c7edce377c8af9da444b3dcc66 (patch)
treec8168f77da05745fbdb613d59a728e6d1c7d5a8c /lisp/gnus/nnmaildir.el
parente8500ff4af0d6c390f66a1f6d7d22695e590a8af (diff)
downloademacs-93855df97b1f05c7edce377c8af9da444b3dcc66.tar.gz
Merge changes made in Gnus trunk.
nnmaildir.el (nnmaildir-request-accept-article): Don't call `unix-sync' unless it's defined. gnus-art.el (gnus-article-stop-animations): Use `elt' instead of `aref' for XEmacs compatibiltiy. spam.el (spam-fetch-field-fast): Rewrite slightly for clarity. gnus-sum.el (gnus-summary-refer-thread): Since lambdas aren't closures, quote the form properly (bug#9194). gnus-sum.el (gnus-summary-insert-new-articles): Clean up slightly. (gnus-summary-insert-new-articles): Protect against servers that are down.
Diffstat (limited to 'lisp/gnus/nnmaildir.el')
-rw-r--r--lisp/gnus/nnmaildir.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/gnus/nnmaildir.el b/lisp/gnus/nnmaildir.el
index 8e2cd4bdde3..bbace7c784a 100644
--- a/lisp/gnus/nnmaildir.el
+++ b/lisp/gnus/nnmaildir.el
@@ -1381,7 +1381,8 @@ by nnmaildir-request-article.")
(error
(gmm-write-region (point-min) (point-max) tmpfile nil 'no-message nil
'excl)
- (unix-sync))) ;; no fsync :(
+ (when (fboundp 'unix-sync)
+ (unix-sync)))) ;; no fsync :(
(nnheader-cancel-timer 24h)
(condition-case err
(add-name-to-file tmpfile curfile)