[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Bug: Args out of range error in HTML export [9.1.13 (9.1.13-elpa
From: |
Nicolas Goaziou |
Subject: |
Re: [O] 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 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Hello,
Neil Jerram <address@hidden> 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