emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Samuel Wales <samologist@gmail.com>
Cc: Bernt Hansen <bernt@norang.ca>,
	nicholas.dokos@hp.com, emacs-orgmode@gnu.org
Subject: Re: Hyphens for tags, todo keywords, and properties
Date: Sun, 05 Feb 2012 15:36:46 -0500	[thread overview]
Message-ID: <10376.1328474206@alphaville> (raw)
In-Reply-To: Message from Samuel Wales <samologist@gmail.com> of "Sun, 05 Feb 2012 09:23:39 MST." <CAJcAo8u_GYkTC9Hceb0WyN9m+n_-4w5FkGtbY-+z7ePwpmQyog@mail.gmail.com>

Samuel Wales <samologist@gmail.com> wrote:

> On 2012-02-05, Bernt Hansen <bernt@norang.ca> wrote:
> > Nick Dokos <nicholas.dokos@hp.com> 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	other threads:[~2012-02-05 20:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-05  2:36 Hyphens for tags, todo keywords, and properties Samuel Wales
2012-02-05  7:09 ` Nick Dokos
2012-02-05 14:30   ` Bernt Hansen
2012-02-05 16:23     ` Samuel Wales
2012-02-05 20:36       ` Nick Dokos [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=10376.1328474206@alphaville \
    --to=nicholas.dokos@hp.com \
    --cc=bernt@norang.ca \
    --cc=emacs-orgmode@gnu.org \
    --cc=samologist@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).