emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Samuel Wales <samologist@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [tip] direct specification of deadline warning days without editing text
Date: Wed, 4 May 2022 17:02:21 -0700	[thread overview]
Message-ID: <CAJcAo8s8utQ_GbXmR4tyYx09gvSPM4YOu1PXM9QvtmzWPuvh+g@mail.gmail.com> (raw)

in retrospect this solution is completely obvious but i thought i
would mention it in case somebody searches for it.

in agenda, i do c-u c-u c-d.  this allows me to remove deadline
warning days [RET, very convenient!] or specify them.

a good thing about this feature is that there is less chance of
manually creating a format error in the timestamp as would occur by
going to the ts and editing it manually.  also it seems nothing is
relative to the existing warning.  that is good.

the prompt, however, seems geared toward specifying a date.  you can
specify indirectly the deadline warning days by specifying the date
that would be the warning.  the question is, can we specify deadline
warning days directly?

here is where it is obvious in retrospect but as i was not thinking in
terms of default date it was not.

suppose i want deadline warning days of -2d but do not want to
manually edit the ts or calculate the corresponding date.

if the deadline is somewhat in the future but displayed in the
deadline section of the agenda, and i try c-u c-u c-d, the following
intuitive ideas do not work: 2, -2, 2d, -2d, and as desperation,
trying the in retrospect nonsensical . first.

i wasn't fully cogitating that the prompt was date oriented but that
the default date is the ts date and can work.

i read the manual for my obsolete version of org (info "(org) The
date/time prompt") and my brain did not find it.  i was looking at the
examples for things like -- even though they were mentioned in the
text.

solution seems to be --2d.  whether modern org needs to include a few
examples with -- or not, idk.

idk if that helps anybody [it is going to take much time to upgrade].


                 reply	other threads:[~2022-05-05  0:02 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=CAJcAo8s8utQ_GbXmR4tyYx09gvSPM4YOu1PXM9QvtmzWPuvh+g@mail.gmail.com \
    --to=samologist@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).