From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou 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 Message-ID: <87po19mqs4.fsf@nicolasgoaziou.fr> References: <878t7yo84m.fsf@ossau.homelinux.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54708) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fP3gJ-0001L4-Ik for emacs-orgmode@gnu.org; Sat, 02 Jun 2018 06:22:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fP3gG-0005me-Cx for emacs-orgmode@gnu.org; Sat, 02 Jun 2018 06:22:43 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:35583) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fP3gG-0005kx-6N for emacs-orgmode@gnu.org; Sat, 02 Jun 2018 06:22:40 -0400 In-Reply-To: <878t7yo84m.fsf@ossau.homelinux.net> (Neil Jerram's message of "Fri, 01 Jun 2018 16:10:17 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Neil Jerram Cc: emacs-orgmode@gnu.org Hello, Neil Jerram writes: > With this Org source: > > #+BEGIN_SRC sh > { > cat < 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 # 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