From mboxrd@z Thu Jan 1 00:00:00 1970 From: Feng Shu Subject: Re: [patch] org-element: Deal with subscript like: "_{x}" Date: Wed, 17 Dec 2014 23:43:43 +0800 Message-ID: <87vblaffio.fsf@news.tumashu-localhost.org> References: <87iohawemv.fsf@news.tumashu-localhost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42874) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1GtX-0005Nu-E8 for emacs-orgmode@gnu.org; Wed, 17 Dec 2014 10:52:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y1GtO-0003O3-Cs for emacs-orgmode@gnu.org; Wed, 17 Dec 2014 10:52:11 -0500 Received: from mail-pd0-x229.google.com ([2607:f8b0:400e:c02::229]:34861) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1GtO-0003Nn-5g for emacs-orgmode@gnu.org; Wed, 17 Dec 2014 10:52:02 -0500 Received: by mail-pd0-f169.google.com with SMTP id z10so16521924pdj.0 for ; Wed, 17 Dec 2014 07:52:01 -0800 (PST) Received: from news.tumashu-localhost.org ([120.4.238.85]) by mx.google.com with ESMTPSA id nb5sm4318654pbc.25.2014.12.17.07.51.58 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 17 Dec 2014 07:51:59 -0800 (PST) Received: from feng by news.tumashu-localhost.org with local (Exim 4.80) (envelope-from ) id 1Y1GlL-00029P-Fy for emacs-orgmode@gnu.org; Wed, 17 Dec 2014 23:43:43 +0800 In-Reply-To: <87iohawemv.fsf@news.tumashu-localhost.org> (Feng Shu's message of "Wed, 17 Dec 2014 22:10:48 +0800") 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: emacs-orgmode@gnu.org This seem to be a wrong patch, sorry! Feng Shu writes: > From a4b14292b96a0f5e5d262087ec3e8de7c209f863 Mon Sep 17 00:00:00 2001 > From: Feng Shu > Date: Wed, 17 Dec 2014 21:59:44 +0800 > Subject: [PATCH] org-element: Deal with subscript like: "_{x}" > > * lisp/org-element.el (org-element--object-lex): Deal with > subscript like: "_{x}". > --- > lisp/org-element.el | 3 +++ > 1 =E4=B8=AA=E6=96=87=E4=BB=B6=E8=A2=AB=E4=BF=AE=E6=94=B9=EF=BC=8C=E6=8F= =92=E5=85=A5 3 =E8=A1=8C(+) > > diff --git a/lisp/org-element.el b/lisp/org-element.el > index d5d4bb9..bf8b152 100644 > --- a/lisp/org-element.el > +++ b/lisp/org-element.el > @@ -4215,6 +4215,9 @@ to an appropriate container (e.g., a paragraph)." > (?^ (and (memq 'superscript restriction) > (org-element-superscript-parser))) > (?_ (or (and (memq 'subscript restriction) > + (if (eq org-export-with-sub-superscripts '{}) > + (eq (char-after (+ (point) 1) ) ?{) > + t) > (org-element-subscript-parser)) > (and (memq 'underline restriction) > (org-element-underline-parser)))) > --=20 > 1.7.10.4 --=20