#+TITLE: footnote-regression.org #+AUTHOR: #+EMAIL: address@hidden #+DATE: 2011-08-29 Mon #+DESCRIPTION: #+KEYWORDS: #+LANGUAGE: en #+OPTIONS: H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t #+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc #+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js #+EXPORT_SELECT_TAGS: export #+EXPORT_EXCLUDE_TAGS: noexport #+LINK_UP: #+LINK_HOME: #+XSLT: * COMMENT Bug Description With very minimal emacs, do 1. M-x load-library RET org-html.el RET 1. M-x load-library RET org-xhtml.el RET 2. C-x C-f footnote-regression.org RET 3. M-x org-export-as-xhtml-and-open RET 4. Note that the title of this document ends up in the footnote definitions. Hint: I am seeing that the value returned by `org-export-preprocess-string' in the before and after commits are different. * Second headline Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur[fn:inlabel:an inline footnote][fn:inlabel2:[[http://www.google.com][google]] this]. * COMMENT How Emacs is invoked "C:\Program Files\emacs-24.0.50\bin\runemacs.exe" --debug-init -Q -L ~/src/org-mode/lisp -L ~/src/org-mode/contrib/lisp --visit footnote-regression.org" * COMMENT Commit that causes regression git bisect bad Bisecting: 0 revisions left to test after this (roughly 0 steps) [baf7dde28ef8730c558a6cf3c789d7400dbc51c6] org-footnote: allow non Org mode files to have no footnote tag * COMMENT The good one commit baf7dde28ef8730c558a6cf3c789d7400dbc51c6 Author: Nicolas Goaziou Date: Tue Aug 16 20:02:30 2011 +0200 org-footnote: allow non Org mode files to have no footnote tag * lisp/org-footnote.el (org-footnote-tag-for-non-org-mode-files): notify the opportunity to set the variable to the empty string. (org-footnote-normalize, org-footnote-create-definition): carefully check for inserted newlines and presence of the footnote tag. commit cb906e440661f102fd004cb7c8792c2498018858 Author: Nicolas Goaziou Date: Tue Aug 16 18:10:15 2011 +0200 org-footnote: re-use global regexps when possible * lisp/org-footnote.el (org-footnote-at-definition-p): re-use org-footnote-definition-re.