From: Eli Zaretskii <eliz@gnu.org>
To: Clemens <clemera@posteo.net>
Cc: 46718@debbugs.gnu.org
Subject: bug#46718: 27.1; truncate-lines in minibuffer prevents auto resize
Date: Wed, 24 Feb 2021 17:49:22 +0200 [thread overview]
Message-ID: <83im6htqil.fsf@gnu.org> (raw)
In-Reply-To: <bdd5fa7b-cdf6-6365-72e0-cbaaa91a4357@posteo.net> (message from Clemens on Tue, 23 Feb 2021 14:44:20 +0100)
> From: Clemens <clemera@posteo.net>
> Date: Tue, 23 Feb 2021 14:44:20 +0100
>
> ;; 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.
This is (was) not supported. When truncate-lines is non-nil in the
minibuffer, Emacs assumed the minibuffer text is just one line. And I
can understand that assumption: frankly, setting truncate-lines with
multi-line text in the minibuffer makes little sense, because it means
some of the text will not be shown, something that contradicts the
very purpose of resizing the mini-window. Why would someone do
something weird like that?
Anyway, I've made this work as expected on the master branch now.
next prev parent reply other threads:[~2021-02-24 15:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-23 13:44 bug#46718: 27.1; truncate-lines in minibuffer prevents auto resize Clemens
2021-02-24 15:49 ` Eli Zaretskii [this message]
2021-02-24 16:05 ` Clemens
2021-02-24 16:34 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83im6htqil.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=46718@debbugs.gnu.org \
--cc=clemera@posteo.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).