bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Clemens
Subject: bug#46718: 27.1; truncate-lines in minibuffer prevents auto resize
Date: Tue, 23 Feb 2021 14:44:20 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

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.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]