branch: elpa/projectile
commit 45a748039f4ed901e02bfe651c09e729e45d7450
Author: Bozhidar Batsov <[email protected]>
Commit: Bozhidar Batsov <[email protected]>

    Use display-warning for failed cache serialization
    
    A plain message is easy to miss in the echo area.  Use display-warning
    so the failure is visible in the *Warnings* buffer and harder to
    overlook, since a failed write means in-memory and on-disk caches
    will silently diverge.
---
 projectile.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/projectile.el b/projectile.el
index d1ef7b2ada..87c8530330 100644
--- a/projectile.el
+++ b/projectile.el
@@ -1026,7 +1026,7 @@ The saved data can be restored with 
`projectile-unserialize'."
   (if (file-writable-p filename)
     (with-temp-file filename
       (insert (let (print-length) (prin1-to-string data))))
-    (message "Projectile cache '%s' not writeable" filename)))
+    (display-warning 'projectile (format "Cache file '%s' is not writable" 
filename) :warning)))
 
 (defun projectile-unserialize (filename)
   "Read data serialized by `projectile-serialize' from FILENAME."

Reply via email to