emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: exporter bug [8.3.1 (8.3.1-elpaplus @ /home/dfeich/.emacs.d/elpa/org-plus-contrib-20150805/)]
@ 2015-08-06  6:01 Derek Feichtinger
  2015-08-06  7:27 ` Nicolas Goaziou
  2015-12-17 15:43 ` Bug: exporter bug [8.3.1 (8.3.1-elpaplus <at> /home/dfeich/.emacs.d/elpa/org-plus-contrib-20150805/)] Ilya Yanok
  0 siblings, 2 replies; 6+ messages in thread
From: Derek Feichtinger @ 2015-08-06  6:01 UTC (permalink / raw)
  To: emacs-orgmode

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

Hi

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)
#############


Configuration
#############

Emacs  : GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8)
 of 2015-05-04 on dflt1w
Package: Org-mode version 8.3.1 (8.3.1-elpaplus @
/home/dfeich/.emacs.d/elpa/org-plus-contrib-20150805/)

current state:
==============
(setq
 org-src-lang-modes '(("ipython" . python) ("ocaml" . tuareg) ("elisp" .
emacs-lisp)
     ("ditaa" . artist) ("asymptote" . asy) ("dot" . fundamental)
     ("sqlite" . sql) ("calc" . fundamental) ("C" . c) ("cpp" . c++)
     ("C++" . c++) ("screen" . shell-script) ("shell" . sh) ("bash" . sh))
 org-tab-first-hook '(org-hide-block-toggle-maybe
org-babel-hide-result-toggle-maybe
     org-babel-header-arg-expand)
 org-speed-command-hook '(org-speed-command-default-hook
org-babel-speed-command-hook)
 org-time-clocksum-format '(:hours "%d" :require-hours t :minutes ":%02d"
:require-minutes t)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-html-format-drawer-function '(lambda (name contents) contents)
 org-log-done 'time
 org-latex-format-inlinetask-function
'org-latex-format-inlinetask-default-function
 org-confirm-shell-link-function 'yes-or-no-p
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-latex-pdf-process '("pdflatex -shell-escape -interaction nonstopmode
-output-directory %o %f" "pdflatex -shell-escape -interaction nonstopmode
-output-directory %o %f" "pdflatex -shell-escape -interaction nonstopmode
-output-directory %o %f")
 org-file-apps '(("\\.pdf.gz\\'" . "evince %s") ("\\.pdf\\'" . "evince %s")
(auto-mode . emacs)
("\\.mm\\'" . default) ("\\.x?html?\\'" . default))
 org-agenda-custom-commands '(("n" "Agenda and all TODO's" ((agenda "")
(alltodo)))
     ("s" "Agenda and waiting tasks"
      ((agenda "" ((org-agenda-span 1) (org-agenda-show-log t)))
(todo "WAIT") (todo "WAITFM")
(todo "TODO"
((org-agenda-skip-function
  (quote
   (org-agenda-skip-entry-if (quote scheduled) (quote deadline))
   )
  )
 (org-agenda-overriding-header
  "unscheduled TODOs without a deadline:")
 )
)
)
      )
     ("h" . "my custom searches") ("hd" todo "DONE")
     ("ha" todo-tree "DONE") ("hw" "waiting tasks" todo "WAIT")
     ("hc" tags "CLOSED<=\"<-4w>\"") ("hm" tags-todo "+mbo")
     ("hu" "unscheduled and no deadline" todo "TODO"
      ((org-agenda-skip-function
(quote
 (org-agenda-skip-entry-if (quote scheduled) (quote deadline)))
)
(org-agenda-overriding-header
"unscheduled TODOs without a deadline:")
)
      )
     )
 org-latex-format-headline-function
'org-latex-format-headline-default-function
 org-capture-templates '(("t" "Todo" entry
 (file+headline (concat org-directory "tasks.org") "Captured Tasks")
 (concat "* TODO %?\n" "  :LOGBOOK:"
  "  - State \"TODO\"       from \"\"           %U\n  %i\n" "  :END:\n"
  "  %a")
 ("n" "Notes + Link" entry (file (concat org-directory "notes.org"))
  "* %?\nEntered on %U\n  %i\n  %a")
 )
("j" "Journal + Link" entry
 (file+datetree (concat org-directory "journal.org"))
 "* %?\nEntered on %U\n  %i\n  %a")
)
 org-agenda-include-diary t
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-latex-format-drawer-function '(lambda (name contents) contents)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-latex-to-mathml-jar-file "~/.emacs.d/javalib/mathtoweb.jar"
 org-babel-pre-tangle-hook '(save-buffer)
 org-mode-hook '(my-org-hook-additions my-org-file-apps-additions
org-clock-load
#[nil "\300\301\302\303\304$\207"
  [org-add-hook change-major-mode-hook org-show-block-all append local] 5]
#[nil "\300\301\302\303\304$\207"
  [org-add-hook change-major-mode-hook org-babel-show-result-all append
local]
  5]
org-babel-result-hide-spec org-babel-hide-all-hashes org-eldoc-load)
 org-refile-targets '((nil :maxlevel . 9) (org-agenda-files :maxlevel . 9))
 org-outline-path-complete-in-steps nil
 org-latex-to-mathml-convert-command "java -jar %j -unicode -force -df %o
%I"
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-use-speed-commands t
 org-ascii-format-drawer-function '(lambda (name contents width) contents)
 org-clock-persist 'history
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
org-babel-execute-safely-maybe)
 org-refile-use-outline-path t
 org-directory "~/Dropbox/org/agenda/"
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
 org-cycle-show-empty-lines org-optimize-window-after-visibility-change)
 org-plantuml-jar-path "~/.emacs.d/javalib/plantuml.jar"
 org-latex-create-formula-image-program 'imagemagick
 org-ditaa-eps-jar-path
"/home/dfeich/.emacs.d/elpa/contrib/scripts/DitaaEps.jar"
 org-latex-packages-alist '(("" "minted"))
 org-babel-tangle-lang-exts '(("D" . "d") ("C++" . "cpp") ("python" . "py")
     ("emacs-lisp" . "el") ("elisp" . "el"))
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-log-into-drawer t
 org-latex-minted-langs '((ipython "python") (emacs-lisp "common-lisp") (cc
"c++")
 (cperl "perl") (shell-script "bash") (caml "ocaml"))
 org-ditaa-jar-path "~/.emacs.d/javalib/ditaa.jar"
 org-html-format-headline-function
'org-html-format-headline-default-function
 org-completion-use-ido t
 org-babel-load-languages '((plantuml . t) (dot . t) (ditaa . t)
(emacs-lisp . t) (python . t)
   (ipython . t) (sqlite . t) (sh . t) (calc . t) (gnuplot . t) (C . t))
 org-html-format-inlinetask-function
'org-html-format-inlinetask-default-function
 org-agenda-files '("~/Dropbox/org/agenda/tasks.org" "~/Dropbox/org/agenda/
private.org"
   "~/Dropbox/org/agenda/tasks-n900.org")
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 )

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

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

* Re: Bug: exporter bug [8.3.1 (8.3.1-elpaplus @ /home/dfeich/.emacs.d/elpa/org-plus-contrib-20150805/)]
  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 ` Bug: exporter bug [8.3.1 (8.3.1-elpaplus <at> /home/dfeich/.emacs.d/elpa/org-plus-contrib-20150805/)] Ilya Yanok
  1 sibling, 1 reply; 6+ messages in thread
From: Nicolas Goaziou @ 2015-08-06  7:27 UTC (permalink / raw)
  To: Derek Feichtinger; +Cc: emacs-orgmode

Hello,

Derek Feichtinger <dfeich@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

I cannot reproduce it. Could you send the full backtrace?

Regards,

-- 
Nicolas Goaziou

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

* Re: Bug: exporter bug [8.3.1 (8.3.1-elpaplus @ /home/dfeich/.emacs.d/elpa/org-plus-contrib-20150805/)]
  2015-08-06  7:27 ` Nicolas Goaziou
@ 2015-08-06  8:17   ` Derek Feichtinger
  0 siblings, 0 replies; 6+ messages in thread
From: Derek Feichtinger @ 2015-08-06  8:17 UTC (permalink / raw)
  To: Derek Feichtinger, emacs-orgmode

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

Hi Nicolas

I must apologize to you. Following your mail, I now did a completely clean
rebuild from a naked emacs -Q, and it works fine. I should have made that
my default way of installing org for a long time, but the simple
recompiling often worked fine - not this time... sorry, again.

Thank you very much for your prompt reaction
Derek

On Thu, Aug 6, 2015 at 9:27 AM, Nicolas Goaziou <mail@nicolasgoaziou.fr>
wrote:

> Hello,
>
> Derek Feichtinger <dfeich@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
>
> I cannot reproduce it. Could you send the full backtrace?
>
> Regards,
>
> --
> Nicolas Goaziou
>

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

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

* Re: Bug: exporter bug [8.3.1 (8.3.1-elpaplus  <at>  /home/dfeich/.emacs.d/elpa/org-plus-contrib-20150805/)]
  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-12-17 15:43 ` Ilya Yanok
  2015-12-17 17:05   ` Nicolas Goaziou
  1 sibling, 1 reply; 6+ messages in thread
From: Ilya Yanok @ 2015-12-17 15:43 UTC (permalink / raw)
  To: emacs-orgmode

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.

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

* Re: Bug: exporter bug [8.3.1 (8.3.1-elpaplus <at> /home/dfeich/.emacs.d/elpa/org-plus-contrib-20150805/)]
  2015-12-17 15:43 ` Bug: exporter bug [8.3.1 (8.3.1-elpaplus <at> /home/dfeich/.emacs.d/elpa/org-plus-contrib-20150805/)] Ilya Yanok
@ 2015-12-17 17:05   ` Nicolas Goaziou
  2015-12-18  8:11     ` Ilya Yanok
  0 siblings, 1 reply; 6+ messages in thread
From: Nicolas Goaziou @ 2015-12-17 17:05 UTC (permalink / raw)
  To: Ilya Yanok; +Cc: emacs-orgmode

Hello,

Ilya Yanok <ilya.yanok@gmail.com> writes:

> 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.

Since cd439bc5138fc22a4f2532f90c87629c1deec3e3 (committed 2 years ago),
`org-element-set-element' can handle strings fine. 

Also, I cannot reproduce your problem in current stable release of Org.
You may want to update it.


Regards,

-- 
Nicolas Goaziou

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

* Re: Bug: exporter bug [8.3.1 (8.3.1-elpaplus <at> /home/dfeich/.emacs.d/elpa/org-plus-contrib-20150805/)]
  2015-12-17 17:05   ` Nicolas Goaziou
@ 2015-12-18  8:11     ` Ilya Yanok
  0 siblings, 0 replies; 6+ messages in thread
From: Ilya Yanok @ 2015-12-18  8:11 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: mail

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

Hello, thanks for your reply.

On Thu, Dec 17, 2015 at 6:03 PM Nicolas Goaziou <mail@nicolasgoaziou.fr>
wrote:

> Since cd439bc5138fc22a4f2532f90c87629c1deec3e3 (committed 2 years ago),
> `org-element-set-element' can handle strings fine.
>

Yes, you are right. I got confused by the indentation.


> Also, I cannot reproduce your problem in current stable release of Org.
> You may want to update it.
>

It's a clean Spacemacs installation, it get's fresh Org from ELPA and
compiles it. I found out that removing the *.elc files helps... weird. It
might be a Spacemacs-related issue or a general Emacs issue but looks like
Org-mode is fine :)

Thanks for your help!

Regards, Ilya.

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

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

end of thread, other threads:[~2015-12-18  8:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` Bug: exporter bug [8.3.1 (8.3.1-elpaplus <at> /home/dfeich/.emacs.d/elpa/org-plus-contrib-20150805/)] Ilya Yanok
2015-12-17 17:05   ` Nicolas Goaziou
2015-12-18  8:11     ` Ilya Yanok

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).