GNU bug report logs -
#67715
28.2; Minibuffer content is sometimes unexpectedly partially hidden
Previous Next
Reported by: Markus Triska <triska <at> metalevel.at>
Date: Fri, 8 Dec 2023 19:05:02 UTC
Severity: normal
Tags: wontfix
Found in version 28.2
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #25 received at 67715 <at> debbugs.gnu.org (full text, mbox):
> From: Markus Triska <triska <at> metalevel.at>
> Cc: 67715 <at> debbugs.gnu.org
> Date: Sat, 09 Dec 2023 10:04:18 +0100
>
> (let ((f (selected-frame)))
> (with-selected-frame (make-frame)
> (switch-to-buffer (get-buffer-create "other")))
> (select-frame-set-input-focus f)
> (let ((win (get-buffer-window "other" t)))
> (when win
> (with-selected-window win
> (recenter 0)))
> (let ((w (selected-window)))
> (unwind-protect
> (progn
> (select-window (minibuffer-window))
> (setq-local face-remapping-alist `((default :height 2.0)))
> (fit-window-to-buffer)
> (insert "hello")
> (read-key))
> (erase-buffer))
> (select-window w))))
This seems to work:
(let ((f (selected-frame)))
(with-selected-frame (make-frame)
(switch-to-buffer (get-buffer-create "other")))
(select-frame-set-input-focus f)
(let ((win (get-buffer-window "other" t)))
(when win
(with-selected-window win
(recenter 0)))
(let ((w (selected-window)))
(unwind-protect
(progn
(select-window (minibuffer-window))
(fit-window-to-buffer)
(read-key (propertize "hello" 'face '(:height 2.0))))
(erase-buffer))
(select-window w))))
As well as this (which is a minor variant of your original recipe);
(let ((f (selected-frame)))
(with-selected-frame (make-frame)
(switch-to-buffer (get-buffer-create "other")))
(select-frame-set-input-focus f)
(let ((win (get-buffer-window "other" t)))
(when win
(with-selected-window win
(recenter 0)))
(with-selected-window (minibuffer-window)
(unwind-protect
(read-key (propertize "hello" 'face '(:height 2.0)))
(erase-buffer)))))
This bug report was last modified 158 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.