emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ilya Yanok <ilya.yanok@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Bug: exporter bug [8.3.1 (8.3.1-elpaplus  <at>  /home/dfeich/.emacs.d/elpa/org-plus-contrib-20150805/)]
Date: Thu, 17 Dec 2015 15:43:14 +0000 (UTC)	[thread overview]
Message-ID: <loom.20151217T163411-395@post.gmane.org> (raw)
In-Reply-To: CALGTQTYxSZaWOKgptX8Qc7azqgjM70RzydKLoTzsVDsq6f3R9g@mail.gmail.com

Hi everybody,

Derek Feichtinger <dfeich <at> gmail.com> writes: 
> The current MELPA version (see version details below) seems to have
problems with
> the exporter. I reinstalled several times from older configurations to
> try and exlude local effects. I get the error with all exporters I tried
> 
> The file I am exporting is
> 
>
https://github.com/dfeich/org-babel-examples/blob/master/latex/latex-example.org
> 
> 
> Best regards
> Derek
> 
> Backtrace (long lines cut for this mail):
> 
> ################
> Debugger entered--Lisp error: (wrong-type-argument listp #("Derek
Feichtinger" 0 17 (:parent (#1))))
>   org-element-set-contents(#("Derek Feichtinger" 0 17 (:parent (#0)))) ...
>   ...
>   org-element-map((#("Derek Feichtinger" 0 17 (:parent #0))) plain-text ...
>   org-export--get-inbuffer-options([cl-struct-org-export-backend latex nil ...
>   org-export-get-environment([cl-struct-org-export-backend latex nil ...
>   org-export-as(latex nil nil nil (:output-file "./latex-example.tex"))
>   org-export-to-file(latex "./latex-example.tex" nil nil nil nil nil
#[(file) ...
>   org-latex-export-to-pdf(nil nil nil nil)
>   (org-open-file (org-latex-export-to-pdf nil s v b))
>   (if a (org-latex-export-to-pdf t s v b) (org-open-file
(org-latex-export-to-pdf nil s v b)))
>   (lambda (a s v b) (if a (org-latex-export-to-pdf t s v b) (org-open-file
(org-latex-export-to-pdf nil s v b))))(nil nil nil nil)
>   org-export-dispatch(nil)
>   call-interactively(org-export-dispatch nil nil)
>   command-execute(org-export-dispatch)
> #############

this is a pretty old report, but I would like to bring it back to life,
since I'm experiencing the same issue and I did some investigation.


I've found that in ox.el org-export--get-inbuffer-options function calls
org-element-map ... 'plain-text with a function that tries to use
org-element-set-element. But according to org-element.el, plaint-text
elements don't have a content and couldn't be set! So I believe this code is
buggy anyway. It's possible that this bug is not triggered in some (most)
configurations, because the code is not executed, but this doesn't make this
code correct anyway.

Unfortunately I'm not an expert in org-mode internals and don't have any
idea how to fix that. Looking forward for your help here.

Regards, Ilya.

  parent reply	other threads:[~2015-12-17 16:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-06  6:01 Bug: exporter bug [8.3.1 (8.3.1-elpaplus @ /home/dfeich/.emacs.d/elpa/org-plus-contrib-20150805/)] Derek Feichtinger
2015-08-06  7:27 ` Nicolas Goaziou
2015-08-06  8:17   ` Derek Feichtinger
2015-12-17 15:43 ` Ilya Yanok [this message]
2015-12-17 17:05   ` Bug: exporter bug [8.3.1 (8.3.1-elpaplus <at> /home/dfeich/.emacs.d/elpa/org-plus-contrib-20150805/)] Nicolas Goaziou
2015-12-18  8:11     ` Ilya Yanok

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20151217T163411-395@post.gmane.org \
    --to=ilya.yanok@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.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).