From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: [Accepted] Re: Bug: Jumping to a date in the agenda changes view back to 'day' [7.4 (release_7.4.80.g0e5e5)] Date: Thu, 10 Feb 2011 12:50:02 +0100 Message-ID: References: <20110201115210.6AD9A8783@myhost.localdomain> <87wrlfl1jx.fsf@fastmail.fm> <87sjvzaezr.fsf@keller.adm.naquadah.org> <871v3hjhac.fsf@gnu.org> <8AA3F93A-FFEC-4D8B-941C-22DBD8D05082@gmail.com> <87oc6kupqf.fsf@keller.adm.naquadah.org> Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=35021 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PnV2L-0006gi-7S for emacs-orgmode@gnu.org; Thu, 10 Feb 2011 06:50:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PnV2E-0003cY-B4 for emacs-orgmode@gnu.org; Thu, 10 Feb 2011 06:50:07 -0500 Received: from mail-gx0-f169.google.com ([209.85.161.169]:54306) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PnV2E-0003cM-6l for emacs-orgmode@gnu.org; Thu, 10 Feb 2011 06:50:06 -0500 Received: by gxk5 with SMTP id 5so584638gxk.0 for ; Thu, 10 Feb 2011 03:50:05 -0800 (PST) In-Reply-To: <87oc6kupqf.fsf@keller.adm.naquadah.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Julien Danjou Cc: Matt Lundin , emacs-orgmode@gnu.org, Bastien On Feb 10, 2011, at 11:51 AM, Julien Danjou wrote: > On Thu, Feb 10 2011, Carsten Dominik wrote: >=20 >> I am not sure if I know exactly what the remaining problem is. >> Could someone summarize this - I'd be happy to take a look and see if = I can fix it. >=20 > The problem is that org-agenda-list, when called use as span either: > (or span org-agenda-current-span org-agenda-span) >=20 > Or, when defining a custom agenda view, and calling it, the Agenda > buffer is reused. Therefore, if your agenda view locally bind > org-agenda-span to 'day, whereas org-agenda-current-span was = previously > set to 'week, it does not work. >=20 > This is why I've added a kill-local-variable in custom agenda view, > which seems quite a good thing. Bastien says it does not work with > emacs -q, but I don't why unfortunately. Bastien? No, I believe you did kill-all-local-variables, which is a very bad idea. Org uses local variables to remember settings when refreshing. And apparently this call was executed in an innocent org buffer, reverting its major mode to fundamental mode. :) But maybe you can just delocalize that one variable instead, using kill-local-variable? - Carsten=