From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: 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, 24 Feb 2011 09:38:50 -0500 Message-ID: <87r5axa45h.fsf@fastmail.fm> References: <20110201115210.6AD9A8783@myhost.localdomain> <87wrlfl1jx.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=35801 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PscLH-0007w8-N4 for emacs-orgmode@gnu.org; Thu, 24 Feb 2011 09:38:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PscLF-0003j6-QS for emacs-orgmode@gnu.org; Thu, 24 Feb 2011 09:38:55 -0500 Received: from out1.smtp.messagingengine.com ([66.111.4.25]:38904) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PscLF-0003id-O0 for emacs-orgmode@gnu.org; Thu, 24 Feb 2011 09:38:53 -0500 In-Reply-To: <87wrlfl1jx.fsf@fastmail.fm> (Matt Lundin's message of "Fri, 04 Feb 2011 20:20:34 -0500") 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: Bastien Guerry Cc: Julien Danjou , emacs-orgmode@gnu.org Matt Lundin writes: > Bastien Guerry writes: > >> Patch 543 (http://patchwork.newartisans.com/patch/543/) is now "Accepted". > >>> * org-agenda.el (org-agenda-list): Use org-agenda-current-span as a >>> possible default span if it is set. > This patch breaks custom commands --- i.e., if one binds org-agenda-span > in a custom command, it seems to be overridden by the span of whatever > agenda command one last called (i.e., org-agenda-current-span). > > Steps to replicate: > > 1. (setq org-agenda-span 'day) > > 2. M-x org-agenda-list > > 3. Check the value of org-agenda-current-span => day > > 4. Call the following custom command: > > (setq org-agenda-custom-commands > '(("c" "Calendar" agenda "" > ((org-agenda-span 'week) > (org-agenda-start-on-weekday 0) > (org-agenda-time-grid nil) > (org-agenda-entry-types '(:timestamp :sexp)) > (org-agenda-prefix-format " %-12:t ") > (org-deadline-warning-days 0) > (org-agenda-include-all-todo nil) > (org-agenda-repeating-timestamp-show-all t) > )))) > > This results in only a day view because org-agenda-current-span is still > 'day. > Has there been any progress on this issue? I am finding that the local span bindings in the custom command above still do not have any effect. My default agenda span is a day. If I call the custom command above, it displays only one day, despite the local setting. Best, Matt