>From cc275331b4943e03d0c1c0e5264ab09974df7308 Mon Sep 17 00:00:00 2001 From: Arash Esbati Date: Tue, 25 Jun 2019 23:05:17 +0200 Subject: [PATCH] Suppress warning about unix-sync in nnmaildir.el * nnmaildir.el (nnmaildir-request-replace-article): Check if the function `unix-sync' is bound before running it. --- lisp/gnus/nnmaildir.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/gnus/nnmaildir.el b/lisp/gnus/nnmaildir.el index ac125c905a..3becee3511 100644 --- a/lisp/gnus/nnmaildir.el +++ b/lisp/gnus/nnmaildir.el @@ -1396,7 +1396,8 @@ nnmaildir-request-replace-article (with-current-buffer buffer (write-region (point-min) (point-max) tmpfile nil 'no-message nil 'excl)) - (unix-sync) ;; no fsync :( + (when (fboundp 'unix-sync) + (unix-sync)) ;; no fsync :( (rename-file tmpfile (concat (nnmaildir--cur dir) file suffix) 'replace) t))) -- 2.22.0