From: "Rudolf Adamkovič" <rudolf@adamkovic.org>
To: emacs-orgmode@gnu.org
Subject: Re: [PATCH] Improve the clock-out message
Date: Sun, 02 Feb 2025 09:27:13 +0100 [thread overview]
Message-ID: <m2h65cpx9a.fsf@adamkovic.org> (raw)
In-Reply-To: <20250202082137.19985-1-rudolf@adamkovic.org>
[-- Attachment #1: Type: text/plain, Size: 495 bytes --]
Rudolf Adamkovič <rudolf@adamkovic.org> writes:
> * lisp/org-clock.el (org-clock-kill-emacs-query): Reword the "Clock
> out and save?" message to "Clock out before saving?" to convey the
> important fact that no data will be lost when answered "no".
I forgot to prefix the commit title with the package name.
See the attached v2.
P.S. This message has been making me confused ever since I started using
Org, and it still makes me pause and think today, hence the patch.
Rudy
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-org-clock-Improve-the-clock-out-message.patch --]
[-- Type: text/x-patch, Size: 1088 bytes --]
From c8d7e985f728d38e7eff3c5eaa4db0f0171f90a0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rudolf=20Adamkovi=C4=8D?= <rudolf@adamkovic.org>
Date: Sun, 2 Feb 2025 09:14:49 +0100
Subject: [PATCH] org-clock: Improve the clock-out message
* lisp/org-clock.el (org-clock-kill-emacs-query): Reword the "Clock
out and save?" message to "Clock out before saving?" to convey the
important fact that no data will be lost when answered "no".
---
lisp/org-clock.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index 5fd0580d0..f10d7f339 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -3316,7 +3316,7 @@ The details of what will be saved are regulated by the variable
"Query user when killing Emacs.
This function is added to `kill-emacs-query-functions'."
(let ((buf (org-clocking-buffer)))
- (when (and buf (yes-or-no-p "Clock out and save? "))
+ (when (and buf (yes-or-no-p "Clock out before saving? "))
(with-current-buffer buf
(org-clock-out)
(save-buffer))))
--
2.39.5 (Apple Git-154)
[-- Attachment #3: Type: text/plain, Size: 159 bytes --]
--
"I would prefer an intelligent hell to a stupid paradise."
--- Blaise Pascal
Rudolf Adamkovič <rudolf@adamkovic.org> [he/him]
http://adamkovic.org
next prev parent reply other threads:[~2025-02-02 8:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-02 8:21 [PATCH] Improve the clock-out message Rudolf Adamkovič
2025-02-02 8:27 ` Rudolf Adamkovič [this message]
2025-02-02 10:34 ` Kévin Le Gouguec
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=m2h65cpx9a.fsf@adamkovic.org \
--to=rudolf@adamkovic.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).