mirror of
https://github.com/emacs-exwm/exwm.git
synced 2024-11-27 06:48:00 +01:00
window-preserve-size is available since Emacs 25
* exwm-workspace.el (exwm-workspace--on-minibuffer-setup): Remove fboundp check.
This commit is contained in:
parent
182102767e
commit
1ebd135f45
1 changed files with 4 additions and 6 deletions
|
@ -1257,12 +1257,10 @@ ALIST is an action alist, as accepted by function `display-buffer'."
|
|||
;; fail to retrieve the correct window. It's likely there are
|
||||
;; other related issues.
|
||||
;; This is not required by Emacs 24.
|
||||
(when (fboundp 'window-preserve-size)
|
||||
(let ((window (get-buffer-window "*Completions*"
|
||||
exwm-workspace--current)))
|
||||
(when window
|
||||
(fit-window-to-buffer window)
|
||||
(window-preserve-size window)))))
|
||||
(let ((window (get-buffer-window "*Completions*" exwm-workspace--current)))
|
||||
(when window
|
||||
(fit-window-to-buffer window)
|
||||
(window-preserve-size window))))
|
||||
|
||||
(defun exwm-workspace--on-minibuffer-exit ()
|
||||
"Run in `minibuffer-exit-hook' to hide the minibuffer container."
|
||||
|
|
Loading…
Reference in a new issue