comparison lisp/mail/rmailsort.el @ 101918:97184480e9dc

Just require rmail.
author Glenn Morris <rgm@gnu.org>
date Tue, 10 Feb 2009 03:36:00 +0000
parents 9e2e923d8eb3
children 1bb96ade4801
comparison
equal deleted inserted replaced
101917:4b1bce6e82a6 101918:97184480e9dc
24 24
25 ;;; Commentary: 25 ;;; Commentary:
26 26
27 ;;; Code: 27 ;;; Code:
28 28
29 (eval-when-compile 29 (require 'rmail)
30 (require 'mail-utils)
31 (require 'sort)
32 (require 'rmail))
33
34 (autoload 'timezone-make-date-sortable "timezone")
35
36 (declare-function rmail-update-summary "rmailsum" (&rest ignore))
37 30
38 ;; Sorting messages in Rmail buffer 31 ;; Sorting messages in Rmail buffer
39 32
40 ;;;###autoload 33 ;;;###autoload
41 (defun rmail-sort-by-date (reverse) 34 (defun rmail-sort-by-date (reverse)
151 msg (aref labelvec n)))) 144 msg (aref labelvec n))))
152 (setq n (1+ n))) 145 (setq n (1+ n)))
153 n)))))) 146 n))))))
154 147
155 ;; Basic functions 148 ;; Basic functions
149 (declare-function rmail-update-summary "rmailsum" (&rest ignore))
156 150
157 (defun rmail-sort-messages (reverse keyfun) 151 (defun rmail-sort-messages (reverse keyfun)
158 "Sort messages of current Rmail file. 152 "Sort messages of current Rmail file.
159 If 1st argument REVERSE is non-nil, sort them in reverse order. 153 If 1st argument REVERSE is non-nil, sort them in reverse order.
160 2nd argument KEYFUN is called with a message number, and should return a key." 154 2nd argument KEYFUN is called with a message number, and should return a key."
226 (if return-to-point 220 (if return-to-point
227 (goto-char return-to-point)) 221 (goto-char return-to-point))
228 (if (rmail-summary-exists) 222 (if (rmail-summary-exists)
229 (rmail-select-summary (rmail-update-summary))))))) 223 (rmail-select-summary (rmail-update-summary)))))))
230 224
225 (autoload 'timezone-make-date-sortable "timezone")
226
231 (defun rmail-make-date-sortable (date) 227 (defun rmail-make-date-sortable (date)
232 "Make DATE sortable using the function string-lessp." 228 "Make DATE sortable using the function string-lessp."
233 ;; Assume the default time zone is GMT. 229 ;; Assume the default time zone is GMT.
234 (timezone-make-date-sortable date "GMT" "GMT")) 230 (timezone-make-date-sortable date "GMT" "GMT"))
235 231