[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/gnorb 7ffc885 043/449: Commenting out my re-implementat
From: |
Stefan Monnier |
Subject: |
[elpa] externals/gnorb 7ffc885 043/449: Commenting out my re-implementation of map-y-or-n-p |
Date: |
Fri, 27 Nov 2020 23:15:04 -0500 (EST) |
branch: externals/gnorb
commit 7ffc885ec58cbe8b4bf98eeff75e23255f8c31b1
Author: Eric Abrahamsen <eric@ericabrahamsen.net>
Commit: Eric Abrahamsen <eric@ericabrahamsen.net>
Commenting out my re-implementation of map-y-or-n-p
They've got a better built-in one...
---
lisp/gnorb-utils.el | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/lisp/gnorb-utils.el b/lisp/gnorb-utils.el
index 1f7d05f..f279832 100644
--- a/lisp/gnorb-utils.el
+++ b/lisp/gnorb-utils.el
@@ -54,5 +54,34 @@
(defvar gnorb-tmp-dir (make-temp-file "emacs-gnorb" t)
"Temporary directory where attachments etc are saved.")
+;;; see map-y-or-n-p, you idiot
+
+;; (defun gnorb-query-attach (attachments action)
+;; "Run through the attachments, make some queries, do the
+;; action."
+;; (let (continue-switch)
+;; (dolist (a attachments)
+;; (cond ((eq continue-switch 'none)
+;; nil)
+;; ((eq continue-switch 'all)
+;; (funcall action a))
+;; (t
+;; (let ((input-char
+;; (read-char-choice
+;; (format
+;; "Attach %s? (y, n, Y, N): "
+;; (file-name-nondirectory a))
+;; '(?y ?n ?Y ?N))))
+;; (cond
+;; ((eq input-char ?y)
+;; (funcall action a))
+;; ((equal input-char ?n)
+;; nil)
+;; ((equal input-char ?N)
+;; (setq continue-switch 'none))
+;; ((equal input-char ?Y)
+;; (funcall action a)
+;; (setq continue-switch 'all)))))))))
+
(provide 'gnorb-utils)
;;; gnorb-utils.el ends here
- [elpa] externals/gnorb 78f625b 052/449: Documentation and whitespace changes, (continued)
- [elpa] externals/gnorb 78f625b 052/449: Documentation and whitespace changes, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb ac392c0 053/449: Leave point in body of message replies, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb e05fafe 054/449: `gnorb-org-popup-agenda-popup-bbdb' keybinding, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 32a88b8 061/449: Wishlist item for outgoing messages, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 5ba5ce4 062/449: Rework gnorb-org-restore-after-send, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 8246cd4 064/449: Restore from mails more reliably, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 89b57f0 066/449: Whoops., Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 9f13881 067/449: First whack at gnorb-gnus-message-trigger-todo, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb e472348 073/449: New hook gnorb-org-after-message-setup-hook, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb a165584 041/449: Handle return from mail sending better, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 7ffc885 043/449: Commenting out my re-implementation of map-y-or-n-p,
Stefan Monnier <=
- [elpa] externals/gnorb 6152e85 059/449: Comments on editing messages, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb d786b81 063/449: Random comment edits and indenting changes., Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 77698aa 071/449: Split 'gnorb-org-email-subtree-parameters', Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 3a2cd3b 072/449: Improve scanning of headings for mail actions, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb bb21414 075/449: Provide more escapes for outgoing capture templates, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb cd1f289 076/449: Guess which Org TODO is related to this message, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 856da2b 077/449: Improve `gnorb-gnus-outgoing-make-todo', Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 5812648 078/449: FUNCTION RENAMING, I'M VERY SORRY, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 582c111 080/449: Let gnorb-gnus-check-outgoing-headers handle news, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 92354d0 082/449: Allow use of some org-mime properties, Stefan Monnier, 2020/11/27