about summary refs log tree commit diff
path: root/exwm-workspace.el
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2024-03-15T18·06+0100
committerDaniel Mendler <mail@daniel-mendler.de>2024-03-15T18·07+0100
commit1ebd135f4586c0f4445d12690a8bf94e8f7683a2 (patch)
tree2434167da8a9ac8104d58619d691bfa7137bea39 /exwm-workspace.el
parent182102767e578c4c9556c3fc30135ec8ac7b8471 (diff)
window-preserve-size is available since Emacs 25
* exwm-workspace.el (exwm-workspace--on-minibuffer-setup): Remove fboundp check.
Diffstat (limited to 'exwm-workspace.el')
-rw-r--r--exwm-workspace.el10
1 files changed, 4 insertions, 6 deletions
diff --git a/exwm-workspace.el b/exwm-workspace.el
index 89be6971598c..9337dc08ab8e 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."