From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Neil Jerram <neil@ossau.homelinux.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: Bug: Args out of range error in HTML export [9.1.13 (9.1.13-elpa @ /home/neil/.emacs.d/elpa/org-20180514/)]
Date: Sat, 02 Jun 2018 12:22:35 +0200 [thread overview]
Message-ID: <87po19mqs4.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <878t7yo84m.fsf@ossau.homelinux.net> (Neil Jerram's message of "Fri, 01 Jun 2018 16:10:17 +0100")
Hello,
Neil Jerram <neil@ossau.homelinux.net> writes:
> With this Org source:
>
> #+BEGIN_SRC sh
> {
> cat <<EOF
> failsafeInboundHostPorts:
> EOF
> }
> #+END_SRC
>
> With `C-c C-e h h', to export that as HTML, I get:
>
> Debugger entered--Lisp error: (args-out-of-range #<buffer *temp*> 0 1)
> parse-partial-sexp(1 0)
> syntax-ppss(0)
> sh--inside-noncommand-expression(0)
> sh--inside-noncommand-expression(10)
> sh-font-lock-open-heredoc(10 "EOF" 16)
> sh-syntax-propertize-function(1 50)
> syntax-propertize(50)
> font-lock-fontify-syntactically-region(1 50 nil)
> font-lock-default-fontify-region(1 50 nil)
> font-lock-fontify-region(1 50 nil)
> font-lock-default-fontify-buffer()
This issue doesn't seem related to Org. You can try inserting the code
above in an sh-mode buffer and observe that Emacs has trouble fontifying
the buffer properly.
As you noticed, inserting a space or a newline at the beginning of the
buffer seems to help.
Regards,
--
Nicolas Goaziou
prev parent reply other threads:[~2018-06-02 10:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-01 15:10 Bug: Args out of range error in HTML export [9.1.13 (9.1.13-elpa @ /home/neil/.emacs.d/elpa/org-20180514/)] Neil Jerram
2018-06-01 16:00 ` Neil Jerram
2018-06-02 10:22 ` Nicolas Goaziou [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87po19mqs4.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=emacs-orgmode@gnu.org \
--cc=neil@ossau.homelinux.net \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.