]> git.eshelyaron.com Git - emacs.git/commit
Refactor system specific code in wallpaper.el
authorStefan Kangas <stefankangas@gmail.com>
Sun, 25 Sep 2022 15:27:20 +0000 (17:27 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Sun, 25 Sep 2022 15:28:04 +0000 (17:28 +0200)
commite0565e389670829cf8a55ecee052b947dd297460
treebacf754d2daa1260d5d02a9e44f095b2d8da2845
parentfb5a0497707b2eb1dd58e7d403172e4f3e23d234
Refactor system specific code in wallpaper.el

* lisp/image/wallpaper.el (wallpaper-set-function): New defvar
containing system specific function for setting wallpaper.
(wallpaper-default-set-function): Factor out function from...
(wallpaper-set): ...here.  Use above new defvar.

(wallpaper-default-file-name-regexp): Delete defvar.
(wallpaper-image-file-extensions): New defvar.
(wallpaper--image-file-regexp): New defun that returns a regexp to
match for completion purposes.

(wallpaper--use-default-set-function-p): New defun.
(wallpaper--find-command, wallpaper--find-command-arguments):
Do nothing on MS-Windows and Haiku.
lisp/image/wallpaper.el