|
3 | 3 | ;; Author: Mats Lidell
|
4 | 4 | ;;
|
5 | 5 | ;; Orig-Date: 17-Dec-22 at 22:04:19
|
6 |
| -;; Last-Mod: 17-Dec-22 at 23:45:46 by Mats Lidell |
| 6 | +;; Last-Mod: 8-Jan-23 at 23:50:26 by Mats Lidell |
7 | 7 | ;;
|
8 | 8 | ;; Copyright (C) 2021-2022 Free Software Foundation, Inc.
|
9 | 9 | ;; See the "HY-COPY" file for license information.
|
|
38 | 38 | ;; File: hypb-gnus-email.el
|
39 | 39 | ;; Function: hypb-gnus-email-init
|
40 | 40 |
|
| 41 | +(require 'gnus-sum) |
| 42 | +(require 'gnus-art) |
| 43 | + |
41 | 44 | ;;;###autoload
|
42 | 45 | (defun Gnus-mail-init ()
|
43 | 46 | "Initialize Hyperbole support for Gnus mail reading."
|
|
56 | 59 | ;; Setup private abstract interface to mail reader-specific functions
|
57 | 60 | ;; used in "hmail.el".
|
58 | 61 | ;;
|
59 |
| - (defalias 'rmail:get-new 'gnus-group-get-new-news) |
60 |
| - (defalias 'rmail:msg-forward 'gnus-summary-mail-forward) |
61 |
| - (defalias 'rmail:summ-msg-to nil) ;FIXME - What is this for? |
62 |
| - (defalias 'rmail:summ-new nil) ;FIXME - What is this for? |
| 62 | + (defalias 'rmail:get-new #'gnus-group-get-new-news) |
| 63 | + (defalias 'rmail:msg-forward #'gnus-summary-mail-forward) |
| 64 | + (defalias 'rmail:summ-msg-to #'gnus-summary-show-article) |
| 65 | + (defalias 'rmail:summ-new #'gnus-summary-rescan-group) |
63 | 66 | (if (called-interactively-p 'interactive)
|
64 | 67 | (message "Hyperbole Gnus mail reader support initialized.")))
|
65 | 68 |
|
|
74 | 77 | "Open mail composer in other window with field TO set."
|
75 | 78 | (gnus-msg-mail to nil nil nil #'switch-to-buffer-other-window))
|
76 | 79 |
|
| 80 | +(defalias 'Gnus-Summ-goto #'gnus-summary-show-article) |
| 81 | +(defalias 'Gnus-msg-next #'gnus-article-goto-next-page) |
| 82 | + |
| 83 | +;; (defun Gnus-Summ-delete () |
| 84 | +;; "Delete an article. No undo for this one I'm afraid." |
| 85 | +;; (let ((gnus-novice-user t)) |
| 86 | +;; (gnus-summary-delete-article))) |
| 87 | + |
| 88 | +(defun Gnus-Summ-delete () |
| 89 | + "Mark article for process so it can be expunged later." |
| 90 | + (gnus-summary-mark-as-processable 1)) |
| 91 | + |
| 92 | +(defun Gnus-Summ-expunge () |
| 93 | + "Delete all articles with a process mark." |
| 94 | + (let ((gnus-novice-user t)) |
| 95 | + (gnus-summary-delete-article))) |
| 96 | + |
| 97 | +(defun Gnus-Summ-undelete-all () |
| 98 | + "Undelete all messages." |
| 99 | + (error "Sorry. Deleted messages can't be undeleted")) |
| 100 | + |
77 | 101 | (provide 'hgnus-mail.el)
|
78 | 102 | ;;; hgnus-mail.el ends here
|
0 commit comments