From: Ingo Lohmar <i.lohmar@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [PATCH] make org-agenda-later honor arg when current span is a number
Date: Tue, 2 Oct 2012 20:41:04 +0000 (UTC) [thread overview]
Message-ID: <loom.20121002T223013-638@post.gmane.org> (raw)
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
next reply other threads:[~2012-10-02 20:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-02 20:41 Ingo Lohmar [this message]
2012-10-13 10:37 ` [PATCH] make org-agenda-later honor arg when current span is a number Ingo Lohmar
2012-10-13 10:55 ` Nicolas Goaziou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=loom.20121002T223013-638@post.gmane.org \
--to=i.lohmar@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).