From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id uCCeLhp74Gah6gAA62LTzQ:P1 (envelope-from ) for ; Tue, 10 Sep 2024 17:00:10 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id uCCeLhp74Gah6gAA62LTzQ (envelope-from ) for ; Tue, 10 Sep 2024 19:00:10 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=DIYxBFjV; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1725987610; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=VNE3QZv6IRYb7anIadmf1tYM++gd/6BLTsc5KSOtyAQ=; b=GtKiaY0/ghdVQd2cgVwNXOI4A7FnkKXt3zwi78T/5ZzoZ8fi3tc0ICka2bpjLdhxx6zHHC 8mHCkTOXYGBT7Ze19RVJMpepzjfTN3Uej8tyxd1vzkDLlI9yk83GpFM45/We33Fb2J99bc cWeX7IzybvoG8nsqXvCoBW4QzwB5g5NEqmiknrIXfX9rSYZ+4bjxIAXpdPiRMU03nV190G JE/eFM/nAMMtjM/w5uovnIj1OQBb97QtkpldIxJgFDJkWibaHDfjL3mrwcUO+zVgP2PNlR S2a/au6Z6DpvH45rQOK9MB+BJOZMUQiia56HPeMviiZLJDm1u2WBiIr3OnNw7w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1725987610; a=rsa-sha256; cv=none; b=eP2wACZYMSyd9YdV7z7GsFYqxI8eSzQbwOlKNfTiMXNeOzj827jJRsk6CEB4kfipA54ii5 7J4M0Fbtf6Gwr/VeCJgQ3o2iMSb72SLz3ez5IT8u1Vw2vwXsvE4f99t1vC5upirxi4BNM7 Gwmwpw8re8en7C59mNw0wE5036bKBRQ8iTSORdlFR+8+8jRFhjcT18sLkNqAaWNyrzWfra oe4p9mSlUMJd03bmPR8NQPXfM0GIPtE1KtGUwjq6ittSbIYfVTgqrkUU3t9towofiaTSeA JLyDpaRInFlaVW2viViC5hgXIu/+9QVAYZ6xXBO31j/XPd7W/VpuyeJ5DAv3rg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=DIYxBFjV; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id AD04B7FDDC for ; Tue, 10 Sep 2024 19:00:10 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1so4DV-0002B4-MZ; Tue, 10 Sep 2024 12:59:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1so4DU-00025H-5q for emacs-orgmode@gnu.org; Tue, 10 Sep 2024 12:59:48 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1so4DS-0000Mu-F1 for emacs-orgmode@gnu.org; Tue, 10 Sep 2024 12:59:47 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 25797240027 for ; Tue, 10 Sep 2024 18:59:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1725987584; bh=W6CXjDULzLPjNbMk/GAInec6MnFdSq39lCdECEGy3DA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=DIYxBFjVm79dZKBcpGBdIqfITLrQCdrnC4ohlWIPdFq0dQBfDeEwhjCjqKHztxA8A Dn3OHd3B+fBnwyrV6BoD9hj/t4XFIQDDzYHYVUXxdT7X8gneUZP817fKy+mqJ3hh8P MvPPs12WKa55NQfw44/FegGGvrgIdtcjRoc0qgrLcAgDZ4fZjfs+R9d8HPtZWUSzTu nmZpZhN7iaw10js4EW7k3ZaXrN0fsFrxpkiXowFJf9z/X1UeN3hNBVlK8nNiMTSMxW 9A3YiIaVUchOv1HkIPzHTqbRuvuUqKvLu/6gDFI/bbzrm6wtLuV4LOT7D9hw3ysQWe uc+5aHUUQ9iNQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4X390v4HTdz9rxG; Tue, 10 Sep 2024 18:59:43 +0200 (CEST) From: Ihor Radchenko To: Benjamin McMillan Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] export blocks no longer fontifying [9.7.10 (release_9.7.10 @ /Users/ben/Scripts/emacs/lisp/org/)] In-Reply-To: References: Date: Tue, 10 Sep 2024 17:01:10 +0000 Message-ID: <87ikv3o33d.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.71 X-Spam-Score: -6.71 X-Migadu-Queue-Id: AD04B7FDDC X-Migadu-Scanner: mx11.migadu.com X-TUID: 41eCiPeuKsf6 Benjamin McMillan writes: > At some point in the last few months, org mode stopped fontifying my > latex export blocks. However, an older version of emacs on my computer > still does fontify. > (The difference is seen even opening emacs with the -q flag) > It seems that there was a change to the function > org-fontify-meta-lines-and-blocks-1 in org.el, specifically at the > conditional that checks org-src-fontify-natively. > As the comment there explains, the intention is to only fontify src > blocks, but I don't see any option exposed to enable fontififcation of > export blocks, which is a fairly crucial feature to my workflow. > > I think fontification of export blocks should follow that of src blocks, > or a separate option should be made. (Or, I may be missing some already > existing solution!) > > For what it is worth, I can get the desired behavior by modifying the > code mentioned above to include "export", as in the following: > (and org-src-fontify-natively > ;; Technically, according to > ;; `org-src-fontify-natively' docstring, we should > ;; only fontify src blocks. However, it is common > ;; to use undocumented fontification of example > ;; blocks with undocumented language specifier. > ;; Keep this undocumented feature for user > ;; convenience. > (member block-type '("src" "example" "export"))) Since we already do it for example blocks, I see not why we should not for export blocks. Would you be interested to submit a patch with your modification? See https://orgmode.org/worg/org-contribute.html#first-patch -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at