mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-29 07:58:28 +00:00
Prompt for wallpaper width/height only when needed
* lisp/image/wallpaper.el (wallpaper--format-arg): Don't prompt for width and height unless the values are actually used.
This commit is contained in:
parent
5281946fbf
commit
b71241742c
@ -405,14 +405,16 @@ FILE is the image file name."
|
||||
(?F . ,(mapconcat #'url-hexify-string
|
||||
(file-name-split file)
|
||||
"/"))
|
||||
(?h . ,(wallpaper--get-height-or-width
|
||||
"height"
|
||||
#'display-pixel-height
|
||||
wallpaper-default-height))
|
||||
(?w . ,(wallpaper--get-height-or-width
|
||||
"width"
|
||||
#'display-pixel-width
|
||||
wallpaper-default-width))
|
||||
(?h . ,(lambda ()
|
||||
(wallpaper--get-height-or-width
|
||||
"height"
|
||||
#'display-pixel-height
|
||||
wallpaper-default-height)))
|
||||
(?w . ,(lambda ()
|
||||
(wallpaper--get-height-or-width
|
||||
"width"
|
||||
#'display-pixel-width
|
||||
wallpaper-default-width)))
|
||||
;; screen number
|
||||
(?S . ,(let ((display (frame-parameter (selected-frame) 'display)))
|
||||
(if (and display
|
||||
|
Loading…
Reference in New Issue
Block a user