From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: [babel][bug] \ in detangling Date: Thu, 13 Jan 2011 10:01:19 -0700 Message-ID: <8762tsd9gg.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=56803 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PdQYD-000879-Mp for emacs-orgmode@gnu.org; Thu, 13 Jan 2011 12:01:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PdQYC-0003dU-JE for emacs-orgmode@gnu.org; Thu, 13 Jan 2011 12:01:29 -0500 Received: from mail-qy0-f169.google.com ([209.85.216.169]:56203) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PdQYC-0003dC-DH for emacs-orgmode@gnu.org; Thu, 13 Jan 2011 12:01:28 -0500 Received: by qyk7 with SMTP id 7so5123550qyk.0 for ; Thu, 13 Jan 2011 09:01:27 -0800 (PST) In-Reply-To: (Seth Burleigh's message of "Thu, 13 Jan 2011 10:27:37 -0600") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Seth Burleigh Cc: emacs-orgmode@gnu.org Thanks for pointing this out, I've just pushed up your change. Cheers -- Eric Seth Burleigh 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.