From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Searching for tags or todo keywords Date: Tue, 16 Sep 2008 10:00:28 +0200 Message-ID: <43C43DAD-21BC-4813-8C7D-699B9ECC572E@uva.nl> References: <1219411261.28705.1269971211@webmail.messagingengine.com> <8B62D5CA-840C-4464-A7DE-310209EB8FEA@uva.nl> <20524da70809152215y55dccdd3sd62d299b893ce287@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v926) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KfVUE-0003ic-Q8 for emacs-orgmode@gnu.org; Tue, 16 Sep 2008 04:00:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KfVUD-0003hn-1G for emacs-orgmode@gnu.org; Tue, 16 Sep 2008 04:00:38 -0400 Received: from [199.232.76.173] (port=38463 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KfVUC-0003hh-Tg for emacs-orgmode@gnu.org; Tue, 16 Sep 2008 04:00:36 -0400 Received: from pony.ic.uva.nl ([145.18.40.181]:52271) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KfVUC-0004Yy-6B for emacs-orgmode@gnu.org; Tue, 16 Sep 2008 04:00:36 -0400 In-Reply-To: <20524da70809152215y55dccdd3sd62d299b893ce287@mail.gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Samuel Wales Cc: emacs-orgmode@gnu.org Hi Samuel, yes, a general Lisp syntax is certainly a good idea. In fact, currently the match is also converted into a Lisp form. However, it does not use simple variables that would be great to supply in a user form. The reason is that I am trying to minimize parsing for properties and tags, so that these are only located if used. Still, I guess you are right that this is a relatively simple extension to make - I will think about it. - Carsten On Sep 16, 2008, at 7:15 AM, Samuel Wales wrote: > On Sat, Sep 13, 2008 at 12:10, Carsten Dominik > wrote: >> I would like to have parenthesis, but since the parsing is done by >> string >> processing, any parenthesis in one of the search strings would be >> difficult >> to handle. > > Have you considered using Lisp syntax, perhaps as an alternate? > > Benefits include: trivial to parse (no parsing at all -- let Lisp > parse and maybe even eval for you!), easier for the user to remember > (for some of us :)), orthogonal, easy to extend (even with > user-defined functions), easier to quote and escape, consistent, > standard, free of precedence lists, proven technology, > pretty-printable, print-readable, etc. > > The old syntax can easily be converted to sexp, thus separating syntax > from semantics and ensuring that the behavior is the same -- without > making anybody have to switch. > > Just a possibility.