From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen 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 09:53:55 +0200 Message-ID: <878rok2rjg.fsf@gnus.org> References: <874jzdhh5m.fsf@localhost> <871qug4dyk.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38555"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 56637@debbugs.gnu.org, Ihor Radchenko To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 23 10:09:30 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 1oFACY-0009pu-8R for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Jul 2022 10:09:30 +0200 Original-Received: from localhost ([::1]:33390 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFACW-0008Eu-TT for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Jul 2022 04:09:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37608) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oF9yY-0006ut-Nk for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 03:55:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53446) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oF9yY-0003ze-E3 for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 03:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oF9yY-0001zm-7C for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 03:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Jul 2022 07:55:02 +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.16585628507589 (code B ref 56637); Sat, 23 Jul 2022 07:55:02 +0000 Original-Received: (at 56637) by debbugs.gnu.org; 23 Jul 2022 07:54:10 +0000 Original-Received: from localhost ([127.0.0.1]:43195 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oF9xh-0001yL-NJ for submit@debbugs.gnu.org; Sat, 23 Jul 2022 03:54:09 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:48110) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oF9xg-0001y5-75 for 56637@debbugs.gnu.org; Sat, 23 Jul 2022 03:54:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=EPoAWX4ymxgTrNtxIGJ2LZBqOsLNSSQxvLyCynW1JDs=; b=XrPa0QEJoQK5+AMK90ZwGS1l3j Gs3oyaSVTPJwDDsKYLnId7hIMO8MkECJy9N540qJRNgu/Iok/9cRnxZzLmLUtfCyHAfe9VmCmTs87 ZMNcb0Fdeqlk9/oNeC9wgZ6czU+4d6n4j1S0slVdKnKRGXoyAC4NjVCeQToEWudcTgoI=; Original-Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oF9xV-0008SK-UJ; Sat, 23 Jul 2022 09:54:00 +0200 In-Reply-To: (Stefan Monnier's message of "Wed, 20 Jul 2022 10:58:58 -0400") X-Now-Playing: The Residents's _Subterranean Modern_: "Dumbo, The Clown (Who Loved Christmas)" 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:237697 Archived-At: 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? I saw that other proposed patch (with `font-lock-mode-unconditionally'), but I'm not sure that would be as obvious a solution.