From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anders Johansson Subject: Re: Bug? Changed behaviour makes tags in headlines without a title parsed as the title Date: Fri, 10 Apr 2015 21:47:02 +0200 Message-ID: <552828B6.3040704@gmail.com> References: <552530AE.7030301@gmail.com> <87fv88yms8.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41548) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgetV-0001iD-W9 for emacs-orgmode@gnu.org; Fri, 10 Apr 2015 15:47:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YgetR-000864-Vr for emacs-orgmode@gnu.org; Fri, 10 Apr 2015 15:47:13 -0400 Received: from mail-lb0-x230.google.com ([2a00:1450:4010:c04::230]:36541) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgetR-00085y-Nd for emacs-orgmode@gnu.org; Fri, 10 Apr 2015 15:47:09 -0400 Received: by lbbqq2 with SMTP id qq2so21135294lbb.3 for ; Fri, 10 Apr 2015 12:47:08 -0700 (PDT) In-Reply-To: <87fv88yms8.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou , emacs-orgmode@gnu.org Den 2015-04-10 18:24, Nicolas Goaziou skrev: > Hello, > > Anders Johansson writes: > >> I have been using "degenerate" inlinetasks with empty titles but many >> tags for implementing a kind of coding scheme for coding texts for >> qualitative data analysis. Like this: >> ----- >> >> Some text that I want to tag (The inlinetask in my scheme refers to >> the paragraph above it) >> *************** :tag1:tag2:tag3: >> >> Other text (no inlinetask-END, mostly) >> ----- >> >> Building org from the master branch, I recently noticed a changed >> behaviour in that these tags as are not parsed as tags but instead as >> the title, meaning my exports don't work as expected (and possibly >> other things, but searching for tags etc.doesn't seem to be affected. >> Those functions don't use org-element perhaps?). > > Indeed. > >> As far as I could see, this comes from the changes in commit >> >> 98ee73: org-element: Avoid `org-element-parse-secondary-string', >> >> where tags are matched with the regexp: >> (org-re "[ \t]+\\(:[[:alnum:]_@#%:]+:\\)[ \t]*$") >> >> which needs whitespace "after" the non-existent title. >> >> I haven't checked all the different changes going on in org-element though. >> >> I don't know if this changed behaviour is intended. Otherwise I guess >> it's a bug. > > Empty headings are a pathological case. What if I want to write > > *************** :title: > > ? Your interpretation prevents that. > > Of course, Org is expected to be consistent. However I'm not convinced > supporting empty headlines with tags is a good thing. > > Regards, > Great, that sounds reasonable. I guess I'll change my practice then. Cheers,