GNU bug report logs - #46718
27.1; truncate-lines in minibuffer prevents auto resize

Previous Next

Package: emacs;

Reported by: Clemens <clemera <at> posteo.net>

Date: Tue, 23 Feb 2021 13:45:01 UTC

Severity: normal

Found in version 27.1

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: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#46718: closed (27.1; truncate-lines in minibuffer prevents
 auto resize)
Date: Wed, 24 Feb 2021 16:35:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 24 Feb 2021 18:34:33 +0200
with message-id <83ft1ltofa.fsf <at> gnu.org>
and subject line Re: bug#46718: 27.1; truncate-lines in minibuffer prevents auto resize
has caused the debbugs.gnu.org bug report #46718,
regarding 27.1; truncate-lines in minibuffer prevents auto resize
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
46718: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=46718
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Clemens <clemera <at> posteo.net>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.1; truncate-lines in minibuffer prevents auto resize
Date: Tue, 23 Feb 2021 14:44:20 +0100
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.



[Message part 3 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: Clemens <clemera <at> posteo.net>
Cc: 46718-done <at> debbugs.gnu.org
Subject: Re: bug#46718: 27.1; truncate-lines in minibuffer prevents auto resize
Date: Wed, 24 Feb 2021 18:34:33 +0200
> Cc: 46718 <at> debbugs.gnu.org
> From: Clemens <clemera <at> posteo.net>
> 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.


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

Previous Next


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