From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ingo Lohmar Subject: [PATCH] make org-agenda-later honor arg when current span is a number Date: Tue, 2 Oct 2012 20:41:04 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52689) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJ9QF-00006O-UG for emacs-orgmode@gnu.org; Tue, 02 Oct 2012 16:50:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TJ9QE-0008Fp-TV for emacs-orgmode@gnu.org; Tue, 02 Oct 2012 16:50:31 -0400 Received: from plane.gmane.org ([80.91.229.3]:57121) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJ9QE-0008FH-Mo for emacs-orgmode@gnu.org; Tue, 02 Oct 2012 16:50:30 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TJ9Pu-000104-1U for emacs-orgmode@gnu.org; Tue, 02 Oct 2012 22:50:10 +0200 Received: from gr-140-128.dyn.huji.ac.il ([132.64.140.128]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Oct 2012 22:50:10 +0200 Received: from i.lohmar by gr-140-128.dyn.huji.ac.il with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Oct 2012 22:50:10 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi All, I just fixed an oversight (I suppose) in org-agenda.el. When org-current-agenda-span is a number of days (my standard agenda shows 2 days), org-agenda-later does not respect the argument. In particular that means pressing "b" goes forward instead of backward! The trivial patch for release 7.9.2: --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -7071,7 +7071,7 @@ greg2) (cond ((numberp span) - (setq sd (+ span sd))) + (setq sd (+ (* span arg) sd))) ((eq span 'day) (setq sd (+ arg sd))) ((eq span 'week) Regards, Ingo