From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: master 7362554: Widen around c-font-lock-fontify-region. This fixes bug #38049. Date: Thu, 14 Nov 2019 14:02:54 +0200 Message-ID: <837e427jip.fsf@gnu.org> References: <20191109144026.20810.76129@vcs0.savannah.gnu.org> <20191109144027.DDC3720927@vcs0.savannah.gnu.org> <38328d99-23c8-7ba7-a23d-e70ac0aab67a@yandex.ru> <20191111203445.GA5135@ACM> <7497e71d-bab6-fa04-bbc4-f52fadeda16d@yandex.ru> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="158657"; mail-complaints-to="usenet@blaine.gmane.org" Cc: acm@muc.de, emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 14 13:03:27 2019 Return-path: Envelope-to: ged-emacs-devel@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 1iVDqQ-000f7d-IB for ged-emacs-devel@m.gmane.org; Thu, 14 Nov 2019 13:03:26 +0100 Original-Received: from localhost ([::1]:56592 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iVDqP-0001HE-1G for ged-emacs-devel@m.gmane.org; Thu, 14 Nov 2019 07:03:25 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41377) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iVDqC-0001FH-9Y for emacs-devel@gnu.org; Thu, 14 Nov 2019 07:03:14 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:49126) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iVDqB-0004Hn-R3; Thu, 14 Nov 2019 07:03:11 -0500 Original-Received: from [176.228.60.248] (port=4827 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iVDqB-0006z1-7D; Thu, 14 Nov 2019 07:03:11 -0500 In-reply-to: <7497e71d-bab6-fa04-bbc4-f52fadeda16d@yandex.ru> (message from Dmitry Gutov on Tue, 12 Nov 2019 15:36:08 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:242147 Archived-At: > From: Dmitry Gutov > Date: Tue, 12 Nov 2019 15:36:08 +0200 > Cc: emacs-devel@gnu.org > > > In all of Emacs, there's just one use of font-lock-dont-widen, in > > rmail.el, and that is almost certainly for a different reason than your > > use of it (which is, I believe, having several major modes in a single > > buffer). > > Does RMail use it for quoted pirces of code? If so, it would be similar. No, Rmail uses that variable because each email message it displays is just a small portion of a large mbox file, and Rmail narrows the buffer to exclude all the other email messages. So it wants font-lock to work only on the narrowed portion of the buffer, as that presents a single logical unit -- one email message -- to be fontified. So it has nothing to do with fragments of code embedded in text.