emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Ciolfi <ciolfi@mathworks.com>
To: emacs-orgmode@gnu.org
Subject: Bug: missing language for code block results in failure [9.1.14 (9.1.14-dist @ .../org/install/emacs/site-lisp/org/)]
Date: Sun, 25 Nov 2018 11:06:50 -0500	[thread overview]
Message-ID: <r9pnutf8f9.fsf@ciolfi-deb9-64ciolfi-deb9-64.dhcp.mathworks.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1045 bytes --]


Hi

I ran into a confusing error due to missing language for a code block. Given attached issue.org
which contains:

    #+BEGIN_SRC
      if (a > 1) {
      }
    #+END_SRC

if you convert to pdf using the attached issue_repro.el via:

  emacs --batch -L /path/to/org/install/emacs/site-lisp/org -l issue_repro.el

where /path/to/org/install/emacs/site-lisp/org is version 9.1.14 and I'm running emacs 25.1.1,
you'll see this error

  $ emacs --batch -L /local-ssd/ciolfi/sbtools/apps/emacs-add-ons/install-25/org/install/emacs/site-lisp/org -l issue_repro.el
  Loading 00debian-vars...
  :
  Debug on Error enabled globally
  Debugger entered--Lisp error: (wrong-type-argument stringp nil)
    intern(nil)
    org-latex-src-block((src-block .....
    <snip>

Could this be handled more gracefully?

Thanks
John


Emacs  : GNU Emacs 25.1.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.11)
 of 2017-09-15, modified by Debian
Package: Org mode version 9.1.14 (9.1.14-dist @ .../org/install/emacs/site-lisp/org/)


[-- Attachment #2: issue.org --]
[-- Type: text/x-org, Size: 94 bytes --]

Code block is missing the language:

  #+BEGIN_SRC
    if (a > 1) {
    }
  #+END_SRC


[-- Attachment #3: issue_repro.el --]
[-- Type: application/emacs-lisp, Size: 828 bytes --]

             reply	other threads:[~2018-11-25 16:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-25 16:06 John Ciolfi [this message]
2018-11-27 20:48 ` Bug: missing language for code block results in failure [9.1.14 (9.1.14-dist @ .../org/install/emacs/site-lisp/org/)] Nicolas Goaziou

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=r9pnutf8f9.fsf@ciolfi-deb9-64ciolfi-deb9-64.dhcp.mathworks.com \
    --to=ciolfi@mathworks.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).