From 1ebd135f4586c0f4445d12690a8bf94e8f7683a2 Mon Sep 17 00:00:00 2001 From: Daniel Mendler Date: Fri, 15 Mar 2024 19:06:37 +0100 Subject: [PATCH] window-preserve-size is available since Emacs 25 * exwm-workspace.el (exwm-workspace--on-minibuffer-setup): Remove fboundp check. --- exwm-workspace.el | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/exwm-workspace.el b/exwm-workspace.el index 89be697..9337dc0 100644 --- a/exwm-workspace.el +++ b/exwm-workspace.el @@ -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."