From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Bug: / RET filter no longer auto-excludes FILETAGS [6.33trans (release_6.33f.34.gf806)] Date: Thu, 26 Nov 2009 12:03:24 +0100 Message-ID: References: <200911251854.nAPIsQjM001980@gollum.intra.norang.ca> <87r5rl4ku1.fsf@gollum.intra.norang.ca> Mime-Version: 1.0 (Apple Message framework v936) 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 1NDc8N-0006kq-GL for emacs-orgmode@gnu.org; Thu, 26 Nov 2009 06:03:35 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NDc8I-0006hh-DO for emacs-orgmode@gnu.org; Thu, 26 Nov 2009 06:03:34 -0500 Received: from [199.232.76.173] (port=38757 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDc8I-0006hS-8g for emacs-orgmode@gnu.org; Thu, 26 Nov 2009 06:03:30 -0500 Received: from ey-out-1920.google.com ([74.125.78.150]:10816) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NDc8H-0005XH-IK for emacs-orgmode@gnu.org; Thu, 26 Nov 2009 06:03:29 -0500 Received: by ey-out-1920.google.com with SMTP id 26so2048692eyw.2 for ; Thu, 26 Nov 2009 03:03:28 -0800 (PST) In-Reply-To: <87r5rl4ku1.fsf@gollum.intra.norang.ca> 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: Bernt Hansen Cc: emacs-orgmode@gnu.org On Nov 26, 2009, at 11:55 AM, Bernt Hansen wrote: > Carsten Dominik writes: > >> On Nov 25, 2009, at 7:54 PM, Bernt Hansen wrote: >> >>> >>> My auto exclude functions are inline below: >>> >>> (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))) >>> >> >> do you get it back to when when replacing "MARK" with "mark" and >> "PHONE" wiht "phone"? > > Yes. When I make the tags lowercase in the function above it works > again. The docstring of org-agenda-auto-exclude-function does mention this, but it is indeed a change from John's original code - so it was not in the docstring when you wrote this function.. - Carsten > > Thanks! > > -Bernt - Carsten