From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [RFC] Simplify attributes syntax Date: Mon, 11 Mar 2013 08:40:34 +0100 Message-ID: <87ppz6fkp9.fsf@gmail.com> References: <87ppz9zar8.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:54494) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UExLj-0006s1-Ee for emacs-orgmode@gnu.org; Mon, 11 Mar 2013 03:40:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UExLi-0003tL-Ei for emacs-orgmode@gnu.org; Mon, 11 Mar 2013 03:40:47 -0400 Received: from mail-we0-x22d.google.com ([2a00:1450:400c:c03::22d]:54994) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UExLi-0003sw-8J for emacs-orgmode@gnu.org; Mon, 11 Mar 2013 03:40:46 -0400 Received: by mail-we0-f173.google.com with SMTP id x51so3061932wey.4 for ; Mon, 11 Mar 2013 00:40:45 -0700 (PDT) In-Reply-To: <87ppz9zar8.fsf@gmail.com> (Nicolas Goaziou's message of "Sat, 09 Mar 2013 01:18:19 +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: Org Mode List Follow up: > The following patch simplifies syntax for attributes. > > From the user POV, it removes necessity to quote or escape characters. > For example, these are now valid: > > #+attr_latex: :font \footnotesize :align |l|c|c| > #+attr_foo: :prop var="value" :another-prop nil > > From the developer POV, each non-nil value is now read as a string by > `org-export-read-attribute'. So: > > #+attr_something: :width 70 > > will be read as: > > '(:width "70") This patch is now applied in master. Please modify syntax for attributes accordingly. In particular, double quotes are not needed anymore for multiple words, unless you really want them to appear in the value: #+attr_something: :prop this is a long value :prop2 value Regards, -- Nicolas Goaziou