Subject: bug#46718: closed (Re: bug#46718: 27.1; truncate-lines in minibuffer prevents auto resize)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 24 Feb 2021 16:35:02 +0000

Your bug report

#46718: 27.1; truncate-lines in minibuffer prevents auto resize

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
46718: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=46718
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#46718: 27.1; truncate-lines in minibuffer prevents auto resize
From: Eli Zaretskii <[email-masked]>
To: Clemens <[email-masked]>
Cc: [email-masked]
Date: Wed, 24 Feb 2021 18:34:33 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

> Cc: [email-masked]
> From: Clemens <[email-masked]>
> Date: Wed, 24 Feb 2021 17:05:59 +0100
> 
> I understand the assumption, makes sense when not considering such weird
> use cases as we might have in Selectrum ;) In Selectrum candidates are
> shown vertically stacked, we additionally ensure that candidates are a
> single line. It works pretty well and makes a lot of things easier to
> deal with in our UI. Thanks for adding this!

You are welcome.

Closing.

Subject: 27.1; truncate-lines in minibuffer prevents auto resize
From: Clemens <[email-masked]>
To: [email-masked]
Date: Tue, 23 Feb 2021 14:44:20 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

in Selectrum we are using an overlay after-string to display completion
candidates within the minibuffer. We also want to truncate-lines to 
prevent wrapping for long lines. When using:

;; emacs -Q
(setq resize-mini-windows t)
(minibuffer-with-setup-hook
     (lambda ()
       (setq-local truncate-lines t)
       (let ((ov (make-overlay (point-max) (point-max)))
	    (minibuf-after-string " \nOne\nTwo\nThree"))
	(put-text-property 0 1 'cursor t minibuf-after-string)
	(overlay-put ov 'after-string minibuf-after-string)))
   (read-string ":"))

the mini window will not resize but when commenting out the setting for
truncate-lines it resizes appropriately.