emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] org.el: Filter agenda by persistent tags
@ 2013-04-24 14:11 Viktor Rosenfeld
  2013-04-24 14:22 ` Bastien
  0 siblings, 1 reply; 2+ messages in thread
From: Viktor Rosenfeld @ 2013-04-24 14:11 UTC (permalink / raw)
  To: emacs-orgmode

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

Hi,

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

Cheers,
Viktor

[-- 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
 		      (org-uniquify-alist
-- 
1.8.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] org.el: Filter agenda by persistent tags
  2013-04-24 14:11 [PATCH] org.el: Filter agenda by persistent tags Viktor Rosenfeld
@ 2013-04-24 14:22 ` Bastien
  0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2013-04-24 14:22 UTC (permalink / raw)
  To: Viktor Rosenfeld; +Cc: emacs-orgmode

Hi Viktor,

Viktor Rosenfeld <listuser36@gmail.com> writes:

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

Applied, thanks!

-- 
 Bastien

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-04-24 14:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-24 14:11 [PATCH] org.el: Filter agenda by persistent tags Viktor Rosenfeld
2013-04-24 14:22 ` Bastien

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

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).