emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: hymie@lactose.homelinux.net (hymie!)
To: emacs-orgmode@gnu.org
Subject: inconsistency -- agenda, jump to specific day
Date: Fri, 19 Sep 2014 14:46:09 +0000 (UTC)	[thread overview]
Message-ID: <lvhfjh$4j8$1@ger.gmane.org> (raw)

So I think I found an inconsistency in the agenda and/or in the docs.
Maybe it's just my lack of understanding as usual, but here goes.

Emacs  : GNU Emacs 24.3.1 (i386-mingw-nt6.1.7601) of 2013-03-17 on MARVIN
Package: Org-mode version 8.2.7c (8.2.7c-dist @ c:/ProgramData/Microsoft/Windows/Start Menu/Programs/emacs-24.3/lisp/org/)

According to the docuemntation:
>v d or short d     (org-agenda-day-view)
>v w or short w     (org-agenda-week-view)
>v t     (org-agenda-fortnight-view)
>v m     (org-agenda-month-view)
>v y     (org-agenda-year-view)
>v SPC     (org-agenda-reset-view)
>    Switch to day/week/month/year view. When switching to day or
>    week view, this setting becomes the default for subsequent agenda
>    refreshes. Since month and year views are slow to create, they do not
>    become the default. A numeric prefix argument may be used to jump
>    directly to a specific day of the year, ISO week, month, or year,
>    respectively. For example, 32 d jumps to February 1st, 9 w to ISO
>    week number 9.

"d", however, does not work that way.  Using a numberic prefix before
"d" jumps to that specific day of the **month**, not of the year.
So when I'm looking at the current agenda (for week 15 Sep - 21 Sep),
"5d" takes me to Sept 5th, "26d" takes me to Sept 26th, 35d takes me
to October 5th (the 35th "day of September").

Note that the "current month" had changed, so now, "5d" takes me to
October 5th, not September 5th any more.  To me that's another
inconsistency, but I could see where it's a "feature" and not a "bug".

This is a problem for me because my employer actually **uses** Day Of Year.
So something happening today (19 sep 2014), I would log it as 2014-262.
Being able to jump directly to day 262 would be a very handy feature
for me.

Then, the documentation says
>When setting day, week, or month view, a year may be encoded in the
>prefix argument as well. For example, 200712 w will jump to week 12
>in 2007.  If such a year specification has only one or two digits,
>it will be mapped to the interval 1938-2037.

This does not work with day.  "1407w" indeed takes me to the 7th week of
2014.  From there, "1407d" takes me to December 8th 2017, which I haven't
counted but I think is the "1407th day of February 2014".

--hymie!    http://lactose.homelinux.net/~hymie    hymie@lactose.homelinux.net

                 reply	other threads:[~2014-09-19 14:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='lvhfjh$4j8$1@ger.gmane.org' \
    --to=hymie@lactose.homelinux.net \
    --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).