[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] [PATCH] Prevent creation of duplicate footnote sections.
From: |
Matt Lundin |
Subject: |
[O] [PATCH] Prevent creation of duplicate footnote sections. |
Date: |
Fri, 11 Mar 2011 08:49:06 -0500 |
* lisp/org-footnote.el: (org-footnote-create-definition): Allow for
footnote sections above the current footnote insertion point.
Fixes bug in which org-mode will create a new footnote section if the
current footnote section is not beneath the current insertion point.
---
lisp/org-footnote.el | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/lisp/org-footnote.el b/lisp/org-footnote.el
index 0524b41..2ce6668 100644
--- a/lisp/org-footnote.el
+++ b/lisp/org-footnote.el
@@ -291,6 +291,7 @@ or new, let the user edit the definition of the footnote."
;; No section, put footnote into the current outline node
nil
;; Try to find or make the special node
+ (goto-char (point-min))
(setq re (concat "^\\*+[ \t]+" org-footnote-section "[ \t]*$"))
(unless (or (re-search-forward re nil t)
(and (progn (widen) t)
--
1.7.4.1
- [O] [PATCH] Prevent creation of duplicate footnote sections.,
Matt Lundin <=