[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/hiddenquote 5324aeb8c8 11/15: Make the prompt in hidden
From: |
ELPA Syncer |
Subject: |
[elpa] externals/hiddenquote 5324aeb8c8 11/15: Make the prompt in hiddenquote-quit optional |
Date: |
Wed, 26 Oct 2022 11:57:52 -0400 (EDT) |
branch: externals/hiddenquote
commit 5324aeb8c824da7a71778f70fffe00b4b25f8af5
Author: Mauro Aranda <maurooaranda@gmail.com>
Commit: Mauro Aranda <maurooaranda@gmail.com>
Make the prompt in hiddenquote-quit optional
* hiddenquote.el (hiddenquote-quit): Make a prefix argument skip the
prompt.
---
hiddenquote.el | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/hiddenquote.el b/hiddenquote.el
index 142dafd4cb..e9838d2cdc 100644
--- a/hiddenquote.el
+++ b/hiddenquote.el
@@ -1533,10 +1533,13 @@ Character cell bindings:
(setq i (1+ i))))
(hiddenquote-timer-stop-timer))))
-(defun hiddenquote-quit ()
- "Prompt the user and kill the buffer if the answer is \"yes\"."
- (interactive)
- (when (yes-or-no-p "Really quit playing Hiddenquote? ")
+(defun hiddenquote-quit (&optional noprompt)
+ "Stop playing hiddenquote, without saving the progress.
+
+Prompts the user and kills the buffer if the answer is \"yes\".
+With a prefix argument NOPROMPT non-nil, doesn't prompt."
+ (interactive "P")
+ (when (or noprompt (yes-or-no-p "Really quit playing Hiddenquote? "))
(hiddenquote-timer-stop-timer)
(let ((name (buffer-name)))
(dolist (buff (mapcar (lambda (suffix)
- [elpa] externals/hiddenquote updated (422e45ad71 -> 0a49fca229), ELPA Syncer, 2022/10/26
- [elpa] externals/hiddenquote 934208f22b 05/15: Improve navigation commands in the syllables buffer, ELPA Syncer, 2022/10/26
- [elpa] externals/hiddenquote 7c0c5f07b2 07/15: ; Comment fixes, ELPA Syncer, 2022/10/26
- [elpa] externals/hiddenquote eb132d8bac 02/15: Publish new puzzle, ELPA Syncer, 2022/10/26
- [elpa] externals/hiddenquote a80dfde438 03/15: ; Minor fixes to data in the ipuz files, ELPA Syncer, 2022/10/26
- [elpa] externals/hiddenquote e77836f974 06/15: ; Docstring fix, ELPA Syncer, 2022/10/26
- [elpa] externals/hiddenquote 47ae1572d0 04/15: Add command to toggle hiddenquote-skip-used-syllables, ELPA Syncer, 2022/10/26
- [elpa] externals/hiddenquote 5324aeb8c8 11/15: Make the prompt in hiddenquote-quit optional,
ELPA Syncer <=
- [elpa] externals/hiddenquote 6f555f3699 14/15: Add command to complete the quote, ELPA Syncer, 2022/10/26
- [elpa] externals/hiddenquote 0a49fca229 15/15: Add new handy hook, ELPA Syncer, 2022/10/26
- [elpa] externals/hiddenquote a1f04745c6 01/15: ; Docstring fixes, ELPA Syncer, 2022/10/26
- [elpa] externals/hiddenquote 6f150e2745 10/15: ; Update Makefile copyright, ELPA Syncer, 2022/10/26
- [elpa] externals/hiddenquote 856438ee29 08/15: Bump version, ELPA Syncer, 2022/10/26
- [elpa] externals/hiddenquote f8f6b1e020 12/15: Make the prompt in hiddenquote-give-up optional, ELPA Syncer, 2022/10/26
- [elpa] externals/hiddenquote 4f719862a1 13/15: ; Fix some docstrings, ELPA Syncer, 2022/10/26
- [elpa] externals/hiddenquote b9337a7de2 09/15: ; Update copyright, ELPA Syncer, 2022/10/26