GNU bug report logs -
#22469
org-mode export fail
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 22469 in the body.
You can then email your comments to 22469 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#22469
; Package
emacs
.
(Tue, 26 Jan 2016 14:16:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
phillip.lord <at> russet.org.uk (Phillip Lord)
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 26 Jan 2016 14:16:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
I am seeing this error from org-mode when trying to export to HTML. The
main org file has an include line like so:
#+INCLUDE: "sisyphus.org" :lines "28-"
The error occurs on a clean emacs -q run from head of Emacs-25.
I don't quite understand where the error is coming from, given that this
simple export has nothing to do with agenda files.
Org-files are attached.
Thanks!
Phil
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
file-exists-p(nil)
org-check-agenda-file(nil)
org-agenda-prepare-buffers((nil))
org-map-entries(#[nil "\300\301 !\207" [org-reduced-level org-current-level] 2])
org-export--prepare-file-contents("/home/phillord/emacs/sisyphus/sisyphus.org" "28-" 0 1)
org-export-expand-include-keyword()
org-export-as(html nil nil nil (:output-file "./sisyphus-doc.html"))
org-export-to-file(html "./sisyphus-doc.html" nil nil nil nil nil)
org-html-export-to-html(nil nil nil nil)
org-export-dispatch(nil)
funcall-interactively(org-export-dispatch nil)
call-interactively(org-export-dispatch nil nil)
command-execute(org-export-dispatch)
[sisyphus-doc.org (text/x-org, attachment)]
[sisyphus.org (text/x-org, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#22469
; Package
emacs
.
(Tue, 26 Jan 2016 14:24:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 22469 <at> debbugs.gnu.org (full text, mbox):
phillip.lord <at> russet.org.uk (Phillip Lord) writes:
> I am seeing this error from org-mode when trying to export to HTML. The
> main org file has an include line like so:
>
> #+INCLUDE: "sisyphus.org" :lines "28-"
>
> The error occurs on a clean emacs -q run from head of Emacs-25.
>
> I don't quite understand where the error is coming from, given that this
> simple export has nothing to do with agenda files.
Look in org-map-entries : it uses org-agenda-prepare-buffers internally
by calling: (org-agenda-prepare-buffers (list (buffer-file-name (current-buffer))))
I stopped investigating at this point.
--
Nicolas
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#22469
; Package
emacs
.
(Tue, 26 Jan 2016 15:37:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 22469 <at> debbugs.gnu.org (full text, mbox):
Hi Phil
phillip.lord <at> russet.org.uk (Phillip Lord) writes:
> I am seeing this error from org-mode when trying to export to HTML. The
> main org file has an include line like so:
[...]
> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
> file-exists-p(nil)
> org-check-agenda-file(nil)
> org-agenda-prepare-buffers((nil))
> org-map-entries(#[nil "\300\301 !\207" [org-reduced-level org-current-level] 2])
This should be fixed on the Org side as of 44c8cd7 (2015-08-10):
org-map-entries: Fix org-agenda-prepare-buffers call
* lisp/org.el (org-map-entries): Check that buffer-file-name is non-nil
before passing to org-agenda-prepare-buffers.
Like 11e8749, this surfaced as an error when 05efa7a ("Backport commit
3a5f751 from Emacs master branch", 2015-08-08) replaced a
'(while (setq VAR (pop LIST)) BODY)' with '(dolist (VAR LIST) BODY)',
resulting in the body being executed when '(nil)' was passed to
org-agenda-prepare-buffers.
--
Kyle
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#22469
; Package
emacs
.
(Tue, 26 Jan 2016 15:48:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 22469 <at> debbugs.gnu.org (full text, mbox):
Kyle Meyer <kyle <at> kyleam.com> writes:
> Hi Phil
>
> phillip.lord <at> russet.org.uk (Phillip Lord) writes:
>
>> I am seeing this error from org-mode when trying to export to HTML. The
>> main org file has an include line like so:
>
> [...]
>
>> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
>> file-exists-p(nil)
>> org-check-agenda-file(nil)
>> org-agenda-prepare-buffers((nil))
>> org-map-entries(#[nil "\300\301 !\207" [org-reduced-level
>> org-current-level] 2])
>
> This should be fixed on the Org side as of 44c8cd7 (2015-08-10):
>
> org-map-entries: Fix org-agenda-prepare-buffers call
>
> * lisp/org.el (org-map-entries): Check that buffer-file-name is non-nil
> before passing to org-agenda-prepare-buffers.
>
> Like 11e8749, this surfaced as an error when 05efa7a ("Backport commit
> 3a5f751 from Emacs master branch", 2015-08-08) replaced a
> '(while (setq VAR (pop LIST)) BODY)' with '(dolist (VAR LIST) BODY)',
> resulting in the body being executed when '(nil)' was passed to
> org-agenda-prepare-buffers.
Okay. What's the best way to get this fix onto the release branch?
Phil
Information forwarded
to
bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org
:
bug#22469
; Package
emacs,org-mode
.
(Tue, 26 Jan 2016 16:54:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 22469 <at> debbugs.gnu.org (full text, mbox):
phillip.lord <at> russet.org.uk (Phillip Lord) writes:
> Kyle Meyer <kyle <at> kyleam.com> writes:
[...]
>> This should be fixed on the Org side as of 44c8cd7 (2015-08-10):
[...]
> Okay. What's the best way to get this fix onto the release branch?
I'm not sure, but I just asked a related question in bug#22399:
http://thread.gmane.org/gmane.emacs.bugs/111992
--
Kyle
Reply sent
to
Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
:
You have taken responsibility.
(Fri, 01 Dec 2017 21:44:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
phillip.lord <at> russet.org.uk (Phillip Lord)
:
bug acknowledged by developer.
(Fri, 01 Dec 2017 21:44:01 GMT)
Full text and
rfc822 format available.
Message #22 received at 22469-done <at> debbugs.gnu.org (full text, mbox):
Kyle Meyer <kyle <at> kyleam.com> writes:
> phillip.lord <at> russet.org.uk (Phillip Lord) writes:
>
>> Kyle Meyer <kyle <at> kyleam.com> writes:
>
> [...]
>
>>> This should be fixed on the Org side as of 44c8cd7 (2015-08-10):
>
> [...]
>
>> Okay. What's the best way to get this fix onto the release branch?
>
> I'm not sure, but I just asked a related question in bug#22399:
>
> http://thread.gmane.org/gmane.emacs.bugs/111992
Closing this bug since the issue is solved and the fix landed in Emacs
release branch.
Regards,
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 30 Dec 2017 12:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 7 years and 170 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.