From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: New LaTeX exporter, Invalid search bound Date: Sat, 22 Sep 2012 06:35:05 -1000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48064) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFSfj-0005yv-OP for emacs-orgmode@gnu.org; Sat, 22 Sep 2012 12:35:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TFSfi-0004Xu-A7 for emacs-orgmode@gnu.org; Sat, 22 Sep 2012 12:35:15 -0400 Received: from oproxy11-pub.bluehost.com ([173.254.64.10]:53711) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1TFSfh-0004Tl-W8 for emacs-orgmode@gnu.org; Sat, 22 Sep 2012 12:35:14 -0400 Received: from [24.94.67.12] (port=51469 helo=poto.local) by box472.bluehost.com with esmtpa (Exim 4.76) (envelope-from ) id 1TFSfc-0005nT-6F for emacs-orgmode@gnu.org; Sat, 22 Sep 2012 10:35:09 -0600 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org-mode Aloha all, A document that exported nicely with the new LaTeX exporter on 9/18 now fails with a more recent pull from git. I've included a portion of the backtrace and the section of the org file that triggers the error. Org-mode version 7.9.1 (release_7.9.1-299-g08c5ea @ /Users/dk/.emacs.d/src/org-mode/lisp/) Here is the (hopefully) relevant portion of the (really large) backtrace: Debugger entered--Lisp error: (error "Invalid search bound (wrong side of point)") re-search-forward("^\\(?:\\*+ \\|\\[\\(?:[0-9]+\\|fn:[-_[:word:]]+\\)\\]\\|[ ]*\\(?:$\\|\\(?:|\\|\\+-[-+]\\)\\|[#:]\\|-\\{5,\\}[ ]*$\\|\\\\begin{\\([A-Za-z0-9]+\\*?\\)}\\|\\(?:\\(?:CLO\\(?:CK\\|SED\\)\\|DEADLINE\\|SCHEDULED\\):\\)\\|\\(?:[-+*]\\|\\(?:[0-9]+\\)[.)]\\)\\(?:[ ]\\|$\\)\\)\\)" 67425 m) org-element-paragraph-parser(67425 (67425 :name "define-biblatex-footcitetext-link")) org-element--current-element(67425 nil nil nil) org-element--parse-elements(67149 67425 nil nil nil nil (section (:begin 67149 :end 67425 :contents-begin 67149 :contents-end 67425 :post-blank 0))) org-element--parse-elements(67149 67425 section nil nil nil (headline (:raw-value "Standard Biblatex citation commands" :begin 67109 :end 67425 :pre-blank 1 :hiddenp outline :contents-begin 67149 :contents-end 67425 :level 2 :priority nil :tags nil :todo-keyword nil :todo-type nil :scheduled nil :deadline nil :timestamp nil :clock nil :post-blank 1 :footnote-section-p nil :archivedp nil :commentedp nil :quotedp nil :category "???" :title ("Standard Biblatex citation commands")))) Here is the section of the org file that triggers the error: ** Standard Biblatex citation commands #+name: define-standard-biblatex-commands #+begin_src emacs-lisp :noweb yes :results silent :exports none <> <> <> <> <> <> #+end_src #+name: define-biblatex-cite-link #+begin_src emacs-lisp :results silent :exports none (org-add-link-type "cite" 'ebib (lambda (path desc format) (cond ((eq format 'html) (format "(%s)" path)) ((eq format 'latex) (if (or (not desc) (equal 0 (search "cite:" desc))) (format "\\cite{%s}" path) (format "\\cite[%s][%s]{%s}" (cadr (split-string desc ";")) (car (split-string desc ";")) path)))))) #+end_src #+name: define-biblatex-cap-cite-link #+begin_src emacs-lisp :results silent :exports none (org-add-link-type "Cite" 'ebib (lambda (path desc format) (cond ((eq format 'html) (format "(%s)" path)) ((eq format 'latex) (if (or (not desc) (equal 0 (search "Cite:" desc))) (format "\\Cite{%s}" path) (format "\\Cite[%s][%s]{%s}" (cadr (split-string desc ";")) (car (split-string desc ";")) path)))))) #+end_src #+name: define-biblatex-parencite-link #+begin_src emacs-lisp :results silent :exports none (org-add-link-type "parencite" 'ebib (lambda (path desc format) (cond ((eq format 'html) (format "(%s)" path)) ((eq format 'latex) (if (or (not desc) (equal 0 (search "parencite:" desc))) (format "\\parencite{%s}" path) (format "\\parencite[%s][%s]{%s}" (cadr (split-string desc ";")) (car (split-string desc ";")) path)))))) #+end_src #+name: define-biblatex-cap-parencite-link #+begin_src emacs-lisp :results silent :exports none (org-add-link-type "Parencite" 'ebib (lambda (path desc format) (cond ((eq format 'html) (format "(%s)" path)) ((eq format 'latex) (if (or (not desc) (equal 0 (search "Parencite:" desc))) (format "\\Parencite{%s}" path) (format "\\Parencite[%s][%s]{%s}" (cadr (split-string desc ";")) (car (split-string desc ";")) path)))))) #+end_src #+name: define-biblatex-footcite-link #+begin_src emacs-lisp :results silent :exports none (org-add-link-type "footcite" 'ebib (lambda (path desc format) (cond ((eq format 'html) (format "(%s)" path)) ((eq format 'latex) (if (or (not desc) (equal 0 (search "footcite:" desc))) (format "\\footcite{%s}" path) (format "\\footcite[%s][%s]{%s}" (cadr (split-string desc ";")) (car (split-string desc ";")) path)))))) #+end_src #+name: define-biblatex-footcitetext-link #+begin_src emacs-lisp :results silent :exports none (org-add-link-type "footcitetext" 'ebib (lambda (path desc format) (cond ((eq format 'html) (format "(%s)" path)) ((eq format 'latex) (if (or (not desc) (equal 0 (search "footcitetext:" desc))) (format "\\footcitetext{%s}" path) (format "\\footcitetext[%s][%s]{%s}" (cadr (split-string desc ";")) (car (split-string desc ";")) path)))))) #+end_src All the best, Tom -- Thomas S. Dye http://www.tsdye.com