From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#56637: 28.1.90; [FR] Allow a way around font-lock-mode being unconditionally disabled in " *hidden*" buffers Date: Sat, 23 Jul 2022 11:55:05 +0300 Message-ID: <83mtd0i4ye.fsf@gnu.org> References: <874jzdhh5m.fsf@localhost> <871qug4dyk.fsf@localhost> <878rok2rjg.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2879"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56637@debbugs.gnu.org, monnier@iro.umontreal.ca, yantar92@gmail.com To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 23 11:07:27 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oFB6d-0000X0-Ci for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Jul 2022 11:07:27 +0200 Original-Received: from localhost ([::1]:45574 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFB6b-0006Cg-Rg for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Jul 2022 05:07:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46430) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFAvb-0002Vx-1j for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 04:56:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53668) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oFAvZ-0002jM-Rh for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 04:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oFAvZ-00022t-Oe for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 04:56:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Jul 2022 08:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56637 X-GNU-PR-Package: emacs Original-Received: via spool by 56637-submit@debbugs.gnu.org id=B56637.16585665287804 (code B ref 56637); Sat, 23 Jul 2022 08:56:01 +0000 Original-Received: (at 56637) by debbugs.gnu.org; 23 Jul 2022 08:55:28 +0000 Original-Received: from localhost ([127.0.0.1]:43412 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFAv1-00021n-Nr for submit@debbugs.gnu.org; Sat, 23 Jul 2022 04:55:28 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33298) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFAun-00021D-Bm for 56637@debbugs.gnu.org; Sat, 23 Jul 2022 04:55:26 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36012) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFAui-0001ET-2q; Sat, 23 Jul 2022 04:55:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=BfPpQLPQPvd/4xeXgZGOjyk8hS05esENKwbGsEWWRH4=; b=IybuHxSiJ0YP tRnlNLCUQTtUj1CDc2FmJqQvQYTmnqPq85QH0WYivHueyLrTSdwrcp3tjP/aspZPLhxtmQtr/V9fz TWEsnc5RwspjhW16CEKfTqTHxTZ+fsHTsxSjfz31qXb3r3APOc/ZImzx/Il1VyLhWW02HgNUKbq3L wxEFTRc/Apf/BrxTC9c6q82qvZYWec7S70wQuFIHtxeQSm+E0MSrH2a5OugUfb7zDfpQm0f47ZnFM z5KlQ+fawvDeWHjT5z/JlyCIEobWRay3JQdTkubWeTP/tESlPHpVOxxrv1RFn/mulOBQGmK59XkXL Y5itsrkBsPN27o8DdMLcSA==; Original-Received: from [87.69.77.57] (port=4207 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFAuh-0002Yc-IU; Sat, 23 Jul 2022 04:55:07 -0400 In-Reply-To: <878rok2rjg.fsf@gnus.org> (message from Lars Ingebrigtsen on Sat, 23 Jul 2022 09:53:55 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:237718 Archived-At: > Cc: 56637@debbugs.gnu.org, Ihor Radchenko > From: Lars Ingebrigtsen > Date: Sat, 23 Jul 2022 09:53:55 +0200 > > Stefan Monnier writes: > > >> Sorry, it is a typo. I did mean "the fontification *is* using > >> (font-lock-ensure)". > > > > Ah, good, thanks. > > > >> We do use `font-lock-ensure', but it does not always produce the same > >> results with/without font-lock-mode enabled. > > > > I'm not completely surprised, because I remember when writing > > `font-lock-ensure` that there are many corner cases some of which seem > > very difficult to fix without actually enabling `font-lock-mode`, but we > > should still strive to be "as close as possible", so ... do you have > > a bug report with some concrete cases we could try to fix? > > Would it make sense to make `font-lock-ensure' try harder here, and > (temporarily) force font-lock mode on (even in temporary buffers) if it > isn't already? That could be a good alternative, yes. We could even add a new optional argument for that, if it makes sense to allow controlling this behavior.