From: Ihor Radchenko <yantar92@posteo.net>
To: Protesilaos Stavrou <info@protesilaos.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [PATCH] Define new face for the contents of #+RESULTS drawers
Date: Sat, 16 Sep 2023 09:49:50 +0000 [thread overview]
Message-ID: <878r96phvl.fsf@localhost> (raw)
In-Reply-To: <878r96tq30.fsf@protesilaos.com>
Protesilaos Stavrou <info@protesilaos.com> 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 <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
next prev parent reply other threads:[~2023-09-16 9:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-16 9:38 [PATCH] Define new face for the contents of #+RESULTS drawers Protesilaos Stavrou
2023-09-16 9:49 ` Ihor Radchenko [this message]
2023-09-16 12:30 ` Protesilaos Stavrou
2023-09-16 12:44 ` Ihor Radchenko
2023-09-16 12:52 ` Protesilaos Stavrou
2023-09-17 9:53 ` Ihor Radchenko
2023-09-17 21:36 ` Samuel Wales
2023-09-18 8:39 ` Ihor Radchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878r96phvl.fsf@localhost \
--to=yantar92@posteo.net \
--cc=emacs-orgmode@gnu.org \
--cc=info@protesilaos.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).