emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Eric Schulte" <schulte.eric@gmail.com>
To: Stephan Schmitt <drmabuse@cs.tu-berlin.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: [PATCH] avoid infinite loop in org-babel-execute-buffer
Date: Tue, 16 Feb 2010 13:36:15 -0700	[thread overview]
Message-ID: <87hbpgx6io.fsf@gmail.com> (raw)
In-Reply-To: <1266318405-15398-1-git-send-email-drmabuse@cs.tu-berlin.de> (Stephan Schmitt's message of "Tue, 16 Feb 2010 12:06:45 +0100")

Applied, Thanks! -- Eric

Stephan Schmitt <drmabuse@cs.tu-berlin.de> writes:

> ---
>  contrib/babel/lisp/org-babel.el |    7 ++++---
>  1 files changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/contrib/babel/lisp/org-babel.el b/contrib/babel/lisp/org-babel.el
> index 01b730d..7fe4302 100644
> --- a/contrib/babel/lisp/org-babel.el
> +++ b/contrib/babel/lisp/org-babel.el
> @@ -300,9 +300,10 @@ the current buffer."
>    (save-excursion
>      (goto-char (point-min))
>      (while (re-search-forward org-babel-src-block-regexp nil t)
> -      (goto-char (match-beginning 0))
> -      (org-babel-execute-src-block arg)
> -      (goto-char (match-end 0)))))
> +      (let ((pos-end (match-end 0)))
> +	(goto-char (match-beginning 0))
> +	(org-babel-execute-src-block arg)
> +	(goto-char pos-end)))))
>  
>  (defun org-babel-execute-subtree (&optional arg)
>    "Call `org-babel-execute-src-block' on every source block in

      reply	other threads:[~2010-02-17 16:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-16 11:06 [PATCH] avoid infinite loop in org-babel-execute-buffer Stephan Schmitt
2010-02-16 20:36 ` Eric Schulte [this message]

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=87hbpgx6io.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=drmabuse@cs.tu-berlin.de \
    --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).