From: "Eric Schulte" <schulte.eric@gmail.com>
To: Seth Burleigh <wburle@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [babel][bug] \ in detangling
Date: Thu, 13 Jan 2011 10:01:19 -0700 [thread overview]
Message-ID: <8762tsd9gg.fsf@gmail.com> (raw)
In-Reply-To: <AANLkTinUoqvV6NBi95czY2t=Z=7cjPPo3feFZqjtHByD@mail.gmail.com> (Seth Burleigh's message of "Thu, 13 Jan 2011 10:27:37 -0600")
Thanks for pointing this out, I've just pushed up your change.
Cheers -- Eric
Seth Burleigh <wburle@gmail.com> writes:
> (defun org-babel-update-block-body (new-body)
> "Update the body of the current code block to NEW-BODY."
> (if (not (org-babel-where-is-src-block-head))
> (error "not in source block")
> (save-match-data
> (replace-match (concat (org-babel-trim new-body) "\n") nil t nil 5))
> (indent-rigidly (match-beginning 5) (match-end 5) 2)))
>
> replace-match argument should be t instead of nil (as shown), otherwise \ is
> treated as a special character and you cant detangle code with that
> character in it.
next prev parent reply other threads:[~2011-01-13 17:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-13 16:27 [babel][bug] \ in detangling Seth Burleigh
2011-01-13 17:01 ` Eric Schulte [this message]
2011-01-13 17:16 ` Seth Burleigh
2011-01-13 17:54 ` Seth Burleigh
2011-01-13 21:09 ` Eric Schulte
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=8762tsd9gg.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=wburle@gmail.com \
/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).