From: Alan Mackenzie <acm@muc.de>
To: Juri Linkov <juri@linkov.net>
Cc: 38049@debbugs.gnu.org
Subject: bug#38049: C mode fontification broken with reposition-window
Date: 3 Nov 2019 21:27:06 -0000 [thread overview]
Message-ID: <20191103212706.76964.qmail@mail.muc.de> (raw)
In-Reply-To: <mailman.552.1572813126.13325.bug-gnu-emacs@gnu.org>
In article <mailman.552.1572813126.13325.bug-gnu-emacs@gnu.org> you wrote:
> Version: 27.0.50
> This is a reproducible test case:
> 0. emacs -Q
> 1. C-x C-f emacs/lib-src/emacsclient.c
> 2. M-: (progn (search-forward "create-frame" nil t) (reposition-window))
> Then half screen displays unfontified lines.
Yes. This is an interesting bug.
The unfontified area seems to be one jit-lock chunk immediately below
the line containing "create-frame".
> Fontification doesn't fail in other modes, only in C mode.
> This has something to do with interaction between c-font-lock
> and buffer navigation in reposition-window.
reposition-window, as far as I've been able to make out so far, seems to
assume that point starts in the current visible window. That is not the
case here, where window-start is still at BOB, but point is at line 116.
I'll look at this in more detail when it's not so late.
--
Alan Mackenzie (Nuremberg, Germany).
next prev parent reply other threads:[~2019-11-03 21:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-03 20:28 bug#38049: C mode fontification broken with reposition-window Juri Linkov
[not found] ` <mailman.552.1572813126.13325.bug-gnu-emacs@gnu.org>
2019-11-03 21:27 ` Alan Mackenzie [this message]
2019-11-05 21:07 ` Alan Mackenzie
[not found] ` <20191105210737.GA6303@ACM>
2019-11-05 22:10 ` Juri Linkov
2019-11-06 17:13 ` Eli Zaretskii
2019-11-06 20:56 ` Alan Mackenzie
2019-11-09 14:45 ` Alan Mackenzie
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=20191103212706.76964.qmail@mail.muc.de \
--to=acm@muc.de \
--cc=38049@debbugs.gnu.org \
--cc=juri@linkov.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).