From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [bug?, org-element] latex-environment delimiters must be at BOL Date: Wed, 23 Jul 2014 10:29:54 +0200 Message-ID: <87k374scjh.fsf@nicolasgoaziou.fr> References: <877g3ltomt.fsf@gmx.us> <87iomxjvyv.fsf@nicolasgoaziou.fr> <87vbqu1xb6.fsf@gmx.us> <87mwc3gbtj.fsf@nicolasgoaziou.fr> <87egxf12n7.fsf@gmx.us> <87ha29g76m.fsf@nicolasgoaziou.fr> <87fvhtlq0p.fsf@gmx.us> <87d2cxg16m.fsf@nicolasgoaziou.fr> <874my9ldz2.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52986) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9rvN-0002BW-Of for emacs-orgmode@gnu.org; Wed, 23 Jul 2014 04:29:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X9rvF-0000OE-KY for emacs-orgmode@gnu.org; Wed, 23 Jul 2014 04:29:21 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:49403) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9rvF-0000NY-D2 for emacs-orgmode@gnu.org; Wed, 23 Jul 2014 04:29:13 -0400 In-Reply-To: <874my9ldz2.fsf@gmx.us> (rasmus@gmx.us's message of "Tue, 22 Jul 2014 15:28:33 +0200") 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: Rasmus Cc: emacs-orgmode@gnu.org Hello, Rasmus writes: > Note that the maint/master version of org-element--current-element > does not including a trailing "^". That's becasue `org-element--current-element' always does the check at the beginning of line. > I'm not sure the location of stars matter much in a technical sense, > though I have never come across any environments using stars other > than for the last character. > > This document compiles fine, although it is an exercise is obscurity: > > \documentclass{minimal} > \newenvironment{ab*cd}[1]{\bfseries{#1}}{} > \newenvironment{*abcd}[1]{\bfseries{#1}}{} > \begin{document} > \begin{ab*cd} x \end{ab*cd} > \begin{*abcd} x \end{*abcd} > \end{document} > > I'm happy to accept only stars in the end, though. I somehow was convinced that star characters were only allowed at the end of the environment name. You're right, enforcing stars at the end is unnecessary, and \\([A-Za-z0-9*]+\\) is better. > Sorry, I can't push to Org-git. But a patch is attached. I applied your patch with aforementioned change. Thank you. Regards, -- Nicolas Goaziou