emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: 8dcc <8dcc.git@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [BUG] Texinfo: Error when exporting source block with no language
Date: Sat, 21 Dec 2024 13:03:29 +0100	[thread overview]
Message-ID: <87ikrdtf8u.fsf@gmail.com> (raw)

Hello, when trying to export the following Org file:

    #+begin_src
    Hello, world.
    #+end_src

To texinfo using `org-texinfo-export-to-texinfo', I get the following
error:

    Debugger entered--Lisp error: (wrong-type-argument stringp nil)
      org-texinfo-src-block((src-block (:language nil <snip>)))
      org-export-data((src-block (:language nil <snip>)))

However, if I change contents of the Org file to this, even if it's a
non-existing language, it works:

    #+begin_src foobar
    Hello, world.
    #+end_src

And produces:

    <...>
    @example
    Hello, world.
    @end example
    <...>

I am using Org mode version 9.6.15 in GNU Emacs 29.4.

Thanks.


                 reply	other threads:[~2024-12-21 12:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=87ikrdtf8u.fsf@gmail.com \
    --to=8dcc.git@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).