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: Thu, 24 Jan 2013 18:10:53 +0400 Message-ID: References: <87ip6o9h2e.fsf@gmail.com> <871udbapqn.fsf@gmail.com> <87622mbtvf.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52470) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TyNVa-0007w9-8t for emacs-orgmode@gnu.org; Thu, 24 Jan 2013 09:10:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TyNVT-00037Q-Ha for emacs-orgmode@gnu.org; Thu, 24 Jan 2013 09:10:26 -0500 Received: from mail.elvees.com ([80.90.126.250]:56339) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TyNVT-00037H-5t for emacs-orgmode@gnu.org; Thu, 24 Jan 2013 09:10:19 -0500 In-Reply-To: <87622mbtvf.fsf@gmail.com> (Nicolas Goaziou's message of "Thu, 24 Jan 2013 14:20:04 +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 Hi, I looked into generated html, not result of org-element-property. But you're right: org-element-property works exactly as you say. I'll change the patch to ob-core.el to reflect behavior of org-element-property. With best regards, Vasil > Of course not. With: > > #+attr_html: alt="big image" width="100%" > file:123.png > > (org-element-property :attr_html (org-element-at-point)) with point at > "file:..." will return ("alt=\"big image\" width=\"100%\"") while on the > following example: > > #+attr_html: alt="big image" width="100%" > > file:123.png > > it will return nil. > >> That is why I think that it is not necessary to make org-babel behavior >> different from org-elements (to dissalow empty lines between #+attr and >> #+results when it searches results block), at least for now. > > Babel behaviour is already slightly different from Elements's. In the > long run it will be necessary to correct this. > >> PS: Is there any good documentation and explanation of org-mode >> internals? I could help a little with rewritting org-babel to use >> org-elements. > > You may have a look at the comments at the start of org-elements.el. At > some point, I will have to write an Info doc about this library, unless > I postpone it until the end of time. > > > Regards,