unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Petteri Hintsanen <petterih@iki.fi>
To: help-gnu-emacs@gnu.org
Subject: Re: yes-or-no-p and dialogs
Date: Tue, 27 Dec 2022 20:23:26 +0200	[thread overview]
Message-ID: <x2mzgb8k8o1.fsf@iki.fi> (raw)
In-Reply-To: 83bkno22t5.fsf@gnu.org

Eli Zaretskii <eliz@gnu.org> writes:

> What is "an active (running) clock"?  Can you show simple instructions
> to reproduce this, for someone who doesn't use Org every hour of every
> day?

Org-mode can clock your working time, in the same way as timeclock
package does.  Starting a clock is similar to doing M-x timeclock-in.
Actually the same issue can be replicated simply by:

- M-x timeclock-in RET
- Enter any project name.
- Quit Emacs by clicking on "X" button.
- Dialog pops up asking "You're currently clocking time, clock out?"
- No way to cancel?


For completeness, here are instructions for org-mode:

- C-x C-f foo.org RET
- Enter a headline, for example

* foo

- Move point onto the headline and do C-c C-x C-i (org-clock-in) to
  start the clock.
- Save the buffer by C-x C-s
- Quit emacs by clicking on "X" button
- Dialog pops up asking "Clock out and save?"
- No way to cancel?


However, I found an acceptable workaround: set confirm-kill-emacs to
y-or-n-p.

Thanks,
Petteri




  parent reply	other threads:[~2022-12-27 18:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-27 16:06 yes-or-no-p and dialogs Petteri Hintsanen
2022-12-27 17:07 ` Eli Zaretskii
2022-12-27 17:37   ` Thibaut Verron
2022-12-27 18:13     ` Eli Zaretskii
2022-12-27 19:09       ` Thibaut Verron
2022-12-27 18:23   ` Petteri Hintsanen [this message]
2022-12-27 18:56     ` Eli Zaretskii
2022-12-27 19:38       ` Petteri Hintsanen
2022-12-27 17:28 ` Jean Louis

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.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=x2mzgb8k8o1.fsf@iki.fi \
    --to=petterih@iki.fi \
    --cc=help-gnu-emacs@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.
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).