GNU bug report logs - #23365
25.0.93; org-mode fails on export with include

Previous Next

Packages: org-mode, emacs;

Reported by: phillip.lord <at> russet.org.uk (Phillip Lord)

Date: Sun, 24 Apr 2016 21:45:02 UTC

Severity: normal

Tags: fixed

Found in version 25.0.93

Fixed in version 25.1

Done: phillip.lord <at> russet.org.uk (Phillip Lord)

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 23365 in the body.
You can then email your comments to 23365 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#23365; Package emacs. (Sun, 24 Apr 2016 21:45: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. (Sun, 24 Apr 2016 21:45:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: phillip.lord <at> russet.org.uk (Phillip Lord)
To: bug-gnu-emacs <at> gnu.org
Subject: 25.0.93; org-mode fails on export with include
Date: Sun, 24 Apr 2016 22:41:23 +0100
Emacs fails in org-mode when exporting; testing from current head.

The error is reproducible with emacs -q. Create the following two files.

==== main.org

* Section A

#+include: "a.org"

====

==== a.org

** Section of A

Here is some text

====

Now run C-cC-e h h

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/scratch/temp-org/a.org" nil 0 2)
  org-export-expand-include-keyword()
  org-export-as(html nil nil nil (:output-file "./main.html"))
  org-export-to-file(html "./main.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)

The error comes from org-map-entries and is not specific to HTML output;
it happens with LaTeX also.







Information forwarded to bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org:
bug#23365; Package emacs,org-mode. (Tue, 26 Apr 2016 15:55:01 GMT) Full text and rfc822 format available.

Message #8 received at 23365 <at> debbugs.gnu.org (full text, mbox):

From: Kaushal Modi <kaushal.modi <at> gmail.com>
To: 23365 <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: 25.0.93; org-mode fails on export with include
Date: Tue, 26 Apr 2016 15:54:35 +0000
[Message part 1 (text/plain, inline)]
This has been fixed in the org-mode git:
http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=44c8cd7136e3fcd1e6bfa08895cac437b7a691fa

@Stefan: I am copying you on this as the above commit that fixes this in
org-mode git was related to a backport commit from emacs git:
http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=ef9637030456b153fd834f4c9202a9264d5ef18d

So probably the same 44c8cd fix has to be applied to the org.el in
emacs-25/master branches too?
-- 

-- 
Kaushal Modi
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org:
bug#23365; Package emacs,org-mode. (Thu, 28 Apr 2016 21:16:01 GMT) Full text and rfc822 format available.

Message #11 received at 23365 <at> debbugs.gnu.org (full text, mbox):

From: phillip.lord <at> russet.org.uk (Phillip Lord)
To: 23365 <at> debbugs.gnu.org
Subject: Re: bug#23365: 25.0.93; org-mode fails on export with include
Date: Thu, 28 Apr 2016 22:14:56 +0100

phillip.lord <at> russet.org.uk (Phillip Lord) writes:

> Emacs fails in org-mode when exporting; testing from current head.
>


I've checked this a little further -- the current org mode on ELPA does
not fail in the same way -- org-map-entries has changed the call from:

    (org-agenda-prepare-buffers
      (list (buffer-file-name (current-buffer))))

to:

    (org-agenda-prepare-buffers
     (and buffer-file-name (list buffer-file-name)))

which fixes the problem.

Is org-mode in core going to be updated before 25.1?

Phil




Information forwarded to bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org:
bug#23365; Package emacs,org-mode. (Thu, 28 Apr 2016 21:34:01 GMT) Full text and rfc822 format available.

Message #14 received at 23365 <at> debbugs.gnu.org (full text, mbox):

From: Kaushal Modi <kaushal.modi <at> gmail.com>
To: Phillip Lord <phillip.lord <at> russet.org.uk>, 23365 <at> debbugs.gnu.org, 
 emacs-org list <emacs-orgmode <at> gnu.org>
Subject: Re: [O] bug#23365: 25.0.93; org-mode fails on export with include
Date: Thu, 28 Apr 2016 21:33:08 +0000
[Message part 1 (text/plain, inline)]
On Thu, Apr 28, 2016 at 5:16 PM Phillip Lord <phillip.lord <at> russet.org.uk>
wrote:

> I've checked this a little further -- the current org mode on ELPA does
> not fail in the same way -- org-map-entries has changed the call from:
>
>     (org-agenda-prepare-buffers
>       (list (buffer-file-name (current-buffer))))
>
> to:
>
>     (org-agenda-prepare-buffers
>      (and buffer-file-name (list buffer-file-name)))
>
> which fixes the problem.
>

That's what I said :)

http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23365#8



> Is org-mode in core going to be updated before 25.1?


 Copying the org-mode ML for this.
-- 

-- 
Kaushal Modi
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org:
bug#23365; Package emacs,org-mode. (Fri, 29 Apr 2016 06:52:02 GMT) Full text and rfc822 format available.

Message #17 received at 23365 <at> debbugs.gnu.org (full text, mbox):

From: Rasmus <rasmus <at> gmx.us>
Cc: 23365 <at> debbugs.gnu.org
Subject: Re: bug#23365: 25.0.93; org-mode fails on export with include
Date: Fri, 29 Apr 2016 08:51:30 +0200
The following message is a courtesy copy of an article
that has been posted to gmane.emacs.orgmode as well.

Kaushal Modi <kaushal.modi <at> gmail.com> writes:

>> Is org-mode in core going to be updated before 25.1?
>
>
>  Copying the org-mode ML for this.

AFAIU, by the time we were ready to merge 8.3, upstream preferred to keep
8.2.

My understanding is that the 8.2-series is not really maintained any
longer, and I don’t know that it contains any promises of forward
comparability.  I guess "backporting" the required changes to Emacs-core
would be the easiest way forward.

Rasmus

-- 
This message is brought to you by the department of redundant departments




Information forwarded to bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org:
bug#23365; Package emacs,org-mode. (Sat, 30 Apr 2016 14:12:02 GMT) Full text and rfc822 format available.

Message #20 received at 23365 <at> debbugs.gnu.org (full text, mbox):

From: phillip.lord <at> russet.org.uk (Phillip Lord)
To: Rasmus <rasmus <at> gmx.us>
Cc: 23365 <at> debbugs.gnu.org
Subject: Re: bug#23365: 25.0.93; org-mode fails on export with include
Date: Sat, 30 Apr 2016 15:11:25 +0100
Rasmus <rasmus <at> gmx.us> writes:

> The following message is a courtesy copy of an article
> that has been posted to gmane.emacs.orgmode as well.
>
> Kaushal Modi <kaushal.modi <at> gmail.com> writes:
>
>>> Is org-mode in core going to be updated before 25.1?
>>
>>
>>  Copying the org-mode ML for this.
>
> AFAIU, by the time we were ready to merge 8.3, upstream preferred to keep
> 8.2.
>
> My understanding is that the 8.2-series is not really maintained any
> longer, and I don’t know that it contains any promises of forward
> comparability.  I guess "backporting" the required changes to Emacs-core
> would be the easiest way forward.


Done! Thanks for the feedback.

Phil




Added tag(s) fixed. Request was from phillip.lord <at> russet.org.uk (Phillip Lord) to control <at> debbugs.gnu.org. (Sat, 30 Apr 2016 14:26:01 GMT) Full text and rfc822 format available.

bug marked as fixed in version 25.1, send any further explanations to 23365 <at> debbugs.gnu.org and phillip.lord <at> russet.org.uk (Phillip Lord) Request was from phillip.lord <at> russet.org.uk (Phillip Lord) to control <at> debbugs.gnu.org. (Sat, 30 Apr 2016 14:26:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 29 May 2016 11:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 17 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.