unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#23365: 25.0.93; org-mode fails on export with include
@ 2016-04-24 21:41 Phillip Lord
  2016-04-26 15:54 ` Kaushal Modi
  2016-04-28 21:14 ` Phillip Lord
  0 siblings, 2 replies; 6+ messages in thread
From: Phillip Lord @ 2016-04-24 21:41 UTC (permalink / raw)
  To: 23365


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.








^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#23365: 25.0.93; org-mode fails on export with include
  2016-04-24 21:41 bug#23365: 25.0.93; org-mode fails on export with include Phillip Lord
@ 2016-04-26 15:54 ` Kaushal Modi
  2016-04-28 21:14 ` Phillip Lord
  1 sibling, 0 replies; 6+ messages in thread
From: Kaushal Modi @ 2016-04-26 15:54 UTC (permalink / raw)
  To: 23365, Stefan Monnier

[-- Attachment #1: Type: text/plain, Size: 483 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 813 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#23365: 25.0.93; org-mode fails on export with include
  2016-04-24 21:41 bug#23365: 25.0.93; org-mode fails on export with include Phillip Lord
  2016-04-26 15:54 ` Kaushal Modi
@ 2016-04-28 21:14 ` Phillip Lord
  2016-04-28 21:33   ` bug#23365: [O] " Kaushal Modi
       [not found]   ` <CAFyQvY2y5HxsdK7+Ln_rD6nYoTT5y-OS6TY1YPw8ksXc-kA9Yw@mail.gmail.com>
  1 sibling, 2 replies; 6+ messages in thread
From: Phillip Lord @ 2016-04-28 21:14 UTC (permalink / raw)
  To: 23365



phillip.lord@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





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#23365: [O] bug#23365: 25.0.93; org-mode fails on export with include
  2016-04-28 21:14 ` Phillip Lord
@ 2016-04-28 21:33   ` Kaushal Modi
       [not found]   ` <CAFyQvY2y5HxsdK7+Ln_rD6nYoTT5y-OS6TY1YPw8ksXc-kA9Yw@mail.gmail.com>
  1 sibling, 0 replies; 6+ messages in thread
From: Kaushal Modi @ 2016-04-28 21:33 UTC (permalink / raw)
  To: phillip.lord, 23365

[-- Attachment #1: Type: text/plain, Size: 641 bytes --]

On Thu, Apr 28, 2016 at 5:16 PM Phillip Lord <phillip.lord@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

[-- Attachment #2: Type: text/html, Size: 1283 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#23365: 25.0.93; org-mode fails on export with include
       [not found]   ` <CAFyQvY2y5HxsdK7+Ln_rD6nYoTT5y-OS6TY1YPw8ksXc-kA9Yw@mail.gmail.com>
@ 2016-04-29  6:51     ` Rasmus
       [not found]     ` <87y47wlxfx.fsf@gmx.us>
  1 sibling, 0 replies; 6+ messages in thread
From: Rasmus @ 2016-04-29  6:51 UTC (permalink / raw)
  Cc: 23365

The following message is a courtesy copy of an article
that has been posted to gmane.emacs.orgmode as well.

Kaushal Modi <kaushal.modi@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





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#23365: 25.0.93; org-mode fails on export with include
       [not found]     ` <87y47wlxfx.fsf@gmx.us>
@ 2016-04-30 14:11       ` Phillip Lord
  0 siblings, 0 replies; 6+ messages in thread
From: Phillip Lord @ 2016-04-30 14:11 UTC (permalink / raw)
  To: Rasmus; +Cc: 23365

Rasmus <rasmus@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@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





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-04-30 14:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-24 21:41 bug#23365: 25.0.93; org-mode fails on export with include Phillip Lord
2016-04-26 15:54 ` Kaushal Modi
2016-04-28 21:14 ` Phillip Lord
2016-04-28 21:33   ` bug#23365: [O] " Kaushal Modi
     [not found]   ` <CAFyQvY2y5HxsdK7+Ln_rD6nYoTT5y-OS6TY1YPw8ksXc-kA9Yw@mail.gmail.com>
2016-04-29  6:51     ` Rasmus
     [not found]     ` <87y47wlxfx.fsf@gmx.us>
2016-04-30 14:11       ` Phillip Lord

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).