From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 4JAGHyN6BWXNLgAAauVa8A:P1 (envelope-from ) for ; Sat, 16 Sep 2023 11:49:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 4JAGHyN6BWXNLgAAauVa8A (envelope-from ) for ; Sat, 16 Sep 2023 11:49:23 +0200 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 528A2470A4 for ; Sat, 16 Sep 2023 11:49:23 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Kf45WtB1; 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=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694857763; a=rsa-sha256; cv=none; b=SLmHRp5u96crVmG6izD/nw626iX5wcOy81ed0mZfG/2EgrJbleXsVrvSLTK5eZTQN22YUs YC6bdyHufwoB5pXqKACeRLv6eavgOrezXz2BXiiIG/8Ho6uCyYhrjYK0KMz9Qfxs6iO+3R bpgQMJ/cOWVFyLF7iqN1+b6a4lZsbWWes8uc+uUNMIUwPgbYjxhMsTn0sfAPVNpyfQ7NKo bwP7vPG3ppE/fPbutIJUQPOSfnfC0ivN0JYg+N2av09fxFOOqrsfYM43aIKmI4sadAoODC l2mVXSgije+8Zd/EU03ZkQPOYs+0i01Fv5r0LRqBAx/eE1SKY5ajF/xS1U/MXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694857763; 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=ugCb+CqwF6em2f5WM9taM/3UWHiqLAZBY0sj5pMLpGQ=; b=qf5wsT66exemw63+GET0xSo/kNaKFcaSPfjTlWODJ4nxoiI6TiDh4PwC7RVB3awA2qBv1a Cc4/AWLM/7Q1mcbXGlTfOFYIrdfuf5Q191pvD3sUm81u/ZChoi0Pm+TkAh7RvBSXeXQzZX rGpxx0O/kFHPHVORgzVUK7mISkzDobRmF6MRc2i32AdnS3xMwk5RZuVIucZ98bWhyANk3J TK5zkB5WxEsYT4IyfPZsyrkAr4aYOJFOI+yQ2YlL5XrXA9HRzlXPGhsMC+gNutEX+/DgOp k4zHPjmlh55qYsJiqW6NU3F227pqZvSM4fttcpgCy/FJ6gR90G+ftfhdJu9ybQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Kf45WtB1; 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=pass (policy=none) header.from=posteo.net Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qhRuq-0003Ef-FX; Sat, 16 Sep 2023 05:48:40 -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 1qhRuo-0003E8-JD for emacs-orgmode@gnu.org; Sat, 16 Sep 2023 05:48:38 -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 1qhRul-0001l1-UO for emacs-orgmode@gnu.org; Sat, 16 Sep 2023 05:48:38 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id D64EA240028 for ; Sat, 16 Sep 2023 11:48:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1694857713; bh=b+cfLS7CIzW1xnwQ+pP2ArchPX0lDJmEkGPfeGdrHT8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=Kf45WtB17fhGiTkbQC06OCiGV+J+b+TX2xqvftgz16aQebMghu/nOM0oLRzONuFI4 3BYjZEadnqUXmzYOildF7SbNMenlRVUHNHiUb0U/K3w9aBvDF97hrSLPLEFoZQ/jo5 0tGdzFuoAxW8zUFk6uHywBXxbnTHVqJAtLdl9T2CZFS+gvaFkW29A9alxVOXRsZY2n Aod//zDVaSCO17iunxYPm70Gf+zZ8cAQ9NStT4xCxdwvm3ntL5QOxYqhUBtrDYWy/r psNWmX9ZA351x5EGji8nXi+sFPMGsoZ6Sl9Y41CDu1Bnu1t0AMLtomhTh1/1Zygxqb UcACpyiV2rcJA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RnmTY0xhZz9rxF; Sat, 16 Sep 2023 11:48:32 +0200 (CEST) From: Ihor Radchenko To: Protesilaos Stavrou Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] Define new face for the contents of #+RESULTS drawers In-Reply-To: <878r96tq30.fsf@protesilaos.com> References: <878r96tq30.fsf@protesilaos.com> Date: Sat, 16 Sep 2023 09:49:50 +0000 Message-ID: <878r96phvl.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_H5=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.23 X-Spam-Score: -6.23 X-Migadu-Queue-Id: 528A2470A4 X-Migadu-Scanner: mx2.migadu.com X-TUID: KL8deDVDZ92u Protesilaos Stavrou writes: > I propose the attached patch. It gives users/themes the opportunity to > style the contents of #+RESULTS drawers differently than the face > applied to ~code~ elements. Thanks for the patch! > +(defface org-code-results '((t :inherit org-code)) > + "Face for the contents of #+RESULTS drawers." > + :group 'org-faces > + :version "30.1") I think there is some misunderstanding here. #+RESULTS is not a drawer. A drawer would be :results: ... :end: As for code evaluation results, it can be anything with #+results keyword. Like #+results: : fixed width : text or #+results: #+begin_example ... #+end_example or #+results: Simple paragraph of text. > ;; Code > - '(org-activate-code (1 'org-code t)) > + '(org-activate-code (1 'org-code-results t)) `org-activate-code' only affects fixed-width text : like : this : : one It has no relation to code results, except that fixed width is often (but not always) used as the default markup for results of evaluation. If what you are looking for is different formatting for code markup and fixed-width markup, `org-fixed-width' would be a better face name. If you are looking for formatting of results of evaluation, it would need to be a completely new, non-trivial, font-lock-keyword. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at