emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Adam Spiers <orgmode@adamspiers.org>
To: org-mode mailing list <emacs-orgmode@gnu.org>
Subject: resolving idle time after accidentally cancelling prompt
Date: Fri, 18 Dec 2009 11:26:42 +0000	[thread overview]
Message-ID: <20091218112642.GG5666@atlantic.linksys.moosehall> (raw)

Hi there,

The `org-clock-idle-time' feature is really fantastic.  However I
occasionally miss the [(kK)eep (sS)ubtract (C)ancel] prompt in the
minibuffer and press another key which cancels it; then I have to run
org-resolve-clocks manually.  I can imagine a scenario where I
mistakenly thought that the window manager focus was in another
window, started typing, accidentally cancelled the prompt, and never
even noticed it was there in the first place - resulting in a
permanently dangling clock.  Would it be worth making this code
idiot-proof ...

    (if (or (null ch)
	    (not (memq ch '(?k ?K ?s ?S ?C))))
	(message "")

.. so that the only way to cancel the prompt is to press `C' ?  It
would also be nice if upon cancellation it did

  (message "Use `M-x org-resolve-clocks' to resolve dangling clocks at any time.")

Thanks,
Adam

                 reply	other threads:[~2009-12-18 11:52 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=20091218112642.GG5666@atlantic.linksys.moosehall \
    --to=orgmode@adamspiers.org \
    --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).