From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id IDh5JJ4L7mPZjQAAbAwnHQ (envelope-from ) for ; Thu, 16 Feb 2023 11:55:26 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id iHc7JJ4L7mNtKwEAauVa8A (envelope-from ) for ; Thu, 16 Feb 2023 11:55:26 +0100 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 4C18CAE38 for ; Thu, 16 Feb 2023 11:55:26 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSbuU-0003nj-Uq; Thu, 16 Feb 2023 05:54:42 -0500 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 1pSbuQ-0003nV-6s for emacs-orgmode@gnu.org; Thu, 16 Feb 2023 05:54:38 -0500 Received: from mail-108-mta236.mxroute.com ([136.175.108.236]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pSbuO-0001wy-Gd for emacs-orgmode@gnu.org; Thu, 16 Feb 2023 05:54:37 -0500 Received: from mail-111-mta2.mxroute.com ([136.175.111.2] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta236.mxroute.com (ZoneMTA) with ESMTPSA id 18659d7e317000edb4.001 for (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256); Thu, 16 Feb 2023 10:49:26 +0000 X-Zone-Loop: 1f965e7e63c32ae4f4427962d605c87745e8271a4853 X-Originating-IP: [136.175.111.2] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kragelund.me; s=x; h=Content-Transfer-Encoding:Content-Type:Message-ID: Subject:To:From:Date:MIME-Version:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=8Qe7lCDSWLEw3Oe9AnvSmvxBndX2kozKHv3JcOxPUjk=; b=JGnW/Wywj6OWwSNGTf/jTM99fV oit//uWbOWzSVFDM+d7sXjsPJqLNurNr1SQOP8ZvQPYFxhdievek2QwDZlRUFXb4c4pN+fEzsywpS zlgMmq/202MZs9G71+4s0WuCPrvQNdF0lMB9DusmkdSHLwTJuCfcmgOHJBelDtTqM2SadyrrvrfOx HUHQy7xbgztvzAuyk8y608I/YxxB3Jky0leludH6sBcpTX4KDT66lioEoZ4jki+yOn7Hhw91BiAq1 7HGa9WiiEOR75ye42s4gX7YBmH+e8pJi1CThj1Vudhkkt8Qil7THC+wbe4AsZ/TXn+VfVuzRYLOlQ txh09Xwg==; MIME-Version: 1.0 Date: Thu, 16 Feb 2023 11:49:23 +0100 From: carsten@kragelund.me To: emacs-orgmode@gnu.org Subject: [FR] Fontifying src-blocks with no language specified Message-ID: <99388ff3711696091f0312a5c3f0bcbd@kragelund.me> X-Sender: carsten@kragelund.me Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated-Id: carsten@kragelund.me Received-SPF: pass client-ip=136.175.108.236; envelope-from=carsten@kragelund.me; helo=mail-108-mta236.mxroute.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676544926; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=8Qe7lCDSWLEw3Oe9AnvSmvxBndX2kozKHv3JcOxPUjk=; b=d5g9cs+4jQodGVlvIOklcT7Q2dPYmYzhBLpcQtgydJH83EyehOnQcHbppQNn8tyrPZSY9o H3ET/Ig+e/pv6wMfCYUWA31+m12i/V2LCngwueAH0pja6Lu/D82P3Ks3VytkXd/bWw7hCf bSKVMLcVbj6gyP/JXaG0F/Clj2GH9XtpHNJhISL6kFvbuOYo9XUiLCDf89UUNyjTb/K6CQ KJeJ1sMJM45xhwHc74ypKjb4Cw9zdKR1zVgeE2bFArCvDVJG6JEWxIyhf2S13l7j0fAJ6k vGiHjGJ7xB2G3vTprGyi3rVRJaTjz02tHizMlRStXL0c4mWVU7kdScRGVhikcw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kragelund.me header.s=x header.b="JGnW/Wyw"; 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"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676544926; a=rsa-sha256; cv=none; b=RbLHzDgvjK/lwL/o1biDB6bm5OglxroUB1c0/+K9ZiIcxc0lcoaHAVJ5OwvXJ+TyscrWJZ QpqSSXDOV/HQVTWiHp4t+8kS61Xgki6lf1sUpFwxGJkO8jh/+BvEeHxq4gDAtIvfzRQajW 1ztIHHRtbOy31IWf62oTQAn0XRq47VjakTlfD/O35+Fq7qgo1HqXABpgNpnAJs6bRe2BNE Gt6JtFmEqeqBQYzIQjC6/DHOXTze+P4E6ChtJn3z/tjf/7iC4iT1Q+Del6H5CQ++OHZ5jL 0Mny3RfXsynFh/Y5GRk8YEcud5a+8wZEMdw3n30s6R8BaGqTDs8StfL6yxEkOA== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kragelund.me header.s=x header.b="JGnW/Wyw"; 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"; dmarc=none X-Migadu-Spam-Score: -0.42 X-Spam-Score: -0.42 X-Migadu-Queue-Id: 4C18CAE38 X-TUID: 3y1gfS/LmvOe Fontifying src-blocks with a missing language would allow being able to theme src-blocks without having the unthemed text of languages fallback to whatever color the src-blocks are set to. I envision this could be done with an empty string in org-src-block-faces. See the below example where printf has the org-block face, in this case it would allow using a more normal color by default for org-blocks where the blocks without a language could use a more pronounced color. #+BEGIN_SRC C int main() { printf("Hello World\\n"); } #+END_SRC #+BEGIN_SRC this is just a block of text #+END_SRC