From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#38049: C mode fontification broken with reposition-window Date: 3 Nov 2019 21:27:06 -0000 Organization: muc.de e.V. Message-ID: <20191103212706.76964.qmail@mail.muc.de> References: <8736f4k8mi.fsf@mail.linkov.net> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="203963"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: tin/2.4.2-20171224 ("Lochhead") (UNIX) (FreeBSD/11.3-RELEASE-p3 (amd64)) Cc: 38049@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 03 22:28:13 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iRNPx-000qvL-CR for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Nov 2019 22:28:13 +0100 Original-Received: from localhost ([::1]:56484 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iRNPw-0005Pt-7M for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Nov 2019 16:28:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55397) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iRNPp-0005PW-CM for bug-gnu-emacs@gnu.org; Sun, 03 Nov 2019 16:28:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iRNPn-00052L-72 for bug-gnu-emacs@gnu.org; Sun, 03 Nov 2019 16:28:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54841) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iRNPl-00051o-Oz for bug-gnu-emacs@gnu.org; Sun, 03 Nov 2019 16:28:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iRNPl-0005PV-L3 for bug-gnu-emacs@gnu.org; Sun, 03 Nov 2019 16:28:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 Nov 2019 21:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38049 X-GNU-PR-Package: emacs Original-Received: via spool by 38049-submit@debbugs.gnu.org id=B38049.157281643020657 (code B ref 38049); Sun, 03 Nov 2019 21:28:01 +0000 Original-Received: (at 38049) by debbugs.gnu.org; 3 Nov 2019 21:27:10 +0000 Original-Received: from localhost ([127.0.0.1]:35371 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iRNOw-0005N6-F7 for submit@debbugs.gnu.org; Sun, 03 Nov 2019 16:27:10 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:28165 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1iRNOu-0005Mp-2I for 38049@debbugs.gnu.org; Sun, 03 Nov 2019 16:27:08 -0500 Original-Received: (qmail 76965 invoked by uid 3782); 3 Nov 2019 21:27:06 -0000 In-Reply-To: X-Newsgroups: gnu.emacs.bug X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:170903 Archived-At: In article 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).