emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] Prevent creation of duplicate footnote sections.
@ 2011-03-11 13:49 Matt Lundin
  2011-03-17  8:24 ` [Accepted] " Bastien Guerry
  0 siblings, 1 reply; 2+ messages in thread
From: Matt Lundin @ 2011-03-11 13:49 UTC (permalink / raw)
  To: Org Mode

* 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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Accepted] Prevent creation of duplicate footnote sections.
  2011-03-11 13:49 [PATCH] Prevent creation of duplicate footnote sections Matt Lundin
@ 2011-03-17  8:24 ` Bastien Guerry
  0 siblings, 0 replies; 2+ messages in thread
From: Bastien Guerry @ 2011-03-17  8:24 UTC (permalink / raw)
  To: emacs-orgmode

Patch 679 (http://patchwork.newartisans.com/patch/679/) is now "Accepted".

Maintainer comment: none

This relates to the following submission:

http://mid.gmane.org/%3C87zkozi2j5.fsf%40fastmail.fm%3E

Here is the original message containing the patch:

> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: [O] Prevent creation of duplicate footnote sections.
> Date: Fri, 11 Mar 2011 18:49:06 -0000
> From: Matt Lundin <mdl@imapmail.org>
> X-Patchwork-Id: 679
> Message-Id: <87zkozi2j5.fsf@fastmail.fm>
> To: Org Mode <emacs-orgmode@gnu.org>
> 
> * 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)
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-03-17  8:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-11 13:49 [PATCH] Prevent creation of duplicate footnote sections Matt Lundin
2011-03-17  8:24 ` [Accepted] " Bastien Guerry

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).