Goto correct footnote insertion point in org-mode buffers
commit51244d53442a34be577121e3d716b1610e039e1f
authorMatt Lundin <mdl@imapmail.org>
Fri, 11 Mar 2011 18:47:08 +0000 (11 18:47 +0000)
committerBastien Guerry <bzg@altern.org>
Thu, 17 Mar 2011 08:24:02 +0000 (17 09:24 +0100)
tree03a518c0b42ee18f965a76513fc97698b37ad15e
parent7b74ef1c135505b56537d6bdc18ad9e1a713154b
Goto correct footnote insertion point in org-mode buffers

* lisp/org-footnote.el: (org-footnote-create-definition): Don't search
  for last footnote when in org-mode file.

The recent changes to accommodate signatures in message-mode instruct
org-mode to search for the last footnote in the entire buffer when
inserting a new footnote definition. This causes problems in org
buffers, since org-footnote-goto-local-insertion-point already finds
the correct insertion point. (I.e., the insertion point is always
placed in beneath the last footnote in the buffer, even if
org-footnote-section is nil.) This patch invokes the search only if in
non org-mode buffers.
lisp/org-footnote.el