From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ilya Shlyakhter Subject: Re: org-scan-tags Date: Wed, 15 Sep 2010 12:13:41 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=45956 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OvucI-0002YZ-DY for emacs-orgmode@gnu.org; Wed, 15 Sep 2010 12:13:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OvucB-0006FO-5Z for emacs-orgmode@gnu.org; Wed, 15 Sep 2010 12:13:44 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:42949) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OvucB-0006FD-0q for emacs-orgmode@gnu.org; Wed, 15 Sep 2010 12:13:43 -0400 Received: by wwb24 with SMTP id 24so383262wwb.30 for ; Wed, 15 Sep 2010 09:13:42 -0700 (PDT) In-Reply-To: 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: emacs-orgmode On Tue, Sep 14, 2010 at 11:19 PM, Ilya Shlyakhter w= rote: > There also seem to be other opportunities for speeding up > org-scan-tags in this way: e.g. if the match string includes +mytag, > the regexp for the headline could include this as well. > Similarly for properties. =A0Maybe, org-make-tags-matcher could return a > list of tags and properties that must appear in any matching entry. Correction: org-make-tags-matcher would also need to return the list of _all_ tags/properties mentioned in the matcher, whose values should be inherited. The headline regexp would then need to match the mention of these tags/properties in entries, as well. It would also be good if org-scan-tags could be told to skip selected subtrees entirely (selected either by another matcher or a predicate passed in).