From: martin rudalics <rudalics@gmx.at>
To: awrhygty@outlook.com, 53216@debbugs.gnu.org
Subject: bug#53216: 27.2; last line may be hidden in multi-line message
Date: Thu, 13 Jan 2022 10:09:44 +0100 [thread overview]
Message-ID: <57aa992d-d2c4-ecf5-f634-bac41cfa447b@gmx.at> (raw)
In-Reply-To: <TYZPR01MB392015B48344328F5876F3ECC3529@TYZPR01MB3920.apcprd01.prod.exchangelabs.com>
[-- Attachment #1: Type: text/plain, Size: 648 bytes --]
> Evaluate the form below and type 't', multi-line message is shown.
> But I only see line '9' and line '10'.
> The last line '11' is not shown.
>
> (let ((buf (generate-new-buffer "tmp"))
> (map (make-sparse-keymap))
> (func (lambda ()
> (interactive)
> (message (propertize "1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11"
> 'face '(:height 5.0))))))
> (switch-to-buffer buf)
> (define-key map "t" func)
> (use-local-map map))
The attached patch seems to fix this here but
'redisplay-adhoc-scroll-in-resize-mini-windows' is terra incognita for
me.
martin
[-- Attachment #2: xdisp.c.diff --]
[-- Type: text/x-patch, Size: 579 bytes --]
@@ -12295,7 +12299,7 @@ resize_mini_window (struct window *w, bool exact_p)
don't force w->start to be at the beginning of a screen
line, important parts of the stuff in the mini-window,
such as user prompt, will be hidden from view. */
- move_it_by_lines (&it, 0);
+ move_it_by_lines (&it, last_height > 0 ? 1 : 0);
start = it.current.pos;
/* Prevent redisplay_window from recentering, and thus from
overriding the window-start point we computed here. */
prev parent reply other threads:[~2022-01-13 9:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-12 17:06 bug#53216: 27.2; last line may be hidden in multi-line message awrhygty
2022-01-12 19:24 ` Eli Zaretskii
2022-01-13 9:09 ` martin rudalics [this message]
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=57aa992d-d2c4-ecf5-f634-bac41cfa447b@gmx.at \
--to=rudalics@gmx.at \
--cc=53216@debbugs.gnu.org \
--cc=awrhygty@outlook.com \
/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).