> From: Ihor Radchenko <yanta...@posteo.net> > 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