From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: org-element-at-point fails in programming-modes Date: Thu, 21 Aug 2014 10:58:26 +0200 Message-ID: <87ha16fcct.fsf@nicolasgoaziou.fr> References: <87zjez9xqc.fsf@gmail.com> <878umj8hc4.fsf@geodiff-mac3.ulb.ac.be> <87r40b9sk7.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57838) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKOC2-0005xX-N9 for emacs-orgmode@gnu.org; Thu, 21 Aug 2014 04:58:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XKOBr-0008Ar-3f for emacs-orgmode@gnu.org; Thu, 21 Aug 2014 04:58:02 -0400 Received: from relay5-d.mail.gandi.net ([2001:4b98:c:538::197]:55481) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKOBq-00088D-U5 for emacs-orgmode@gnu.org; Thu, 21 Aug 2014 04:57:51 -0400 In-Reply-To: <87r40b9sk7.fsf@gmail.com> (Thorsten Jolitz's message of "Wed, 20 Aug 2014 15:52:40 +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: Thorsten Jolitz Cc: emacs-orgmode@gnu.org Hello, Thorsten Jolitz writes: > Ok, thanks, that sounds promising. OTOH, is the use of "\\S-" really > mandatory, No, it isn't. > couldn't a more robust construct be used, either something > like this (untested) regexp: > > ,---- > | "[^[:space:]\\n]+" > `---- AFAIK, [:space:] is not compatible with XEmacs. It could be "[^ \r\t\n]+", but even this could be too broad (e.g., "#+BEGIN_..."). We could also limit block names to alphanumeric characters and a bunch of symbols. Regards, -- Nicolas Goaziou