* multiple agenda custom commands causes tag-filter-preset not to work?
@ 2013-11-27 10:23 Miro Bezjak
2013-11-27 10:23 ` Miro Bezjak
2013-12-06 14:30 ` Bastien
0 siblings, 2 replies; 7+ messages in thread
From: Miro Bezjak @ 2013-11-27 10:23 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 617 bytes --]
Hi all,
consider the following configuration:
----------------------------------------
(setq org-agenda-custom-commands
'(("h" "home"
((agenda "" ((org-agenda-span 'day)
(org-agenda-tag-filter-preset '("-work"))))
(alltodo)))))
----------------------------------------
It appears that `org-agenda-tag-filter-preset' does not work when I define
multiple commands under one. The agenda is rendered as if filter was never
set.
On the other hand, if I remove `(alltodo)', thus defining only the agenda,
then
the filter works without problems.
Any ideas?
Regards,
Miro
[-- Attachment #2: Type: text/html, Size: 822 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: multiple agenda custom commands causes tag-filter-preset not to work?
2013-11-27 10:23 multiple agenda custom commands causes tag-filter-preset not to work? Miro Bezjak
@ 2013-11-27 10:23 ` Miro Bezjak
2013-11-28 16:27 ` Miro Bezjak
2013-12-06 14:30 ` Bastien
1 sibling, 1 reply; 7+ messages in thread
From: Miro Bezjak @ 2013-11-27 10:23 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 801 bytes --]
Forgot to mention. I'm using org-mode 8.2.2.
Regards,
Miro
On Wed, Nov 27, 2013 at 11:23 AM, Miro Bezjak <bezjak.miro@gmail.com> wrote:
> Hi all,
>
> consider the following configuration:
>
> ----------------------------------------
> (setq org-agenda-custom-commands
> '(("h" "home"
> ((agenda "" ((org-agenda-span 'day)
> (org-agenda-tag-filter-preset '("-work"))))
> (alltodo)))))
> ----------------------------------------
>
> It appears that `org-agenda-tag-filter-preset' does not work when I define
> multiple commands under one. The agenda is rendered as if filter was never
> set.
>
> On the other hand, if I remove `(alltodo)', thus defining only the agenda,
> then
> the filter works without problems.
>
> Any ideas?
>
> Regards,
> Miro
>
[-- Attachment #2: Type: text/html, Size: 1299 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: multiple agenda custom commands causes tag-filter-preset not to work?
2013-11-27 10:23 ` Miro Bezjak
@ 2013-11-28 16:27 ` Miro Bezjak
2013-11-28 17:46 ` Bastien
0 siblings, 1 reply; 7+ messages in thread
From: Miro Bezjak @ 2013-11-28 16:27 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 932 bytes --]
Any ideas?
On Wed, Nov 27, 2013 at 11:23 AM, Miro Bezjak <bezjak.miro@gmail.com> wrote:
> Forgot to mention. I'm using org-mode 8.2.2.
>
> Regards,
> Miro
>
>
> On Wed, Nov 27, 2013 at 11:23 AM, Miro Bezjak <bezjak.miro@gmail.com>wrote:
>
>> Hi all,
>>
>> consider the following configuration:
>>
>> ----------------------------------------
>> (setq org-agenda-custom-commands
>> '(("h" "home"
>> ((agenda "" ((org-agenda-span 'day)
>> (org-agenda-tag-filter-preset '("-work"))))
>> (alltodo)))))
>> ----------------------------------------
>>
>> It appears that `org-agenda-tag-filter-preset' does not work when I define
>> multiple commands under one. The agenda is rendered as if filter was
>> never set.
>>
>> On the other hand, if I remove `(alltodo)', thus defining only the
>> agenda, then
>> the filter works without problems.
>>
>> Any ideas?
>>
>> Regards,
>> Miro
>>
>
>
[-- Attachment #2: Type: text/html, Size: 1757 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: multiple agenda custom commands causes tag-filter-preset not to work?
2013-11-28 16:27 ` Miro Bezjak
@ 2013-11-28 17:46 ` Bastien
0 siblings, 0 replies; 7+ messages in thread
From: Bastien @ 2013-11-28 17:46 UTC (permalink / raw)
To: Miro Bezjak; +Cc: emacs-orgmode
Hi Miro,
Miro Bezjak <bezjak.miro@gmail.com> writes:
> Any ideas?
Please be patient -- your first post is 30 hours old, people are
not ignoring it, they seem just too busy right now.
--
Bastien
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: multiple agenda custom commands causes tag-filter-preset not to work?
2013-11-27 10:23 multiple agenda custom commands causes tag-filter-preset not to work? Miro Bezjak
2013-11-27 10:23 ` Miro Bezjak
@ 2013-12-06 14:30 ` Bastien
2013-12-07 21:14 ` Miro Bezjak
1 sibling, 1 reply; 7+ messages in thread
From: Bastien @ 2013-12-06 14:30 UTC (permalink / raw)
To: Miro Bezjak; +Cc: emacs-orgmode
Hi Miro,
Miro Bezjak <bezjak.miro@gmail.com> writes:
> It appears that `org-agenda-tag-filter-preset' does not work when I
> define
> multiple commands under one. The agenda is rendered as if filter was
> never set.
>
> On the other hand, if I remove `(alltodo)', thus defining only the
> agenda, then
> the filter works without problems.
Yes, that's by design -- or more precisely, by lack of a good way to
filter agenda blocks.
HTH,
--
Bastien
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: multiple agenda custom commands causes tag-filter-preset not to work?
2013-12-06 14:30 ` Bastien
@ 2013-12-07 21:14 ` Miro Bezjak
2014-01-04 14:33 ` Bastien
0 siblings, 1 reply; 7+ messages in thread
From: Miro Bezjak @ 2013-12-07 21:14 UTC (permalink / raw)
To: Bastien; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1088 bytes --]
Hi Bastien,
thank you for the explanation.
I've implemented the solution to my problem by using `agenda-skip-entry-if'
instead of `org-agenda-tag-filter-preset'.
Example:
------------------------------------------------------------
(setq org-agenda-custom-commands
'(("h" "home"
((agenda "" ((org-agenda-span 'day)
(org-agenda-skip-function '(org-agenda-skip-entry-if
'regexp ":work:"))))
(alltodo)))))
------------------------------------------------------------
Kind Regards,
Miro
On Fri, Dec 6, 2013 at 3:30 PM, Bastien <bzg@gnu.org> wrote:
> Hi Miro,
>
> Miro Bezjak <bezjak.miro@gmail.com> writes:
>
> > It appears that `org-agenda-tag-filter-preset' does not work when I
> > define
> > multiple commands under one. The agenda is rendered as if filter was
> > never set.
> >
> > On the other hand, if I remove `(alltodo)', thus defining only the
> > agenda, then
> > the filter works without problems.
>
> Yes, that's by design -- or more precisely, by lack of a good way to
> filter agenda blocks.
>
> HTH,
>
> --
> Bastien
>
[-- Attachment #2: Type: text/html, Size: 1854 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: multiple agenda custom commands causes tag-filter-preset not to work?
2013-12-07 21:14 ` Miro Bezjak
@ 2014-01-04 14:33 ` Bastien
0 siblings, 0 replies; 7+ messages in thread
From: Bastien @ 2014-01-04 14:33 UTC (permalink / raw)
To: Miro Bezjak; +Cc: emacs-orgmode
Miro Bezjak <bezjak.miro@gmail.com> writes:
> I've implemented the solution to my problem by using
> `agenda-skip-entry-if' instead of `org-agenda-tag-filter-preset'.
Thanks for sharing your solution!
Best,
--
Bastien
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-01-04 14:34 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-27 10:23 multiple agenda custom commands causes tag-filter-preset not to work? Miro Bezjak
2013-11-27 10:23 ` Miro Bezjak
2013-11-28 16:27 ` Miro Bezjak
2013-11-28 17:46 ` Bastien
2013-12-06 14:30 ` Bastien
2013-12-07 21:14 ` Miro Bezjak
2014-01-04 14:33 ` 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).