emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Hyphens for tags, todo keywords, and properties


From: Nick Dokos
Subject: Re: [O] Hyphens for tags, todo keywords, and properties
Date: Sun, 05 Feb 2012 15:36:46 -0500

Samuel Wales <address@hidden> wrote:

> On 2012-02-05, Bernt Hansen <address@hidden> wrote:
> > Nick Dokos <address@hidden> writes:
> >> I suspect that this is going to be difficult, if not impossible.
> >> In particular, tags and properties search uses - as a metacharacter,
> >> so having it appear as part of a tag or property would probably
> >> break things there.
> >
> > How is tag filtering where you remove a tag with '-TAG' going to
> > distinguish between a tag with a - and tag you want to remove?
> >
> >      (tags-todo "-WAITING-CANCELLED/!NEXT"
> >
> > is that one tag to remove - WAITING-CANCELLED or is it two (-WAITING and
> > -CANCELLED)?
> 
> With \\- in the middle, it should be one.
> 

[NB: gut feeling, unsupported by actual evidence.]

The trouble is that org in general does not have an escaping mechanism
(something that causes problems in various places).  I'm willing to bet
that there is no such escaping mechanism i tags/properties searching
e.g. To add an escaping mechanism would require, at the very least, some
(probably substantial) number of regexps to be rewritten in order to
deal with escapes, with all the collateral damage that that would
entail: at this point, that's probably a cure that's worse than the
disease.

It might be that ngz's parser might have an escape mechanism already
built-in (my guess is that it probably does not however) or it might be
possible to graft one in without doing too much violence to it. But I'd
guess that trying to do something like this on the existing code base
would be ... difficult.

Nick




reply via email to

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