From: Matt Lundin <mdl@imapmail.org>
To: Org Mode <emacs-orgmode@gnu.org>
Subject: [PATCH] Prevent creation of duplicate footnote sections.
Date: Fri, 11 Mar 2011 08:49:06 -0500 [thread overview]
Message-ID: <87zkozi2j5.fsf@fastmail.fm> (raw)
* 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.
---
| 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
--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
next reply other threads:[~2011-03-13 13:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-11 13:49 Matt Lundin [this message]
2011-03-17 8:24 ` [Accepted] Prevent creation of duplicate footnote sections Bastien Guerry
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zkozi2j5.fsf@fastmail.fm \
--to=mdl@imapmail.org \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).