emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Alexander Wingård" <alexander.wingard@gmail.com>
To: nicholas.dokos@hp.com
Cc: emacs-orgmode@gnu.org
Subject: Re: Time range between now and timestamp
Date: Thu, 15 Sep 2011 16:46:20 +0200	[thread overview]
Message-ID: <CAJDwVzJzLrS2Ty3EO4tExbkGgD9nsrNOSkPCUVJknRCGXqfjsw@mail.gmail.com> (raw)
In-Reply-To: <5509.1316097429@alphaville.dokosmarshall.org>

Let's say I have this:

<2011-09-15 Thu>--<2011-09-16 Fri>

and I put my cursor over this and press C-c C-y my minibuffer will
spit out 1 day.

I would like a command that does the same thing if i execute it over
just <2011-09-16 Fri>.

Sometimes I'm interested in how much time there is left to a specific
appointment.

Best Regards /Alexander

On Thu, Sep 15, 2011 at 4:37 PM, Nick Dokos <nicholas.dokos@hp.com> wrote:
> Alexander Wingård <alexander.wingard@gmail.com> wrote:
>
>> Hi!
>>
>> I really would want to have a command that given the cursor is over a
>> timestamp would output the time-range from the current time to that
>> timestamp.
>>
>
> Can you please provide an example? I can interpret this
> in a couple of different ways and I'm not sure what you
> want.
>
> Also, when you say "output", do you mean that the function
> should return e.g. a string representation of whatever it is
> you want? Or print the result in the minibuffer?
> Or insert it in the buffer you are editing? (and, if the last,
> where?)
>
> Nick
>

  reply	other threads:[~2011-09-15 14:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-14 22:38 Time range between now and timestamp Alexander Wingård
2011-09-15 14:37 ` Nick Dokos
2011-09-15 14:46   ` Alexander Wingård [this message]
2011-09-15 16:02     ` Nick Dokos
2011-09-15 16:33       ` Alexander Wingård

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=CAJDwVzJzLrS2Ty3EO4tExbkGgD9nsrNOSkPCUVJknRCGXqfjsw@mail.gmail.com \
    --to=alexander.wingard@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=nicholas.dokos@hp.com \
    /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).