From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Bug: / RET filter no longer auto-excludes FILETAGS [6.33trans (release_6.33f.34.gf806)] Date: Wed, 25 Nov 2009 13:54:26 -0500 Message-ID: <200911251854.nAPIsQjM001980@gollum.intra.norang.ca> Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NDN0e-0008H5-8l for emacs-orgmode@gnu.org; Wed, 25 Nov 2009 13:54:36 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NDN0a-0008FG-Lj for emacs-orgmode@gnu.org; Wed, 25 Nov 2009 13:54:35 -0500 Received: from [199.232.76.173] (port=49056 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDN0a-0008FB-Gb for emacs-orgmode@gnu.org; Wed, 25 Nov 2009 13:54:32 -0500 Received: from mho-01-ewr.mailhop.org ([204.13.248.71]:65428) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NDN0Z-0000P3-EC for emacs-orgmode@gnu.org; Wed, 25 Nov 2009 13:54:32 -0500 Received: from cpe000102d0fe75-cm0012256ecbde.cpe.net.cable.rogers.com ([99.239.148.180] helo=mail.norang.ca) by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1NDN0W-000Jm9-3P for emacs-orgmode@gnu.org; Wed, 25 Nov 2009 18:54:28 +0000 Received: from gollum.intra.norang.ca (gollum.intra.norang.ca [192.168.1.5]) by mail.norang.ca (8.14.3/8.14.3/Debian-5) with ESMTP id nAPIsQvv013975 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 25 Nov 2009 13:54:27 -0500 Received: from gollum.intra.norang.ca (localhost [127.0.0.1]) by gollum.intra.norang.ca (8.14.3/8.14.3/Debian-5) with ESMTP id nAPIsQjp001983 for ; Wed, 25 Nov 2009 13:54:26 -0500 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@gnu.org Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. ------------------------------------------------------------------------ I have a function that excludes tasks in the agenda using / RET (auto-exclude.) This works in release_6.33f but is broken on the current master. One of the following commits breaks it: There are only 'skip'ped commits left to test. The first bad commit could be any of: c6186f49b361dcb2ef05bf769c9abf80307bd658 1a0e1a6f07303aa935a643863c7cb85264e73481 Excluding tasks by FILETAGS only breaks for me. The tag 'MARK' is a #+FILETAGS: MARK entry only in mark.org. Auto Exclusion of the MARK tag no longer works with the current master. My auto exclude functions are inline below: -Bernt --8<---------------cut here---------------start------------->8--- (defun bh/weekday-p () (let ((wday (nth 6 (decode-time)))) (and (< wday 6) (> wday 0)))) (defun bh/working-p () (let ((hour (nth 2 (decode-time)))) (and (bh/weekday-p) (or (and (>= hour 8) (<= hour 11)) (and (>= hour 13) (<= hour 16)))))) (defun bh/mark-p () (let ((hour (nth 2 (decode-time)))) (or (and (bh/weekday-p) (or (= hour 8) (and (>= hour 16) (<= hour 20)))) (and (not (bh/weekday-p)) (>= hour 9) (<= hour 20))))) (defun bh/org-auto-exclude-function (tag) (and (cond ((string= tag "@home") (bh/working-p)) ((string= tag "@office") (not (bh/working-p))) ((string= tag "MARK") (not (bh/mark-p))) ((or (string= tag "@errand") (string= tag "PHONE")) (let ((hour (nth 2 (decode-time)))) (or (< hour 8) (> hour 21))))) (concat "-" tag))) (setq org-agenda-auto-exclude-function 'bh/org-auto-exclude-function) --8<---------------cut here---------------end--------------->8--- Emacs : GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11) of 2008-11-09 on raven, modified by Debian Package: Org-mode version 6.33trans (release_6.33f.34.gf806)