Carsten Dominik <carsten.domi...@gmail.com> writes:

> On Apr 19, 2010, at 5:07 PM, Matthew Lundin wrote:
>
>> I find that (org-agenda-restriction-lock) makes subsequent calls to
>> my-org-agenda-files-by-filetag slow, since it refreshes the current
>> agenda.
>>
>>
>> Are there any potential pitfalls if I use (setq org-agenda-restrict
>> nil)
>> instead?
>
> I think you might mean org-agenda-remove-restriction-lock?

Yes, sorry for the typo.

> That function does some cleanup which I think you should keep,
> so maybe just call it like this:
>
> (org-agenda-remove-restriction-lock 'noupdate)

Thanks! This was exactly what I was looking for.

> Otherwise, while you are inside your system, (setq org-agenda-restrict
> nil) is enough - only when you mix the normal subtree/file restriction
> with you system, you may get funny effects.

I've put updated versions of the functions on Worg:

http://orgmode.org/worg/org-hacks.php#set-agenda-files-by-filetag

Best,
Matt




_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to