From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" 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: Tue, 19 Jul 2022 12:13:29 -0400 Message-ID: References: <874jzdhh5m.fsf@localhost> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30421"; 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 To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 19 18:15:26 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 1oDpsc-0007hs-53 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 19 Jul 2022 18:15:26 +0200 Original-Received: from localhost ([::1]:41314 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oDpsb-0001KL-3g for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 19 Jul 2022 12:15:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60114) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oDprP-0008Vf-ES for bug-gnu-emacs@gnu.org; Tue, 19 Jul 2022 12:14:12 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57254) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oDprG-0003CX-GH for bug-gnu-emacs@gnu.org; Tue, 19 Jul 2022 12:14:11 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oDprG-000379-Bf for bug-gnu-emacs@gnu.org; Tue, 19 Jul 2022 12:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Jul 2022 16:14: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.165824722311936 (code B ref 56637); Tue, 19 Jul 2022 16:14:02 +0000 Original-Received: (at 56637) by debbugs.gnu.org; 19 Jul 2022 16:13:43 +0000 Original-Received: from localhost ([127.0.0.1]:55013 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oDpqx-00036S-Dv for submit@debbugs.gnu.org; Tue, 19 Jul 2022 12:13:43 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:29891) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oDpqt-00036D-Ow for 56637@debbugs.gnu.org; Tue, 19 Jul 2022 12:13:41 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id EF02E10012E; Tue, 19 Jul 2022 12:13:32 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 0661E100102; Tue, 19 Jul 2022 12:13:31 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1658247211; bh=5g360jrAQdlWsworPACwx3NpwC++/vw5vMMeSH/yOBU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=lP0/UHeEqNQXmmzElwQ17eJKfsVftngmYi+8mmTIrWNCseq48lgb4mY/1STOY6CPO U1fAYng8+7cDtywahbihbnvtP93pFkTgNw3tdUv5q9I/M4MQlNDUz+rhdMTUDhDpZ3 AZExt8WLMOv48yHGCeFH4Jyc3pcmqqn+FzGKWwqsar6VjnHIG3HhF8MCK6V1n0TWgT abHh3f6qS74wvB9k2uSEqPqAerbCiWAYI7RrHxZOsSoZ+mrej6WINPI/369lnBfZTt ba27fD+xXXw7Z+GshLXMG+azMUS5CxpCt22wo8TTBy7S/x6zj0KBRWVwX+mdQB5it/ vfv+HbaQOf7Rg== Original-Received: from pastel (unknown [45.72.196.165]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 9BFDE1206B0; Tue, 19 Jul 2022 12:13:30 -0400 (EDT) In-Reply-To: <874jzdhh5m.fsf@localhost> (Ihor Radchenko's message of "Tue, 19 Jul 2022 12:15:33 +0800") 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:237452 Archived-At: > Org mode fontifies code blocks using "hidden" temporary buffers with > their name starting from " ": " *org-src-fontification:major-mode*". > > The buffers are kept around to avoid extra major-mode loading overheads > and the fontification is not using (font-lock-ensure). IIUC they're never displayed, right? So, `font-lock-ensure` does sound like "the right tool". Could you give a short explanation for why you don't use `font-lock-ensure`? > (font-lock-ensure) usually fontifies the buffer correctly even though > font-lock-mode is disabled. However, not always. Sounds like a bug we should fix. > It would be nice if we could somehow enable font-lock inside " *hidden*" > buffers. Would it be possible? FWIW, I do think it would be good to remove the rule that font-lock is never enabled in temp buffers. Stefan