From: Seth Burleigh <wburle@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [babel][bug] \ in detangling
Date: Thu, 13 Jan 2011 10:27:37 -0600 [thread overview]
Message-ID: <AANLkTinUoqvV6NBi95czY2t=Z=7cjPPo3feFZqjtHByD@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 507 bytes --]
(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.
[-- Attachment #1.2: Type: text/html, Size: 635 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next reply other threads:[~2011-01-13 16:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-13 16:27 Seth Burleigh [this message]
2011-01-13 17:01 ` [babel][bug] \ in detangling Eric Schulte
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='AANLkTinUoqvV6NBi95czY2t=Z=7cjPPo3feFZqjtHByD@mail.gmail.com' \
--to=wburle@gmail.com \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.