diff options
| author | Yoni Rabkin <yoni@rabkins.net> | 2022-01-09 09:37:27 -0500 |
|---|---|---|
| committer | Yoni Rabkin <yoni@rabkins.net> | 2022-01-09 09:37:27 -0500 |
| commit | a7cc6b9159cf0fc54ca5606e15df0d126a7cc1b4 (patch) | |
| tree | 58e197dff2fd71f75840c19a88cba4c562ec5a28 | |
| parent | 4d01c3ae0293a8931f91009d1d900051f0444761 (diff) | |
* rt-liberation-gnus.el: reorg
| -rw-r--r-- | rt-liberation-gnus.el | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/rt-liberation-gnus.el b/rt-liberation-gnus.el index a812c5e..fdb6988 100644 --- a/rt-liberation-gnus.el +++ b/rt-liberation-gnus.el @@ -27,6 +27,16 @@ ;; wonderful rt-liberation manual located in the "doc/" directory of ;; the rt-liberation distribution. + +;;; Code +(require 'rt-liberation) +(require 'nnselect) +(require 'gnus-msg) + + +;;; ------------------------------------------------------------------ +;;; definitions +;;; ------------------------------------------------------------------ (defgroup rt-liber-gnus nil "*Gnus integration for rt-liberation." :prefix "rt-liber-gnus-" @@ -55,16 +65,14 @@ line of an email. For example: \\[company.com #\\([0-9].+?\\)\\]" :type 'string :group 'rt-liber-gnus) -(require 'rt-liberation) -(require 'nnir) -(require 'nnselect) -(require 'gnus-msg) - (defvar rt-liber-gnus-p nil "Non-nil when rt-liberation-gnus is composing a Gnus buffer.") +;;; ------------------------------------------------------------------ +;;; functions +;;; ------------------------------------------------------------------ (defun rt-liber-gnus-compose (addr ticket-alist options) "Create a Gnus *mail* buffer for the RT email interface. ADDR email address. @@ -140,6 +148,10 @@ OPTIONS association list of options. (setq text (buffer-substring (point-min) (point-max)))) text)))) + +;;; ------------------------------------------------------------------ +;;; interface +;;; ------------------------------------------------------------------ (defun rt-liber-gnus-compose-reply-to-requestor () (interactive) (rt-liber-gnus-with-ticket-buffer |
