emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Viktor Rosenfeld <listuser36@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [PATCH] org.el: Filter agenda by persistent tags
Date: Wed, 24 Apr 2013 16:11:09 +0200	[thread overview]
Message-ID: <20130424141109.GA12307@kenny.fritz.box> (raw)

[-- Attachment #1: Type: text/plain, Size: 147 bytes --]


the attached patch makes `org-agenda-filter-by-tag-refine' pickup the
hotkeys defined for tags in `org-tag-persistent-alist'.


[-- Attachment #2: 0001-org.el-Filter-agenda-by-persistent-tags.patch --]
[-- Type: text/plain, Size: 1148 bytes --]

From 25d8eb08ecab282fc85c95307cddada8b5032e21 Mon Sep 17 00:00:00 2001
From: Viktor Rosenfeld <listuser36@gmail.com>
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

             reply	other threads:[~2013-04-24 14:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-24 14:11 Viktor Rosenfeld [this message]
2013-04-24 14:22 ` Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130424141109.GA12307@kenny.fritz.box \
    --to=listuser36@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --subject='Re: [PATCH] org.el: Filter agenda by persistent tags' \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this inbox:


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).