summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Shlyakhter <ilya_shl@alum.mit.edu>2012-03-16 19:13:08 +0000
committerCarsten Dominik <carsten.dominik@gmail.com>2012-03-16 17:31:10 +0100
commit2149ad8aeae944fb2d1d41a866e5328ec08ebeb7 (patch)
tree38b3046f6b94067027e19a9344a3307bf4f8a43b
parentbeb024687b08b3285ecc2719c111967d747c0e98 (diff)
downloadorg-mode-2149ad8aeae944fb2d1d41a866e5328ec08ebeb7.tar.gz
tags search: faster tags matcher by trusting scanner tags
On 3/16/2012 2:10 AM, Nick Dokos wrote: > One more thing that you'll need to do is put your patches in attachments > of a type that will allow patchwork to snag the patch: Thanks, I was wondering why they're not showing up. Here is another try (attached) for the org.el patch. ilya >From 95c38b06803aec0787bc2eaab3d0062221390292 Mon Sep 17 00:00:00 2001 From: Ilya Shlyakhter <ilya_shl@alum.mit.edu> Date: Fri, 16 Mar 2012 00:10:25 -0400 Subject: [PATCH 2/2] Tags/properties matcher: faster matching by trusting org-scanner-tags * lisp/org.el (org-scan-tags): Bind org-trust-scanner-tags to t while evaluating the matcher, since the matcher is always evaluated at the current entry. TINYCHANGE
-rw-r--r--lisp/org.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el
index ad63213..951f692 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -12906,7 +12906,8 @@ headlines matching this string."
;; eval matcher only when the todo condition is OK
(and (or (not todo-only) (member todo org-not-done-keywords))
- (let ((case-fold-search t)) (eval matcher)))
+ (let ((case-fold-search t) (org-trust-scanner-tags t))
+ (eval matcher)))
;; Call the skipper, but return t if it does not skip,
;; so that the `and' form continues evaluating