GNU bug report logs - #47860
28.0.50; Mini buffer resize when lines are truncated regression

Previous Next

Package: emacs;

Reported by: Aaron Jensen <aaronjensen <at> gmail.com>

Date: Sun, 18 Apr 2021 01:33:02 UTC

Severity: normal

Tags: fixed

Found in version 28.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: aaronjensen <at> gmail.com
Cc: 47860 <at> debbugs.gnu.org, gregory <at> heytings.org
Subject: bug#47860: 28.0.50; Mini buffer resize when lines are truncated regression
Date: Mon, 19 Apr 2021 20:40:40 +0300
> Date: Mon, 19 Apr 2021 20:15:15 +0300
> From: Eli Zaretskii <eliz <at> gnu.org>
> Cc: 47860 <at> debbugs.gnu.org, gregory <at> heytings.org
> 
> So the root cause is in window-text-pixel-size when this crazy mix of
> overlays is used.  Will take a look when I have time.

And here's a much simpler recipe:

  (progn
    (with-current-buffer (get-buffer-create "foo")
      (insert "test: ")
      (overlay-put (make-overlay (point-max) (point-max))
		   'after-string "
  \naaa\nbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\ncccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc")
      (setq-local truncate-lines t))
    (switch-to-buffer "foo")
    (window-text-pixel-size))

The result indicates that the buffer has only 4 screen lines, whereas
it actually has 5.




This bug report was last modified 4 years and 28 days ago.

Previous Next


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