emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] obscure error for invalid :exports
@ 2024-03-07 11:49 Max Nikulin
  2024-03-08  9:46 ` Ihor Radchenko
  0 siblings, 1 reply; 4+ messages in thread
From: Max Nikulin @ 2024-03-07 11:49 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

Trying to export (to HTML buffer)

     src_elisp[:exports source]{a}

I have got an obscure error

     org-export-as: Wrong type argument: char-or-string-p, nil

I believe, some meaningful error should be signaled.

I was quite surprised since the following is exported with no error

     #+begin_src elisp :exports source
       a
     #+end_src

So source blocks are more liberal in respect to user errors.

`org-lint' warns

      2 low   Unknown value "source" for header ":exports"

Reproducible with Org main HEAD and 9.5.5

Of course, it should be

         src_elisp[:exports code]{a}

but I was going to test org-element parser on a more tricky input and by 
mistake typed wrong keyword. It took some time to figure that it is not 
a parser error.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-03-12 13:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-07 11:49 [BUG] obscure error for invalid :exports Max Nikulin
2024-03-08  9:46 ` Ihor Radchenko
2024-03-10 10:30   ` Max Nikulin
2024-03-12 13:10     ` Ihor Radchenko

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).