GNU bug report logs - #78418
31.0.50; Change in fit-frame-to-buffer doesn't work with transient-posframe

Previous Next

Package: emacs;

Reported by: Gerd Möllmann <gerd.moellmann <at> gmail.com>

Date: Wed, 14 May 2025 07:22:01 UTC

Severity: normal

Found in version 31.0.50

Full log


View this message in rfc822 format

From: Gerd Möllmann <gerd.moellmann <at> gmail.com>
To: martin rudalics <rudalics <at> gmx.at>
Cc: yhaoxie <at> gmail.com, 78418 <at> debbugs.gnu.org
Subject: bug#78418: 31.0.50; Change in fit-frame-to-buffer doesn't work with transient-posframe
Date: Wed, 14 May 2025 10:26:50 +0200
martin rudalics <rudalics <at> gmx.at> writes:

>> Added Martin and the author of transient-posframe in CC.
>
> In this piece of code
>
> 	(setq text-minus-body-height
> 	      (+ text-minus-body-height
> 		 (- char-height
> 		    (% text-minus-body-height char-height)))))
>
> what are the values of 'text-minus-body-height' and 'char-height' when
> the problem happens?
>
> martin

text-minus-body-height 0, char-height 1

with

modified   lisp/window.el
@@ -10157,6 +10157,8 @@ fit-frame-to-buffer-1
 	      (+ text-minus-body-width
 		 (- char-width
 		    (% text-minus-body-width char-width))))
+        (message "text-minus-body-height %S, char-height %S"
+                 text-minus-body-height char-height)
 	(setq text-minus-body-height
 	      (+ text-minus-body-height
 		 (- char-height

in an Emacs on tty.




This bug report was last modified 84 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.