emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master 52e17e5: Suppress warning about unix-sync in nnmail


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master 52e17e5: Suppress warning about unix-sync in nnmaildir.el
Date: Tue, 25 Jun 2019 17:25:28 -0400 (EDT)

branch: master
commit 52e17e53b7dbafb4877d98d99188c335db6a3b5b
Author: Arash Esbati <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    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 ac125c9..3becee3 100644
--- a/lisp/gnus/nnmaildir.el
+++ b/lisp/gnus/nnmaildir.el
@@ -1396,7 +1396,8 @@ This variable is set by `nnmaildir-request-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)))
 



reply via email to

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