[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] [babel][bug] \ in detangling
From: |
Eric Schulte |
Subject: |
Re: [Orgmode] [babel][bug] \ in detangling |
Date: |
Thu, 13 Jan 2011 10:01:19 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Thanks for pointing this out, I've just pushed up your change.
Cheers -- Eric
Seth Burleigh <address@hidden> 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.