From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Regression in #+include behavior [master] Date: Mon, 19 Mar 2018 20:00:02 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000f23a590567c9676b" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39800) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ey0x6-0006Zz-54 for emacs-orgmode@gnu.org; Mon, 19 Mar 2018 16:00:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ey0x5-0004lZ-0d for emacs-orgmode@gnu.org; Mon, 19 Mar 2018 16:00:16 -0400 Received: from mail-yb0-x235.google.com ([2607:f8b0:4002:c09::235]:34215) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ey0x4-0004ku-Rn for emacs-orgmode@gnu.org; Mon, 19 Mar 2018 16:00:14 -0400 Received: by mail-yb0-x235.google.com with SMTP id e3-v6so527705ybk.1 for ; Mon, 19 Mar 2018 13:00:14 -0700 (PDT) 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: emacs-org list --000000000000f23a590567c9676b Content-Type: text/plain; charset="UTF-8" Hello, I believe a regression was introduced in https://code.orgmode.org/bzg/org-mode/commit/d81a1d088c74e605c99e90a2835c55df5144f43e I am unable to come with a minimal example, but I can link to the actual Org file that causes the failure. If I try to move that subtree along with the "included" subtrees into a separate Org file, the export works fine. - Download https://raw.githubusercontent.com/kaushalmodi/ox-hugo/master/test/site/content-org/all-posts.org (you can wget or curl that file using that URL). - Ensure that point is in the "* Alert Shortcode Lookalike" heading (around line 3416). - Do C-c C-e C-s h h You should get an error like this: Debugger entered--Lisp error: (wrong-type-argument stringp nil) looking-at(nil) org-element-context() org-export--prepare-file-contents("/home/kmodi/stow/pub_dotfiles/emacs/dot-emacs.d/elisp/ox-hugo/test/site/content-org/ all-posts.org" "3311-3358" 0 5 1 # "/home/kmodi/stow/pub_dotfiles/emacs/dot-emacs.d/elisp/ox-hugo/test/site/content-org/ all-posts.org") org-export-expand-include-keyword() org-export-as(html t nil nil (:output-file "alert-short-code-lookalike.html")) org-export-to-file(html "alert-short-code-lookalike.html" nil t nil nil nil) org-html-export-to-html(nil t nil nil) org-export-dispatch(nil) funcall-interactively(org-export-dispatch nil) call-interactively(org-export-dispatch nil nil) command-execute(org-export-dispatch) Let me know if this error can be reproduced by the above steps -- Kaushal Modi --000000000000f23a590567c9676b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I am unable to come with a minimal example, but I can link to the = actual Org file that causes the failure. If I try to move that subtree alon= g with the "included" subtrees into a separate Org file, the expo= rt works fine.

- Download ht= tps://raw.githubusercontent.com/kaushalmodi/ox-hugo/master/test/site/conten= t-org/all-posts.org (you can wget or curl that file using that URL).
- Ensure that point is in the "* Alert Shortcode Lookalike"= ; heading (around line 3416).
- Do C-c C-e C-s h h

You sh= ould get an error like this:

Debugger entered--Lisp error: (wrong-ty= pe-argument stringp nil)
=C2=A0 looking-at(nil)
=C2=A0 org-element-co= ntext()
=C2=A0 org-export--prepare-file-contents("/home/kmodi/stow/= pub_dotfiles/emacs/dot-emacs.d/elisp/ox-hugo/test/site/content-org/all-posts.org" "3311-3358" 0 5= 1 #<hash-table equal 0/65 0x15ea311> "/home/kmodi/stow/pub_dotf= iles/emacs/dot-emacs.d/elisp/ox-hugo/test/site/content-org/all-posts.org")
=C2=A0 org-export-expand-inclu= de-keyword()
=C2=A0 org-export-as(html t nil nil (:output-file "ale= rt-short-code-lookalike.html"))
=C2=A0 org-export-to-file(html &quo= t;alert-short-code-lookalike.html" nil t nil nil nil)
=C2=A0 org-ht= ml-export-to-html(nil t nil nil)
=C2=A0 org-export-dispatch(nil)
=C2= =A0 funcall-interactively(org-export-dispatch nil)
=C2=A0 call-interacti= vely(org-export-dispatch nil nil)
=C2=A0 command-execute(org-export-disp= atch)

Let me know if this error can be reproduce= d by the above steps
--

Kaushal Modi

--000000000000f23a590567c9676b--