emacs-diffs
[Top][All Lists]
Advanced

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

master 2ec061bf9c 3/3: Display a message when wallpaper was set


From: Stefan Kangas
Subject: master 2ec061bf9c 3/3: Display a message when wallpaper was set
Date: Mon, 26 Sep 2022 11:43:09 -0400 (EDT)

branch: master
commit 2ec061bf9c8a2caf8eaf57dba001c130d3a3ecd6
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>

    Display a message when wallpaper was set
    
    * lisp/image/wallpaper.el (wallpaper-default-set-function): Display a
    message when the wallpaper was successfully set.
---
 lisp/image/wallpaper.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lisp/image/wallpaper.el b/lisp/image/wallpaper.el
index 31cc2b4eec..19dc20d90b 100644
--- a/lisp/image/wallpaper.el
+++ b/lisp/image/wallpaper.el
@@ -439,8 +439,10 @@ This is the default function for `wallpaper-set-function'."
     (setf (process-sentinel process)
           (lambda (process status)
             (unwind-protect
-                (unless (and (eq (process-status process) 'exit)
-                             (zerop (process-exit-status process)))
+                (if (and (eq (process-status process) 'exit)
+                         (zerop (process-exit-status process)))
+                    (message "Desktop wallpaper changed to %s"
+                             (abbreviate-file-name file))
                   (message "command \"%s %s\": %S"
                            (string-join (process-command process) " ")
                            (string-replace "\n" "" status)



reply via email to

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