Greetings, There is a Stack overflow when exporting org file to pdf via latex. So, I have a file ~/org/master.org which is 2885 lines long. After exporting the whole file to pdf, and then exporting only one its subtree to pdf as well, there is a stack overflow. These are the steps to reproduce it: 1. C-c C-e p (that is, export the file to pdf via latex) 2. move to the subtree 3. C-c C-e 1 p (that is, export the subtree to pdf via latex) Here is what I expect: 1. the master.pdf file with 102 pages 2. after exporting the subtree, the master.pdf file with 3 pages only This is what I get: 1. the master.pdf file with 102 pages 2. instead of an updated version of master.pdf after executing C-C C-e 1 p, I see this in the *Messages* buffer: Export buffer: Export subtree: Mark set Exporting to PDF... Exporting to LaTeX... predictive-schedule-auto-dict-update: Stack overflow in equal Bellow is the information automatically extracted by the org-submit-bug-report routine. Cheers, Marko Dimjašević -- Emacs : GNU Emacs 23.3.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.5) of 2011-08-14 on allspice, modified by Debian Package: Org-mode version 7.6 current state: ============== (setq org-log-done 'time org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-agenda-files '("~/org/master.org" "~/org/something.org") org-metaup-hook '(org-babel-load-in-session-maybe) org-after-todo-state-change-hook '(org-clock-out-if-current) org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup) org-export-latex-format-toc-function 'org-export-latex-format-toc-default org-agenda-skip-scheduled-if-done t org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-confirm-shell-link-function 'yes-or-no-p org-export-first-hook '(org-beamer-initialize-open-trackers) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-pre-tangle-hook '(save-buffer) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers) org-mode-hook '(#[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 (lambda nil (setq fill-column 78))) org-agenda-ndays 7 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-confirm-elisp-link-function 'yes-or-no-p org-agenda-start-on-weekday nil org-export-interblocks '((lob org-babel-exp-lob-one-liners) (src org-babel-exp-inline-src-blocks)) org-occur-hook '(org-first-headline-recenter) org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select-beamer-code) org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc org-beamer-auto-fragile-frames org-beamer-place-default-actions-for-lists) org-metadown-hook '(org-babel-pop-to-session-maybe) org-link-abbrev-alist '(("osm" . "http://nominatim.openstreetmap.org/search?q=%s&polygon=1")) org-export-blocks '((src org-babel-exp-src-block nil) (comment org-export-blocks-format-comment t) (ditaa org-export-blocks-format-ditaa nil) (dot org-export-blocks-format-dot nil)) )