From mboxrd@z Thu Jan 1 00:00:00 1970 From: vdyadov@elvees.com (=?utf-8?B?0JTRj9C00L7QsiDQktCw0YHQuNC7INCh0YI=?= =?utf-8?B?0L7Rj9C90L7Qsg==?=) Subject: Re: Bug: [PATCH] Org-babel: separate #+attr_... for code block and for results block [7.9.3d (release_7.9.3d-834-g60083a.dirty @ /home/vdyadov/Work/Tools/emacs/org-mode/lisp/)] Date: Wed, 23 Jan 2013 19:03:43 +0400 Message-ID: References: <87ip6o9h2e.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:42815) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ty1rD-0005Mx-D0 for emacs-orgmode@gnu.org; Wed, 23 Jan 2013 10:03:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ty1r9-0000CC-Hc for emacs-orgmode@gnu.org; Wed, 23 Jan 2013 10:03:19 -0500 Received: from mail.elvees.com ([80.90.126.250]:60457) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ty1r9-0000B1-57 for emacs-orgmode@gnu.org; Wed, 23 Jan 2013 10:03:15 -0500 In-Reply-To: <87ip6o9h2e.fsf@gmail.com> (Nicolas Goaziou's message of "Wed, 23 Jan 2013 14:15:05 +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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org Why syntax is invalid? I've taken a look at the source code in org-elements.el and found that it is taking into account some expressions, like #+results: and so on(see org-element-affiliated-keywords, org-element--affiliated-re) when attaching properties to objects. And everything works fine (attributes were attached to right objects), except org-babel strategy for searching #+results: expression for updating results. What could you suggest in my case? When I put attributes right before link to the image file, I get: initial code: ,---- | #+begin_src ditaa :file 123.png :cache yes | ... | #+end_src | | #+results[f8f8...]: | #+attr_html: alt="big image" width="100%" | file:123.png `---- C-c C-c, result: ,---- | #+begin_src ditaa :file 123.png :cache yes | ... | #+end_src | | #+results[f8f8...]: | file:123.png | | #+attr_html: alt="big image" width="100%" | file:123.png `---- With best regards, Vasil