emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Weaver Marquez <weavermarquez0@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [FR] Adding explicitly negative :results Type option
Date: Mon, 3 Jun 2024 21:57:21 -0600	[thread overview]
Message-ID: <CAErawX=o5kuTa5eshiZRnSEYrTutgUktYVk8aS5jJZDSMkM9aA@mail.gmail.com> (raw)

There is behavior that only happens if `:results' Type is not set at all.
I'd like to request a new Type option that would easily negate a
default arg without having to clear the default header args variable.

By Type, I mean these:
<https://orgmode.org/manual/Results-of-Evaluation.html#Type-1>

Case 1: With no default header args
  ,---- elisp
  | (concat "My String")

  ,---- result
  | My String

Case 2: With default `:results scalar'

  ,---- elisp
  | (concat "My String")

  ,---- result
  | "My String"


Being new to Library of Babel, my default header args are
`:results value vector replace'. However, I had trouble with this
code block from `elot' used to add a SETUPFILE on HTML export:

`foo.org'
,----
| #+call: theme-readtheorg()
`----

`theme-readtheorg()'
,----
| (concat "#+SETUPFILE: " (file-name-directory (locate-library
"elot")) "theme-readtheorg.setup")
`----

Which won't work if the /Type/ value is set by default.

I think this would be useful even if the better solution is getting used
to setting buffer/header local variables. It could also help library authors
ensure that a certain code block like above will work as intended.


             reply	other threads:[~2024-06-04  3:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-04  3:57 Weaver Marquez [this message]
2024-06-04 13:28 ` [FR] Adding explicitly negative :results Type option 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='CAErawX=o5kuTa5eshiZRnSEYrTutgUktYVk8aS5jJZDSMkM9aA@mail.gmail.com' \
    --to=weavermarquez0@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).