From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Renaming of +NAME for code blocks to in HTML export, no longer user defined Date: Thu, 21 Jan 2016 10:20:12 +0100 Message-ID: <8737trl25v.fsf@nicolasgoaziou.fr> References: <87lh85b3ly.fsf@alphaville.usersys.redhat.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50198) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMBO9-00018b-0h for emacs-orgmode@gnu.org; Thu, 21 Jan 2016 04:18:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aMBO4-0006o5-B5 for emacs-orgmode@gnu.org; Thu, 21 Jan 2016 04:18:44 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:48356) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMBO4-0006nX-3n for emacs-orgmode@gnu.org; Thu, 21 Jan 2016 04:18:40 -0500 In-Reply-To: (Adam Aviv's message of "Tue, 5 Jan 2016 11:44:59 -0500") 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: Adam Aviv Cc: Nick Dokos , emacs-orgmode@gnu.org Hello, Adam Aviv writes: > Interesting. I don't know if it is a bug, though, as this seems intentional > and matches my experience. The idea being that if you want to label > something, you use the :name tag, but this will make it so the second item > is evaluated, producing a unique identifier. The unique identifier is then > assigned instead of the :name tag. If it was an, OR, however, then every > element block would get a label, and that might be suboptimal given that > not every block is referenced later. That's correct. > I would still like to be able to add my own name tags, but understand why > this might have been changed to avoid to blocks having the same label. That and the fact that one might introduce forbidden characters in the name (e.g., ask the user to know about forbidden characters in the target format). The generic names are pretty safe. Anyway, what about using special blocks to generate custom
? #+attr_html: :property whatever #+begin_something ... #+end_something Regards, -- Nicolas Goaziou