emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Possible bug in subtree matching with empty title + tags


From: Nicolas Goaziou
Subject: Re: Possible bug in subtree matching with empty title + tags
Date: Sat, 02 May 2020 15:23:46 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)

Hello,

Christian Heinrich <address@hidden> writes:

> I'm often using empty header titles that only contain tags, such as
>
>> **    :foo:
>
> In my case, this is sufficient (for instance for flashcards, where I never 
> have to actually have to
> use the agenda etc.). However, since Nicolas's refactoring in
> be31a0c4595a6d68b03b5cfbcbcdbf2cd76d2b7f empty titles seem to be prohibited. 
> In the above example,
> using subtrees (C-/ m) on the "foo" tag will return nothing, even though the 
> tag is in the file. Is
> this a deliberate change? I didn't see a note in the manual saying that 
> headings must not be empty
> (this might be useful then).

This is not totally about empty headings, which are fine in Org.

Your example is ambiguous. Is it an empty headline with tags, or
a headline titled ":foo:" with no tag? Since we cannot support both,
choosing one breaks support for the other. You could use, e.g.,
a NO-BREAK SPACE character in your headline and lift the ambiguity.

This is not a change, but rather and undefined corner-case. There was
a discussion about it a couple of years ago, IIRC. I don't remember what
the outcome was.

Regards,

-- 
Nicolas Goaziou



reply via email to

[Prev in Thread] Current Thread [Next in Thread]