From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id QGFZGWWhBWV/SAAAauVa8A:P1 (envelope-from ) for ; Sat, 16 Sep 2023 14:36:53 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id QGFZGWWhBWV/SAAAauVa8A (envelope-from ) for ; Sat, 16 Sep 2023 14:36:53 +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 40FAC40422 for ; Sat, 16 Sep 2023 14:36:52 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=protesilaos.com header.s=gm1 header.b=g+7FJCot; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694867812; 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=ik+lWUTN5GxRKDtyaHjHXay9foQn3Wg2jdqKG1tF0JA=; b=nTjRUzUCaHpLtcyTw0g+b7dNR4rU42V139wMPeZyDvv9ScmTMNjNHiD1LK/UPeWrMSjzUy dXsU5qCFWrDryk1YauBMz0qLBlF6wbNzyQtMcUU+2yvROsle/1wgWm1yDC90eVe0tUJIqx ZsB+bspmrp/cp3heyNQOOj/L4n1z79LdeEJcy3LYRQC8uZxXr746U+zSSxAZ3p0MdZ/DrC GwCZ/5lMM8ZRjepwI51+gi5ye4MSA+Unw0ux22qDtuYD5KvAM7IZ4cf9u0Fm4F/n/wdbqo VXW4oHgqLlmJZ9exgDpCCrzR1HGg34IZifblKxCu7m2tslUx6929CdCNGSUCPQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=protesilaos.com header.s=gm1 header.b=g+7FJCot; 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=1694867812; a=rsa-sha256; cv=none; b=JUS3tmO3Rl7A+bKgMZSBAd9cv6xcS500nU/UOz/FhZp89TGlz47R+QKpoNvMwukVIsULG5 2K9B055E/+fftnpURMT1bmLuq3fsmebWWy7TdvNGtCOd57N1qSuyYmBUOXlXkgP4fPgb0w rGo820yJNWJJhvSLkUl+omUmWSoEH4eEv2YVQbyp+C92zY1lKFmw7uF4oL7pOsGootAFqO LVJRB7vCbSfkwylSEsdhm66JjAJa+Xx4vW78P1k5QoiWSYeBlPSO8E+ztLXboi4mF/OYES jhcnvNdsBlM9eSTY0YGFSxIVHhpVFum1qcOyHlqiA81nQ9Luy+4acMMn/88wrg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qhURw-0001GG-Ir; Sat, 16 Sep 2023 08:31:02 -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 1qhURn-0001Fp-QV for emacs-orgmode@gnu.org; Sat, 16 Sep 2023 08:30:52 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qhURl-0007TA-Q9 for emacs-orgmode@gnu.org; Sat, 16 Sep 2023 08:30:51 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id 391DA1BF20D; Sat, 16 Sep 2023 12:30:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protesilaos.com; s=gm1; t=1694867446; h=from:from: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; bh=ik+lWUTN5GxRKDtyaHjHXay9foQn3Wg2jdqKG1tF0JA=; b=g+7FJCotoiKZdoeAulK+thfNPSWxHRglXlmMN4S3QrFppbAAflpZKxkZBC61Tm2anI6NA0 jS21Zs+kcDexd70Rkhgm7c48ofDYq3+dAJBwM+3RuMeGgEnqlLgekKdsGnlbJ4GM1VLs1d ZiSooTCmmCLxSQlKUJvEKvaOBhabtEyoftfk4nSR0jh+gzgma4PNgVyTWxxpnERnGVKIQ5 SIYGAcCNynwX4TabHG5r43LVn5MHqgOO+eN144jgrSZzvpL+7je19tfy/M/0LQ7QezCJQS qD8UCQ5J+xPllZqusT2v3aqqzPRFgnd8EOPkeDF5iKCwSqMNzHEF4ZtS2dv3zA== From: Protesilaos Stavrou To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] Define new face for the contents of #+RESULTS drawers In-Reply-To: <878r96phvl.fsf@localhost> References: <878r96tq30.fsf@protesilaos.com> <878r96phvl.fsf@localhost> Date: Sat, 16 Sep 2023 15:30:44 +0300 Message-ID: <87msxm5mh7.fsf@protesilaos.com> MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: info@protesilaos.com Received-SPF: none client-ip=217.70.183.201; envelope-from=info@protesilaos.com; helo=relay8-d.mail.gandi.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_NONE=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-Scanner: mx1.migadu.com X-Migadu-Spam-Score: -2.21 X-Spam-Score: -2.21 X-Migadu-Queue-Id: 40FAC40422 X-TUID: bN+nK9vMj+pW > From: Ihor Radchenko > Date: Sat, 16 Sep 2023 09:49:50 +0000 > [... 9 lines elided] >> +(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: Oh, I see. How do we describe it? A keyword, perhaps? > 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. Thank you for the explanation! The case I had in mind was indeed the one where the 'org-code' face now applies. I am interested in making the results display as distinct elements. The reason is that it can sometimes be hard to tell what was there before and what was generated by 'org-babel-execute-buffer' and related. You are right to point out that adding font-lock rules for all the possible #+results is not trivial. Better leave it as-is. -- Protesilaos Stavrou https://protesilaos.com