GNU bug report logs -
#47860
28.0.50; Mini buffer resize when lines are truncated regression
Previous Next
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
Message #20 received at 47860 <at> debbugs.gnu.org (full text, mbox):
>
> Okay, narrowed it down:
>
> (setq hook
> (lambda nil
> (remove-hook 'minibuffer-setup-hook hook)
> (setq-local overlay
> (make-overlay (point) (point) nil
> 'front-advance 'rear-advance))
> (setq-local truncate-lines t)
> (setq minibuf-after-string
> "a\nbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\nccc")
> ;; (setq minibuf-after-string "a\nbbbbbbb\nccc")
> (move-overlay overlay (point-max) (point-max))
> (overlay-put overlay
> 'after-string minibuf-after-string)))
>
> (unwind-protect
> (progn
> (add-hook 'minibuffer-setup-hook hook t)
> (read-from-minibuffer ""))
> (remove-hook 'minibuffer-setup-hook hook))
>
Thanks. But what do you expect this code to do? I tested it, and for
Emacs 24 to 27 you see only "a" in the minibuffer. After commit
56c42bd28d, you see two lines, "a" and "bbb...".
This bug report was last modified 4 years and 27 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.