Bug: Jumping to a date in the agenda changes view back to 'day' [7.4 (release_7.4...
commitca7aeada15aa2f3e5f8343d72acf58d54f67ca3c
authorJulien Danjou <julien@danjou.info>
Mon, 7 Feb 2011 16:39:17 +0000 (7 16:39 +0000)
committerBastien Guerry <bzg@altern.org>
Tue, 8 Feb 2011 17:05:31 +0000 (8 18:05 +0100)
treebb002e00e6cb143a3a9de0f2b14a908a6a1e5334
parent334cf2038d173ec444edf8842e0e96576945a8b0
Bug: Jumping to a date in the agenda changes view back to 'day' [7.4 (release_7.4.80.g0e5e5)]

On Sat, Feb 05 2011, Matt Lundin wrote:

> This results in only a day view because org-agenda-current-span is still
> 'day.

Here's a proposal fix.

I could have setq org-agenda-current-span to nil as a work around, but
it seems more logical to just kill all the local variables. That is, a
custom agenda view would not keep any of the local variable of the
previous agenda, which seems logical to me.

>From b48fc7c395dffea60df20c23b26e362ac0354b01 Mon Sep 17 00:00:00 2001
From: Julien Danjou <julien@danjou.info>
Date: Mon, 7 Feb 2011 12:36:42 +0100
Subject: [PATCH] org-agenda: kill local variables in agenda view

* org-agenda.el (org-agenda): Kill all local variables. This
assures we are not keeping buffer variable from an old agenda view
when switching to a new custom agenda.

Signed-off-by: Julien Danjou <julien@danjou.info>
lisp/org-agenda.el