aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Schroeder2006-01-08 15:17:45 +0000
committerAlex Schroeder2006-01-08 15:17:45 +0000
commit7d89781816ec3a653d5a14c93b6703dcf5d270f1 (patch)
tree459c567b2a76cecc5bc390a0ae7f528261cfbef6
parentfc23c3c6a78a008de09c6eb423714901c625772a (diff)
downloademacs-7d89781816ec3a653d5a14c93b6703dcf5d270f1.tar.gz
emacs-7d89781816ec3a653d5a14c93b6703dcf5d270f1.zip
(rmail-summary-by-topic): Use
rmail-current-subject and rmail-current-subject-regexp. (rmail-summary-next-same-subject): Ditto.
-rw-r--r--lisp/mail/rmailsum.el26
1 files changed, 14 insertions, 12 deletions
diff --git a/lisp/mail/rmailsum.el b/lisp/mail/rmailsum.el
index 497f2f75301..e9ddb83baf3 100644
--- a/lisp/mail/rmailsum.el
+++ b/lisp/mail/rmailsum.el
@@ -132,7 +132,15 @@ Normally checks the Subject field of headers;
132but if WHOLE-MESSAGE is non-nil (prefix arg given), 132but if WHOLE-MESSAGE is non-nil (prefix arg given),
133 look in the whole message. 133 look in the whole message.
134SUBJECT is a string of regexps separated by commas." 134SUBJECT is a string of regexps separated by commas."
135 (interactive "sTopics to summarize by: \nP") 135 (interactive
136 (let* ((subject (with-current-buffer rmail-buffer
137 (rmail-current-subject)))
138 (subject-re (with-current-buffer rmail-buffer
139 (rmail-current-subject-regexp)))
140 (prompt (concat "Topics to summarize by (regexp"
141 (if subject ", default current subject" "")
142 "): ")))
143 (list (read-string prompt nil nil subject) current-prefix-arg)))
136 (rmail-new-summary 144 (rmail-new-summary
137 (concat "about " subject) 145 (concat "about " subject)
138 (list 'rmail-summary-by-topic subject whole-message) 146 (list 'rmail-summary-by-topic subject whole-message)
@@ -568,17 +576,11 @@ With prefix argument N moves backward N messages with these labels."
568With prefix argument N, do this N times. 576With prefix argument N, do this N times.
569If N is negative, go backwards." 577If N is negative, go backwards."
570 (interactive "p") 578 (interactive "p")
571 (let (subject search-regexp i found 579 (let ((forward (> n 0))
572 (forward (> n 0))) 580 search-regexp i found)
573 (save-excursion 581 (with-current-buffer rmail-buffer
574 (set-buffer rmail-buffer) 582 (setq search-regexp (rmail-current-subject-regexp)
575 (setq subject (mail-fetch-field "Subject")) 583 i rmail-current-message))
576 (setq i rmail-current-message))
577 (if (string-match "Re:[ \t]*" subject)
578 (setq subject (substring subject (match-end 0))))
579 (setq search-regexp (concat "^Subject: *\\(Re: *\\)?"
580 (regexp-quote subject)
581 "\n"))
582 (save-excursion 584 (save-excursion
583 (while (and (/= n 0) 585 (while (and (/= n 0)
584 (if forward 586 (if forward