From mboxrd@z Thu Jan 1 00:00:00 1970 From: Viktor Rosenfeld Subject: [PATCH] org.el: Filter agenda by persistent tags Date: Wed, 24 Apr 2013 16:11:09 +0200 Message-ID: <20130424141109.GA12307@kenny.fritz.box> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="2oS5YaxWCcQjTEyO" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60564) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UV0XZ-0004Ew-Le for emacs-orgmode@gnu.org; Wed, 24 Apr 2013 10:19:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UV0XW-0008B0-QE for emacs-orgmode@gnu.org; Wed, 24 Apr 2013 10:19:21 -0400 Received: from mail-bk0-x234.google.com ([2a00:1450:4008:c01::234]:37405) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UV0XW-0008AO-G2 for emacs-orgmode@gnu.org; Wed, 24 Apr 2013 10:19:18 -0400 Received: by mail-bk0-f52.google.com with SMTP id it16so747068bkc.25 for ; Wed, 24 Apr 2013 07:19:17 -0700 (PDT) Received: from kenny.fritz.box (f052141033.adsl.alicedsl.de. [78.52.141.33]) by mx.google.com with ESMTPSA id jz9sm601279bkb.1.2013.04.24.07.11.12 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 24 Apr 2013 07:11:13 -0700 (PDT) Content-Disposition: inline List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --2oS5YaxWCcQjTEyO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, the attached patch makes `org-agenda-filter-by-tag-refine' pickup the hotkeys defined for tags in `org-tag-persistent-alist'. Cheers, Viktor --2oS5YaxWCcQjTEyO Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="0001-org.el-Filter-agenda-by-persistent-tags.patch" >From 25d8eb08ecab282fc85c95307cddada8b5032e21 Mon Sep 17 00:00:00 2001 From: Viktor Rosenfeld Date: Wed, 24 Apr 2013 15:54:14 +0200 Subject: [PATCH] org.el: Filter agenda by persistent tags * org.el (org-agenda-prepare-buffers): Add tags defined in org-tag-persistent-alist to org-tag-alist-for-agenda. This makes tag hotkeys defined in `org-tag-persistent-alist' appear when the user invokes `org-agenda-filter-by-tag-refine'. --- lisp/org.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 1c9e9df..8d43840 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -17985,7 +17985,10 @@ When a buffer is unmodified, it is just killed. When modified, it is saved (setq org-drawers-for-agenda (append org-drawers-for-agenda org-drawers)) (setq org-tag-alist-for-agenda - (org-uniquify (append org-tag-alist-for-agenda org-tag-alist))) + (org-uniquify + (append org-tag-alist-for-agenda + org-tag-alist + org-tag-persistent-alist))) (if org-group-tags (setq org-tag-groups-alist-for-agenda (org-uniquify-alist -- 1.8.2 --2oS5YaxWCcQjTEyO--