aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas2022-09-26 17:41:11 +0200
committerStefan Kangas2022-09-26 17:41:39 +0200
commit2ec061bf9c8a2caf8eaf57dba001c130d3a3ecd6 (patch)
tree4a412b6713c3ebe8ee7492e7f7810d970b6d8a18
parentb0289e7f6ddebdd2bdefa63e2b4afcb29733b3b7 (diff)
downloademacs-2ec061bf9c8a2caf8eaf57dba001c130d3a3ecd6.tar.gz
emacs-2ec061bf9c8a2caf8eaf57dba001c130d3a3ecd6.zip
Display a message when wallpaper was set
* lisp/image/wallpaper.el (wallpaper-default-set-function): Display a message when the wallpaper was successfully set.
-rw-r--r--lisp/image/wallpaper.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/image/wallpaper.el b/lisp/image/wallpaper.el
index 31cc2b4eece..19dc20d90b0 100644
--- a/lisp/image/wallpaper.el
+++ b/lisp/image/wallpaper.el
@@ -439,8 +439,10 @@ This is the default function for `wallpaper-set-function'."
439 (setf (process-sentinel process) 439 (setf (process-sentinel process)
440 (lambda (process status) 440 (lambda (process status)
441 (unwind-protect 441 (unwind-protect
442 (unless (and (eq (process-status process) 'exit) 442 (if (and (eq (process-status process) 'exit)
443 (zerop (process-exit-status process))) 443 (zerop (process-exit-status process)))
444 (message "Desktop wallpaper changed to %s"
445 (abbreviate-file-name file))
444 (message "command \"%s %s\": %S" 446 (message "command \"%s %s\": %S"
445 (string-join (process-command process) " ") 447 (string-join (process-command process) " ")
446 (string-replace "\n" "" status) 448 (string-replace "\n" "" status)