emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [bug] Beamer export fails in current master
@ 2014-01-11  3:40 James Harkins
  2014-01-11  8:25 ` Nicolas Goaziou
  0 siblings, 1 reply; 7+ messages in thread
From: James Harkins @ 2014-01-11  3:40 UTC (permalink / raw)
  To: orgmode

I just started to work on the issue of wrapping the title command in beamer 
export within a frame, but found that I can't export to Beamer at all in 
the master branch (after pulling just today).

I can export this minimal example successfully if I check out 
release_8.2.4, but it fails in current master.

~~
#+startup: beamer
#+LaTeX_CLASS: beamer
#+LaTeX_CLASS_OPTIONS: [presentation]
#+BEAMER_THEME: default

* Section header
** Slide header
*** Block header
    Free text, which could be long.
    - List item
~~

Bisecting revealed:

~~
e32ebb6c1ad1455cc34d29cc0881cff84ebde12f is the first bad commit
commit e32ebb6c1ad1455cc34d29cc0881cff84ebde12f
Author: Nicolas Goaziou <n.goaziou@gmail.com>
Date:   Sun Jan 5 00:37:37 2014 +0100

    org-element: Change data structure for cache
    
    * lisp/org-element.el (org-element-at-point, org-element-cache-get,
      org-element-cache-put, org-element--cache-sync): Complete rewrite to
      use new data structure.
    (org-element-context, org-element-cache-reset): Slight change in order
    to use new tools to access cached data.
    (org-element-cache-merge-changes-threshold): Renamed from
    `org-element--cache-merge-changes-threshold'.
    (org-element-cache-sync-idle-time): Renamed from
    `org-element--cache-sync-idle-time'.
    (org-element--cache-objects): New variable.
    
    Now elements are stored in AVL tree and objects in a hash table.  Also
    moved functions relative to cache into a specific section of the file.

:040000 040000 b8c02c245efd135d4e52bb84bf4df59a7baa81ea 
98c018db02b5336e44e8f7ad1f54870e724fd79d M	lisp
~~

Backtrace:

Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
  avl-tree--dummyroot(nil)
  (avl-tree--node-left (avl-tree--dummyroot tree))
  (avl-tree--root org-element--cache)
  (let ((node ...) last) (catch (quote found) (while node ...) last))
  (if (not (wholenump key)) (gethash key org-element--cache-objects) (let 
(... last) (catch ... ... last)))
  (progn (when (and ... ...) (org-element--cache-sync ...)) (if (not ...) 
(gethash key org-element--cache-objects) (let ... ...)))
  (if (and org-element-use-cache org-element--cache) (progn (when ... ...) 
(if ... ... ...)))
  (when (and org-element-use-cache org-element--cache) (when (and ... ...) 
(org-element--cache-sync ...)) (if (not ...) (gethash key 
org-element--cache-objects) (let ... ...)))
  org-element-cache-get(33)
  (let* ((cached ...) (begin ...)) (cond (... ... ... ...) (... ...) (... 
... ... ...) (t ...)))
  (let ((origin ...) element next) (end-of-line) (skip-chars-backward " 
	\n") (cond (... ...) (... ... ...)) (goto-char origin) (let* (... ...) 
(cond ... ... ... ...)) (let (... parent special-flag) (while t ... ... 
...)))
  (save-restriction (widen) (let (... element next) (end-of-line) 
(skip-chars-backward " 
	\n") (cond ... ...) (goto-char origin) (let* ... ...) (let ... ...)))
  (save-excursion (save-restriction (widen) (let ... ... ... ... ... ... 
...)))
  (org-with-wide-buffer (let (... element next) (end-of-line) 
(skip-chars-backward " 
	\n") (cond ... ...) (goto-char origin) (let* ... ...) (let ... ...)))
  (catch (quote exit) (org-with-wide-buffer (let ... ... ... ... ... ... 
...)))
  org-element-at-point()
  (let ((element ...)) (when (eq ... ...) (let ... ...)))
  (while (re-search-forward regexp nil t) (let (...) (when ... ...)))
  (save-restriction (widen) (goto-char (point-min)) (while 
(re-search-forward regexp nil t) (let ... ...)) plist)
  (save-excursion (save-restriction (widen) (goto-char ...) (while ... ...) 
plist))
  (org-with-wide-buffer (goto-char (point-min)) (while (re-search-forward 
regexp nil t) (let ... ...)) plist)
  (lambda (&optional files plist) (org-with-wide-buffer (goto-char ...) 
(while ... ...) 
plist))(("/home/dlm/Documents/conferences/scweek2013/shows/test-all.org") 
nil)
  funcall((lambda (&optional files plist) (org-with-wide-buffer (goto-char 
...) (while ... ...) plist)) 
("/home/dlm/Documents/conferences/scweek2013/shows/test-all.org") nil)
  (setq plist (funcall get-options (and buffer-file-name ...) nil))
  (let* (plist get-options (case-fold-search t) (options ...) (regexp ...) 
(find-properties ...) (get-options ...)) (setq plist (funcall get-options 
... nil)) (dolist (keyword org-element-document-properties plist) (dolist 
... ...)))
  org-export--get-inbuffer-options([cl-struct-org-export-backend beamer 
latex ((bold . org-beamer-bold) (export-block . org-beamer-export-block) 
(export-snippet . org-beamer-export-snippet) (headline . 
org-beamer-headline) (item . org-beamer-item) (keyword . 
org-beamer-keyword) (link . org-beamer-link) (plain-list . 
org-beamer-plain-list) (radio-target . org-beamer-radio-target) (target . 
org-beamer-target) (template . org-beamer-template)) ((:beamer-theme 
"BEAMER_THEME" nil org-beamer-theme) (:beamer-color-theme 
"BEAMER_COLOR_THEME" nil nil t) (:beamer-font-theme "BEAMER_FONT_THEME" nil 
nil t) (:beamer-inner-theme "BEAMER_INNER_THEME" nil nil t) 
(:beamer-outer-theme "BEAMER_OUTER_THEME" nil nil t) (:beamer-header-extra 
"BEAMER_HEADER" nil nil newline) (:headline-levels nil "H" 
org-beamer-frame-level) (:latex-class "LATEX_CLASS" nil "beamer" t)) nil 
("BEAMER") (108 1 (... ... ... ...))])
  (org-combine-plists (org-export--get-global-options backend) ext-plist 
(org-export--get-inbuffer-options backend) (and subtreep 
(org-export--get-subtree-options backend)) (list :back-end backend 
:translate-alist (org-export-get-all-transcoders backend) 
:footnote-definition-alist (let ... ...) :id-alist (let ... ... alist)))
  org-export-get-environment([cl-struct-org-export-backend beamer latex 
((bold . org-beamer-bold) (export-block . org-beamer-export-block) 
(export-snippet . org-beamer-export-snippet) (headline . 
org-beamer-headline) (item . org-beamer-item) (keyword . 
org-beamer-keyword) (link . org-beamer-link) (plain-list . 
org-beamer-plain-list) (radio-target . org-beamer-radio-target) (target . 
org-beamer-target) (template . org-beamer-template)) ((:beamer-theme 
"BEAMER_THEME" nil org-beamer-theme) (:beamer-color-theme 
"BEAMER_COLOR_THEME" nil nil t) (:beamer-font-theme "BEAMER_FONT_THEME" nil 
nil t) (:beamer-inner-theme "BEAMER_INNER_THEME" nil nil t) 
(:beamer-outer-theme "BEAMER_OUTER_THEME" nil nil t) (:beamer-header-extra 
"BEAMER_HEADER" nil nil newline) (:headline-levels nil "H" 
org-beamer-frame-level) (:latex-class "LATEX_CLASS" nil "beamer" t)) nil 
("BEAMER") (108 1 (... ... ... ...))] nil nil)
  (org-combine-plists info (org-export-get-environment backend subtreep 
ext-plist))
  (org-export-install-filters (org-combine-plists info 
(org-export-get-environment backend subtreep ext-plist)))
  (setq info (org-export-install-filters (org-combine-plists info ...)))
  (progn (run-hook-with-args (quote org-export-before-processing-hook) 
(org-export-backend-name backend)) (org-export-expand-include-keyword) 
(org-macro-initialize-templates) (org-macro-replace-all 
org-macro-templates) (org-export-execute-babel-code) 
(org-update-radio-target-regexp) (goto-char (point-min)) (save-excursion 
(run-hook-with-args ... ...)) (setq info (org-export-install-filters ...)) 
(org-macro-replace-all (list ... ... ... ...)) (setq tree 
(org-element-parse-buffer nil visible-only)) 
(org-export-remove-uninterpreted-data tree info) (let (...) (dolist ... 
...)) (setq tree (org-export-filter-apply-functions ... tree info)) (setq 
info (org-combine-plists info ...)) (let* (... ... ... ...) 
(org-no-properties ...)))
  (save-current-buffer (set-buffer --buf-copy) (goto-char (point-min)) 
(progn (run-hook-with-args ... ...) (org-export-expand-include-keyword) 
(org-macro-initialize-templates) (org-macro-replace-all 
org-macro-templates) (org-export-execute-babel-code) 
(org-update-radio-target-regexp) (goto-char ...) (save-excursion ...) (setq 
info ...) (org-macro-replace-all ...) (setq tree ...) 
(org-export-remove-uninterpreted-data tree info) (let ... ...) (setq tree 
...) (setq info ...) (let* ... ...)))
  (with-current-buffer --buf-copy (goto-char (point-min)) (progn 
(run-hook-with-args ... ...) (org-export-expand-include-keyword) 
(org-macro-initialize-templates) (org-macro-replace-all 
org-macro-templates) (org-export-execute-babel-code) 
(org-update-radio-target-regexp) (goto-char ...) (save-excursion ...) (setq 
info ...) (org-macro-replace-all ...) (setq tree ...) 
(org-export-remove-uninterpreted-data tree info) (let ... ...) (setq tree 
...) (setq info ...) (let* ... ...)))
  (unwind-protect (with-current-buffer --buf-copy (goto-char ...) (progn 
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...)) (and 
(buffer-live-p --buf-copy) (progn ... ...)))
  (let ((--buf-copy ...)) (unwind-protect (with-current-buffer --buf-copy 
... ...) (and ... ...)))
  (org-export-with-buffer-copy (run-hook-with-args (quote 
org-export-before-processing-hook) (org-export-backend-name backend)) 
(org-export-expand-include-keyword) (org-macro-initialize-templates) 
(org-macro-replace-all org-macro-templates) (org-export-execute-babel-code) 
(org-update-radio-target-regexp) (goto-char (point-min)) (save-excursion 
(run-hook-with-args ... ...)) (setq info (org-export-install-filters ...)) 
(org-macro-replace-all (list ... ... ... ...)) (setq tree 
(org-element-parse-buffer nil visible-only)) 
(org-export-remove-uninterpreted-data tree info) (let (...) (dolist ... 
...)) (setq tree (org-export-filter-apply-functions ... tree info)) (setq 
info (org-combine-plists info ...)) (let* (... ... ... ...) 
(org-no-properties ...)))
  (let* ((org-export-current-backend ...) (info ...) tree) 
(org-export-with-buffer-copy (run-hook-with-args ... ...) 
(org-export-expand-include-keyword) (org-macro-initialize-templates) 
(org-macro-replace-all org-macro-templates) (org-export-execute-babel-code) 
(org-update-radio-target-regexp) (goto-char ...) (save-excursion ...) (setq 
info ...) (org-macro-replace-all ...) (setq tree ...) 
(org-export-remove-uninterpreted-data tree info) (let ... ...) (setq tree 
...) (setq info ...) (let* ... ...)))
  (save-restriction (cond (... ...) (subtreep ... ... ... ...)) (let* (... 
... tree) (org-export-with-buffer-copy ... ... ... ... ... ... ... ... ... 
... ... ... ... ... ... ...)))
  (save-excursion (save-restriction (cond ... ...) (let* ... ...)))
  org-export-as(beamer nil nil nil nil)
  (let ((output ...) (buffer ...) (encoding buffer-file-coding-system)) 
(when (and ... ...) (org-kill-new output)) (with-current-buffer buffer 
(erase-buffer) (setq buffer-file-coding-system encoding) (insert output) 
(goto-char ...) (and ... ...)) (when 
org-export-show-temporary-export-buffer (switch-to-buffer-other-window 
buffer)) buffer)
  (if async (org-export-async-start (\` ...) (\` ...)) (let (... ... ...) 
(when ... ...) (with-current-buffer buffer ... ... ... ... ...) (when 
org-export-show-temporary-export-buffer ...) buffer))
  org-export-to-buffer(beamer "*Org BEAMER Export*" nil nil nil nil nil 
(lambda nil (LaTeX-mode)))
  org-beamer-export-as-latex(nil nil nil nil)
  funcall(org-beamer-export-as-latex nil nil nil nil)
  (save-excursion (when arg (if ... ... ...)) (funcall action (and ... t) 
(and ... t) (and ... t) (and ... t)))
  (cond ((eql action ...) (org-export-insert-default-template nil optns)) 
((eql action ...) (org-export-stack)) ((eql action ...) 
(org-publish-current-file ... ...)) ((eql action ...) 
(org-publish-current-project ... ...)) ((eql action ...) (org-publish ... 
... ...)) ((eql action ...) (org-publish-all ... ...)) (t (save-excursion 
... ...)))
  (case action (template (org-export-insert-default-template nil optns)) 
(stack (org-export-stack)) (publish-current-file (org-publish-current-file 
... ...)) (publish-current-project (org-publish-current-project ... ...)) 
(publish-choose-project (org-publish ... ... ...)) (publish-all 
(org-publish-all ... ...)) (otherwise (save-excursion ... ...)))
  (let* ((input ...) (action ...) (optns ...)) (unless (memq ... optns) 
(move-marker org-export-dispatch-last-position nil)) (case action (template 
...) (stack ...) (publish-current-file ...) (publish-current-project ...) 
(publish-choose-project ...) (publish-all ...) (otherwise ...)))
  org-export-dispatch(nil)
  call-interactively(org-export-dispatch nil nil)

Enjoy!
hjh

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

* Re: [bug] Beamer export fails in current master
  2014-01-11  3:40 [bug] Beamer export fails in current master James Harkins
@ 2014-01-11  8:25 ` Nicolas Goaziou
       [not found]   ` <CAFniQ7XfifzACfVQLTTtesmUaCOpM3Q-esyYMorc7KFUQcmRhg@mail.gmail.com>
  0 siblings, 1 reply; 7+ messages in thread
From: Nicolas Goaziou @ 2014-01-11  8:25 UTC (permalink / raw)
  To: James Harkins; +Cc: orgmode

Hello,

James Harkins <jamshark70@gmail.com> writes:

> I just started to work on the issue of wrapping the title command in beamer 
> export within a frame, but found that I can't export to Beamer at all in 
> the master branch (after pulling just today).

You need to restart Emacs.


Regards,

-- 
Nicolas Goaziou

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

* Fwd: [bug] Beamer export fails in current master
       [not found]   ` <CAFniQ7XfifzACfVQLTTtesmUaCOpM3Q-esyYMorc7KFUQcmRhg@mail.gmail.com>
@ 2014-01-11  9:44     ` James Harkins
  2014-01-15 21:29       ` Nicolas Goaziou
  0 siblings, 1 reply; 7+ messages in thread
From: James Harkins @ 2014-01-11  9:44 UTC (permalink / raw)
  To: Emacs-orgmode

Sorry, gmail's "reply" by default includes only the sender, not the list...
hjh


---------- Forwarded message ----------
From: James Harkins <jamshark70@gmail.com>
Date: Sat, Jan 11, 2014 at 5:42 PM
Subject: Re: [bug] Beamer export fails in current master
To: Nicolas Goaziou <n.goaziou@gmail.com>


On Sat, Jan 11, 2014 at 4:25 PM, Nicolas Goaziou <n.goaziou@gmail.com> wrote:
> Hello,
>
> James Harkins <jamshark70@gmail.com> writes:
>
>> I just started to work on the issue of wrapping the title command in beamer
>> export within a frame, but found that I can't export to Beamer at all in
>> the master branch (after pulling just today).
>
> You need to restart Emacs.

Fine thought, but my bisect regimen went something like this:

1. Delete all elc files from the location from which I'm loading org.

2. Quit emacs.

3. At every bisect step, launch Emacs fresh with "emacs
/path/to/test-file.org" and then do nothing except C-c C-e l B. Then
quit Emacs.

4. If I got the error, git bisect bad. If I got an export buffer of
LaTeX code, git bisect good.

When I got the error, it was always consistently reproducible for that
revision, and it was always enough to launch Emacs, open the file and
try the export, no fancy other things to mess up the cache.

To cite John Cleese, "I may be an idiot, but I'm no fool." [1] :-p

hjh

[1] http://www.ibras.dk/montypython/episode20.htm#13

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

* Re: Fwd: [bug] Beamer export fails in current master
  2014-01-11  9:44     ` Fwd: " James Harkins
@ 2014-01-15 21:29       ` Nicolas Goaziou
  2014-01-18  1:39         ` James Harkins
  0 siblings, 1 reply; 7+ messages in thread
From: Nicolas Goaziou @ 2014-01-15 21:29 UTC (permalink / raw)
  To: jamshark70; +Cc: Emacs-orgmode

Hello,

James Harkins <jamshark70@gmail.com> writes:

> Fine thought, but my bisect regimen went something like this:
>
> 1. Delete all elc files from the location from which I'm loading org.
>
> 2. Quit emacs.
>
> 3. At every bisect step, launch Emacs fresh with "emacs
> /path/to/test-file.org" and then do nothing except C-c C-e l B. Then
> quit Emacs.
>
> 4. If I got the error, git bisect bad. If I got an export buffer of
> LaTeX code, git bisect good.
>
> When I got the error, it was always consistently reproducible for that
> revision, and it was always enough to launch Emacs, open the file and
> try the export, no fancy other things to mess up the cache.

I see nothing wrong in that process. Can you still reproduce the error
with latest Org?


Regards,

-- 
Nicolas Goaziou

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

* Re: Fwd: [bug] Beamer export fails in current master
  2014-01-15 21:29       ` Nicolas Goaziou
@ 2014-01-18  1:39         ` James Harkins
  2014-01-18 16:33           ` Nicolas Goaziou
  0 siblings, 1 reply; 7+ messages in thread
From: James Harkins @ 2014-01-18  1:39 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: Emacs-orgmode

On Thursday, January 16, 2014 5:29:32 AM HKT, Nicolas Goaziou wrote:
> I see nothing wrong in that process. Can you still reproduce the error
> with latest Org?

Quite strange. I just moved up to current master -- "Org-mode version 
8.2.5f (release_8.2.5f-518-gd74205 @ /home/dlm/share/org-mode.git/lisp/)" 
-- HEAD is:

~~
commit d74205b0f9e0707642c7b81e1c33a4a059323bea
Author: Nicolas Goaziou <n.goaziou@gmail.com>
Date:   Fri Jan 17 23:05:20 2014 +0100

    ox-koma-letter: Improve defcustom docstrings
~~

Now, with a simple org file, just a few frames, C-c C-e l B finishes 
successfully. With my full presentation, I get a different error [1].

Moreover, I wanted to see if the :noexport: tags had something to do with 
it, so I hit shift-tab twice to show all and then M-S-5 :noexport: RET RET, 
then "!" to replace all. It completed the second replacement (third 
top-level heading) and threw another error related to org-element--cache 
[2].

You can get my files at:

https://github.com/jamshark70/scweek2014

The one I was trying to export is ./shows/01-intro/01-contents.org. To 
produce the .tex file, you'll also need ./shows/slidehead.org and 
./shows/glossary.org.

It's not especially pressing -- I can keep using org 8.2.4. But, for 
whatever reason, org element cache seems to be broken in my environment.

hjh

[1]
Debugger entered--Lisp error: (wrong-number-of-arguments #[(tree data) 
"\303\b\304H	>\204
[tree cl-struct-avl-tree--tags data avl-tree--do-delete 0 error 
"avl-tree--cmpfun accessing a non-avl-tree-" 2 "avl-tree--dummyroot 
accessing a non-avl-tree-" 1] 5 
("/usr/share/emacs/23.3/lisp/emacs-lisp/avl-tree.elc" . 14229)] 4)
  avl-tree-delete([cl-struct-avl-tree- [[[[nil nil ... 0] [nil nil ... 0] 
... 0] [nil [nil nil ... 0] ... 1] ... 0] nil nil 0] 
org-element--cache-compare] (keyword (:key "EMAIL" :value "" :begin 130 
:end 141 :post-blank 1 :post-affiliated 130 :parent nil)) nil t)
  (cond ((not data) (throw ... t)) ((> ... end) nil) (t (setq end ...) 
(avl-tree-delete org-element--cache data nil t)))
  (let ((node ...) data) (while node (let* ... ...)) (cond (... ...) (... 
nil) (t ... ...)))
  (while (let (... data) (while node ...) (cond ... ... ...)))
  (let ((beg ...)) (while (let ... ... ...)))
  (let ((inhibit-quit t) (offset ...) (end ...)) (let (...) (while ...)) 
(unless (zerop offset) (catch ... ...)))
  (catch (quote escape) (let (... ... ...) (let ... ...) (unless ... ...)))
  (progn (catch (quote escape) (let ... ... ...)) 
(org-element--cache-cancel-changes))
  (if (org-element--cache-pending-changes-p) (progn (catch ... ...) 
(org-element--cache-cancel-changes)))
  (when (org-element--cache-pending-changes-p) (catch (quote escape) (let 
... ... ...)) (org-element--cache-cancel-changes))
  (save-current-buffer (set-buffer buffer) (when 
(org-element--cache-pending-changes-p) (catch ... ...) 
(org-element--cache-cancel-changes)))
  (with-current-buffer buffer (when (org-element--cache-pending-changes-p) 
(catch ... ...) (org-element--cache-cancel-changes)))
  (progn (with-current-buffer buffer (when ... ... ...)))
  (if (buffer-live-p buffer) (progn (with-current-buffer buffer ...)))
  (when (buffer-live-p buffer) (with-current-buffer buffer (when ... ... 
...)))
  org-element--cache-sync(#<buffer 01-contents.org<2>>)
  (progn (org-element--cache-sync (current-buffer)))
  (if (and (not ignore-changes) (org-element--cache-pending-changes-p)) 
(progn (org-element--cache-sync ...)))
  (when (and (not ignore-changes) (org-element--cache-pending-changes-p)) 
(org-element--cache-sync (current-buffer)))
  (progn (when (and ... ...) (org-element--cache-sync ...)) (if (not ...) 
(gethash key org-element--cache-objects) (let ... ...)))
  (if (and org-element-use-cache org-element--cache) (progn (when ... ...) 
(if ... ... ...)))
  (when (and org-element-use-cache org-element--cache) (when (and ... ...) 
(org-element--cache-sync ...)) (if (not ...) (gethash key 
org-element--cache-objects) (let ... ...)))
  org-element-cache-get(3203)
  (let* ((cached ...) (begin ...)) (cond (... ... ... ...) (... ...) (... 
... ... ...) (t ...)))
  (let ((origin ...) element next) (end-of-line) (skip-chars-backward " 
	\n") (cond (... ...) (... ... ...)) (goto-char origin) (let* (... ...) 
(cond ... ... ... ...)) (let (... parent special-flag) (while t ... ... 
...)))
  (save-restriction (widen) (let (... element next) (end-of-line) 
(skip-chars-backward " 
	\n") (cond ... ...) (goto-char origin) (let* ... ...) (let ... ...)))
  (save-excursion (save-restriction (widen) (let ... ... ... ... ... ... 
...)))
  (org-with-wide-buffer (let (... element next) (end-of-line) 
(skip-chars-backward " 
	\n") (cond ... ...) (goto-char origin) (let* ... ...) (let ... ...)))
  (catch (quote exit) (org-with-wide-buffer (let ... ... ... ... ... ... 
...)))
  org-element-at-point()
  (progn (org-element-at-point))
  (unwind-protect (progn (org-element-at-point)) (set-match-data 
save-match-data-internal (quote evaporate)))
  (let ((save-match-data-internal ...)) (unwind-protect (progn ...) 
(set-match-data save-match-data-internal ...)))
  (save-match-data (org-element-at-point))
  (let ((element ...)) (when (eq ... ...) (beginning-of-line) (let* ... ... 
...)))
  (while (re-search-forward "^[ 	]*#\\+INCLUDE:" nil t) (let (...) (when 
... ... ...)))
  (let ((case-fold-search t)) (goto-char (point-min)) (while 
(re-search-forward "^[ 	]*#\\+INCLUDE:" nil t) (let ... ...)))
  org-export-expand-include-keyword()
  (progn (run-hook-with-args (quote org-export-before-processing-hook) 
(org-export-backend-name backend)) (org-export-expand-include-keyword) 
(org-macro-initialize-templates) (org-macro-replace-all 
org-macro-templates) (org-export-execute-babel-code) 
(org-update-radio-target-regexp) (goto-char (point-min)) (save-excursion 
(run-hook-with-args ... ...)) (setq info (org-export-install-filters ...)) 
(org-macro-replace-all (list ... ... ... ...)) (setq tree 
(org-element-parse-buffer nil visible-only)) 
(org-export-remove-uninterpreted-data tree info) (let (...) (dolist ... 
...)) (setq tree (org-export-filter-apply-functions ... tree info)) (setq 
info (org-combine-plists info ...)) (let* (... ... ... ...) 
(org-no-properties ...)))
  (save-current-buffer (set-buffer --buf-copy) (goto-char (point-min)) 
(progn (run-hook-with-args ... ...) (org-export-expand-include-keyword) 
(org-macro-initialize-templates) (org-macro-replace-all 
org-macro-templates) (org-export-execute-babel-code) 
(org-update-radio-target-regexp) (goto-char ...) (save-excursion ...) (setq 
info ...) (org-macro-replace-all ...) (setq tree ...) 
(org-export-remove-uninterpreted-data tree info) (let ... ...) (setq tree 
...) (setq info ...) (let* ... ...)))
  (with-current-buffer --buf-copy (goto-char (point-min)) (progn 
(run-hook-with-args ... ...) (org-export-expand-include-keyword) 
(org-macro-initialize-templates) (org-macro-replace-all 
org-macro-templates) (org-export-execute-babel-code) 
(org-update-radio-target-regexp) (goto-char ...) (save-excursion ...) (setq 
info ...) (org-macro-replace-all ...) (setq tree ...) 
(org-export-remove-uninterpreted-data tree info) (let ... ...) (setq tree 
...) (setq info ...) (let* ... ...)))
  (unwind-protect (with-current-buffer --buf-copy (goto-char ...) (progn 
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...)) (and 
(buffer-live-p --buf-copy) (progn ... ...)))
  (let ((--buf-copy ...)) (unwind-protect (with-current-buffer --buf-copy 
... ...) (and ... ...)))
  (org-export-with-buffer-copy (run-hook-with-args (quote 
org-export-before-processing-hook) (org-export-backend-name backend)) 
(org-export-expand-include-keyword) (org-macro-initialize-templates) 
(org-macro-replace-all org-macro-templates) (org-export-execute-babel-code) 
(org-update-radio-target-regexp) (goto-char (point-min)) (save-excursion 
(run-hook-with-args ... ...)) (setq info (org-export-install-filters ...)) 
(org-macro-replace-all (list ... ... ... ...)) (setq tree 
(org-element-parse-buffer nil visible-only)) 
(org-export-remove-uninterpreted-data tree info) (let (...) (dolist ... 
...)) (setq tree (org-export-filter-apply-functions ... tree info)) (setq 
info (org-combine-plists info ...)) (let* (... ... ... ...) 
(org-no-properties ...)))
  (let* ((org-export-current-backend ...) (info ...) tree) 
(org-export-with-buffer-copy (run-hook-with-args ... ...) 
(org-export-expand-include-keyword) (org-macro-initialize-templates) 
(org-macro-replace-all org-macro-templates) (org-export-execute-babel-code) 
(org-update-radio-target-regexp) (goto-char ...) (save-excursion ...) (setq 
info ...) (org-macro-replace-all ...) (setq tree ...) 
(org-export-remove-uninterpreted-data tree info) (let ... ...) (setq tree 
...) (setq info ...) (let* ... ...)))
  (save-restriction (cond (... ...) (subtreep ... ... ... ...)) (let* (... 
... tree) (org-export-with-buffer-copy ... ... ... ... ... ... ... ... ... 
... ... ... ... ... ... ...)))
  (save-excursion (save-restriction (cond ... ...) (let* ... ...)))
  org-export-as(beamer nil nil nil nil)
  (let ((output ...) (buffer ...) (encoding buffer-file-coding-system)) 
(when (and ... ...) (org-kill-new output)) (with-current-buffer buffer 
(erase-buffer) (setq buffer-file-coding-system encoding) (insert output) 
(goto-char ...) (and ... ...)) (when 
org-export-show-temporary-export-buffer (switch-to-buffer-other-window 
buffer)) buffer)
  (if async (org-export-async-start (\` ...) (\` ...)) (let (... ... ...) 
(when ... ...) (with-current-buffer buffer ... ... ... ... ...) (when 
org-export-show-temporary-export-buffer ...) buffer))
  org-export-to-buffer(beamer "*Org BEAMER Export*" nil nil nil nil nil 
(lambda nil (LaTeX-mode)))
  org-beamer-export-as-latex(nil nil nil nil)
  funcall(org-beamer-export-as-latex nil nil nil nil)
  (save-excursion (when arg (if ... ... ...)) (funcall action (and ... t) 
(and ... t) (and ... t) (and ... t)))
  (cond ((eql action ...) (org-export-insert-default-template nil optns)) 
((eql action ...) (org-export-stack)) ((eql action ...) 
(org-publish-current-file ... ...)) ((eql action ...) 
(org-publish-current-project ... ...)) ((eql action ...) (org-publish ... 
... ...)) ((eql action ...) (org-publish-all ... ...)) (t (save-excursion 
... ...)))
  (case action (template (org-export-insert-default-template nil optns)) 
(stack (org-export-stack)) (publish-current-file (org-publish-current-file 
... ...)) (publish-current-project (org-publish-current-project ... ...)) 
(publish-choose-project (org-publish ... ... ...)) (publish-all 
(org-publish-all ... ...)) (otherwise (save-excursion ... ...)))
  (let* ((input ...) (action ...) (optns ...)) (unless (memq ... optns) 
(move-marker org-export-dispatch-last-position nil)) (case action (template 
...) (stack ...) (publish-current-file ...) (publish-current-project ...) 
(publish-choose-project ...) (publish-all ...) (otherwise ...)))
  org-export-dispatch(nil)
  call-interactively(org-export-dispatch nil nil)

[2]
Debugger entered--Lisp error: (void-function avl-tree-mapc)
  (avl-tree-mapc (function (lambda ... ...)) org-element--cache (quote 
reverse))
  (catch (quote exit) (avl-tree-mapc (function ...) org-element--cache 
(quote reverse)))
  (if (zerop offset) nil (catch (quote exit) (avl-tree-mapc ... 
org-element--cache ...)))
  (unless (zerop offset) (catch (quote exit) (avl-tree-mapc ... 
org-element--cache ...)))
  (let ((inhibit-quit t) (offset ...) (end ...)) (let (...) (while ...)) 
(unless (zerop offset) (catch ... ...)))
  (catch (quote escape) (let (... ... ...) (let ... ...) (unless ... ...)))
  (progn (catch (quote escape) (let ... ... ...)) 
(org-element--cache-cancel-changes))
  (if (org-element--cache-pending-changes-p) (progn (catch ... ...) 
(org-element--cache-cancel-changes)))
  (when (org-element--cache-pending-changes-p) (catch (quote escape) (let 
... ... ...)) (org-element--cache-cancel-changes))
  (save-current-buffer (set-buffer buffer) (when 
(org-element--cache-pending-changes-p) (catch ... ...) 
(org-element--cache-cancel-changes)))
  (with-current-buffer buffer (when (org-element--cache-pending-changes-p) 
(catch ... ...) (org-element--cache-cancel-changes)))
  (progn (with-current-buffer buffer (when ... ... ...)))
  (if (buffer-live-p buffer) (progn (with-current-buffer buffer ...)))
  (when (buffer-live-p buffer) (with-current-buffer buffer (when ... ... 
...)))
  org-element--cache-sync(#<buffer 01-contents.org>)
  (progn (org-element--cache-sync (current-buffer)) 
(org-element--cache-push-change top (- bottom offset) offset))
  (if (> gap org-element-cache-merge-changes-threshold) (progn 
(org-element--cache-sync ...) (org-element--cache-push-change top ... 
offset)) (timer-activate-when-idle (aref org-element--cache-status 4) t) 
(aset org-element--cache-status 0 t) (aset org-element--cache-status 1 (min 
top current-start)) (aset org-element--cache-status 2 (- ... offset)) (incf 
(aref org-element--cache-status 3) offset))
  (let* ((current-start ...) (current-end ...) (gap ...)) (if (> gap 
org-element-cache-merge-changes-threshold) (progn ... ...) 
(timer-activate-when-idle ... t) (aset org-element--cache-status 0 t) (aset 
org-element--cache-status 1 ...) (aset org-element--cache-status 2 ...) 
(incf ... offset)))
  (if (not (org-element--cache-pending-changes-p)) 
(org-element--cache-push-change top (- bottom offset) offset) (let* (... 
... ...) (if ... ... ... ... ... ... ...)))
  (let ((offset ...)) (if (not ...) (org-element--cache-push-change top ... 
offset) (let* ... ...)))
  (let ((top ...) (bottom ...)) (org-with-limited-levels (save-match-data 
...)) (let (...) (if ... ... ...)))
  (save-restriction (widen) (goto-char beg) (beginning-of-line) (let (... 
...) (org-with-limited-levels ...) (let ... ...)))
  (save-excursion (save-restriction (widen) (goto-char beg) 
(beginning-of-line) (let ... ... ...)))
  (org-with-wide-buffer (goto-char beg) (beginning-of-line) (let (... ...) 
(org-with-limited-levels ...) (let ... ...)))
  (progn (org-with-wide-buffer (goto-char beg) (beginning-of-line) (let ... 
... ...)))
  (if (and org-element-use-cache org-element--cache) (progn 
(org-with-wide-buffer ... ... ...)))
  (when (and org-element-use-cache org-element--cache) 
(org-with-wide-buffer (goto-char beg) (beginning-of-line) (let ... ... 
...)))
  (let ((inhibit-quit t)) (when (and org-element-use-cache 
org-element--cache) (org-with-wide-buffer ... ... ...)))
  org-element--cache-record-change(3381 3381 10)
  replace-match("" nil t)
  replace-match-maybe-edit("" nil t nil (3381 3391 #<buffer 
01-contents.org>))
  perform-replace(":noexport:" "" t nil nil nil nil nil nil)
  query-replace(":noexport:" "" nil nil nil)
  call-interactively(query-replace nil nil)

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

* Re: Fwd: [bug] Beamer export fails in current master
  2014-01-18  1:39         ` James Harkins
@ 2014-01-18 16:33           ` Nicolas Goaziou
  2014-01-19  5:25             ` James Harkins
  0 siblings, 1 reply; 7+ messages in thread
From: Nicolas Goaziou @ 2014-01-18 16:33 UTC (permalink / raw)
  To: James Harkins; +Cc: Emacs-orgmode

Hello,

James Harkins <jamshark70@gmail.com> writes:

> Quite strange. I just moved up to current master -- "Org-mode version
> 8.2.5f (release_8.2.5f-518-gd74205 @
> /home/dlm/share/org-mode.git/lisp/)" -- HEAD is:
>
> ~~
> commit d74205b0f9e0707642c7b81e1c33a4a059323bea
> Author: Nicolas Goaziou <n.goaziou@gmail.com>
> Date:   Fri Jan 17 23:05:20 2014 +0100
>
>    ox-koma-letter: Improve defcustom docstrings
> ~~
>
> Now, with a simple org file, just a few frames, C-c C-e l B finishes
> successfully. With my full presentation, I get a different error [1].
>
> Moreover, I wanted to see if the :noexport: tags had something to do
> with it, so I hit shift-tab twice to show all and then
> M-S-5 :noexport: RET RET, then "!" to replace all. It completed the
> second replacement (third top-level heading) and threw another error
> related to org-element--cache [2].

I cannot reproduce the problems. Something seems to go wrong with your
`avl-tree' library. Is it loaded properly? Do you use an old Emacs?


Regards,

-- 
Nicolas Goaziou

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

* Re: Fwd: [bug] Beamer export fails in current master
  2014-01-18 16:33           ` Nicolas Goaziou
@ 2014-01-19  5:25             ` James Harkins
  0 siblings, 0 replies; 7+ messages in thread
From: James Harkins @ 2014-01-19  5:25 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: Emacs-orgmode

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

On Jan 19, 2014 12:32 AM, "Nicolas Goaziou" <n.goaziou@gmail.com> wrote:
> I cannot reproduce the problems. Something seems to go wrong with your
> `avl-tree' library. Is it loaded properly? Do you use an old Emacs?

I see -- so, when I said it's broken in my environment, the operative words
are "in my environment."

I'm on emacs 23.something (whatever apt-get serves up for Ubuntu 12.04).
That could be the problem.

I'm in the middle of a big presentation/publishing project, so I think for
now I should heed the usual advice not to muck about with a working
configuration while in production. Emacs 23 + org 8.2.4 is working fine for
me, so I'll stay with that until this project is finished. *Probably* the
upgrade would be fine, but if it's not, I couldn't afford the downtime to
fix it.

I'll add a TODO to test an emacs upgrade later.

Thanks for testing!
hjh

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

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

end of thread, other threads:[~2014-01-19  5:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-11  3:40 [bug] Beamer export fails in current master James Harkins
2014-01-11  8:25 ` Nicolas Goaziou
     [not found]   ` <CAFniQ7XfifzACfVQLTTtesmUaCOpM3Q-esyYMorc7KFUQcmRhg@mail.gmail.com>
2014-01-11  9:44     ` Fwd: " James Harkins
2014-01-15 21:29       ` Nicolas Goaziou
2014-01-18  1:39         ` James Harkins
2014-01-18 16:33           ` Nicolas Goaziou
2014-01-19  5:25             ` James Harkins

Code repositories for project(s) associated with this 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).