From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [babel] Bug when updating the hash: meta-lines get deleted Date: Fri, 13 Dec 2013 12:33:13 -0700 Message-ID: <87iousmtqe.fsf@gmail.com> References: <86txedkn3o.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55707) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VrYVO-0008WQ-Ot for emacs-orgmode@gnu.org; Fri, 13 Dec 2013 14:34:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VrYVJ-0001yJ-Uf for emacs-orgmode@gnu.org; Fri, 13 Dec 2013 14:34:34 -0500 Received: from mail-pd0-x236.google.com ([2607:f8b0:400e:c02::236]:64057) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VrYVJ-0001y1-NG for emacs-orgmode@gnu.org; Fri, 13 Dec 2013 14:34:29 -0500 Received: by mail-pd0-f182.google.com with SMTP id v10so2908793pde.27 for ; Fri, 13 Dec 2013 11:34:28 -0800 (PST) In-Reply-To: <86txedkn3o.fsf@somewhere.org> (Sebastien Vauban's message of "Fri, 13 Dec 2013 12:27:07 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sebastien Vauban Cc: emacs-orgmode@gnu.org You should use a named code block if you want to decorate the results. Best, "Sebastien Vauban" writes: > Hello, > > When results caching is enabled, and when the hash must be updated, the > "meta-lines" in front of the results block are _deleted_. > > Such meta-lines include: > - ATTR_LaTeX lines > - BEGIN/END_CENTER environments > > ECM: > > --8<---------------cut here---------------start------------->8--- > #+PROPERTY: cache yes > > #+begin_src R > print("Hello") > #+end_src > > #+ATTR_LaTeX: {\tiny > #+results[824ca019826a9f384bd35371065bb2418a1afedf]: > : Hello > #+ATTR_LaTeX: } > --8<---------------cut here---------------end--------------->8--- > > If you change the source code block (such a setting the string to > "Hello2"), you get the following Org buffer: > > --8<---------------cut here---------------start------------->8--- > #+PROPERTY: cache yes > > #+begin_src R > print("Hello2") > #+end_src > > #+results[663ebd0c20f3ed9105d254971336679e44354a3e]: > : Hello2 > > #+ATTR_LaTeX: } > --8<---------------cut here---------------end--------------->8--- > > Best regards, > Seb -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D