aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2009-02-19 03:32:23 +0000
committerGlenn Morris2009-02-19 03:32:23 +0000
commit70369cd351a21527b350faceb1ad1ad6ff49f362 (patch)
tree50cb7ffe7cebaffb9e655e2ef5182ac227a2886e
parent3e3480fb8ac59907b1fd15116d07da7e554303bb (diff)
downloademacs-70369cd351a21527b350faceb1ad1ad6ff49f362.tar.gz
emacs-70369cd351a21527b350faceb1ad1ad6ff49f362.zip
(rmail-summary-by-topic): Doc fix.
Regexp-quote default argument taken from current subject. (rmail-new-summary-1): Error if empty summary. (Bug#2333)
-rw-r--r--lisp/ChangeLog18
-rw-r--r--lisp/mail/rmailsum.el17
2 files changed, 27 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 8dfb3cc1503..e2950b0ba5c 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,21 @@
12009-02-19 Glenn Morris <rgm@gnu.org>
2
3 * mail/rmailsum.el (rmail-summary-by-topic): Doc fix.
4 Regexp-quote default argument taken from current subject.
5 (rmail-new-summary-1): Error if empty summary. (Bug#2333)
6
7 * mail/rmail-spam-filter.el (rmail-get-new-mail-filter-spam):
8 Move here from rmail.el. Be more careful about error-handling.
9 Restore the feature of temporarily setting all old messages
10 undeleted before expunging (removed 2009-02-18).
11
12 * mail/rmail.el (rsf-beep, rsf-sleep-after-message, rmail-spam-filter):
13 Don't declare.
14 (rmail-get-new-mail-filter-spam): Declare. Move definition to
15 rmail-spam-filter.el.
16 (rmail-get-new-mail-1): Move the beep and sleep to
17 rmail-get-new-mail-filter-spam.
18
12009-02-18 Martin Rudalics <rudalics@gmx.at> 192009-02-18 Martin Rudalics <rudalics@gmx.at>
2 20
3 * cus-edit.el (custom-group-value-create): Insert some 21 * cus-edit.el (custom-group-value-create): Insert some
diff --git a/lisp/mail/rmailsum.el b/lisp/mail/rmailsum.el
index 58288210c2f..6821c1a3443 100644
--- a/lisp/mail/rmailsum.el
+++ b/lisp/mail/rmailsum.el
@@ -150,12 +150,13 @@ Emacs will list the header line in the RMAIL-summary."
150;;;###autoload 150;;;###autoload
151(defun rmail-summary-by-topic (subject &optional whole-message) 151(defun rmail-summary-by-topic (subject &optional whole-message)
152 "Display a summary of all messages with the given SUBJECT. 152 "Display a summary of all messages with the given SUBJECT.
153Normally checks the Subject field of headers; 153Normally checks just the Subject field of headers; but with prefix
154but if WHOLE-MESSAGE is non-nil (prefix arg given), 154argument WHOLE-MESSAGE is non-nil, looks in the whole message.
155 look in the whole message.
156SUBJECT is a string of regexps separated by commas." 155SUBJECT is a string of regexps separated by commas."
157 (interactive 156 (interactive
158 (let* ((subject (rmail-simplified-subject)) 157 ;; We quote the default subject, because if it contains regexp
158 ;; special characters (eg "?"), it can fail to match itself. (Bug#2333)
159 (let* ((subject (regexp-quote (rmail-simplified-subject)))
159 (prompt (concat "Topics to summarize by (regexp" 160 (prompt (concat "Topics to summarize by (regexp"
160 (if subject ", default current subject" "") 161 (if subject ", default current subject" "")
161 "): "))) 162 "): ")))
@@ -282,18 +283,18 @@ message."
282 rmail-new-summary-line-count))) 283 rmail-new-summary-line-count)))
283 (setq summary-msgs (nreverse summary-msgs))) 284 (setq summary-msgs (nreverse summary-msgs)))
284 (narrow-to-region old-min old-max))))) 285 (narrow-to-region old-min old-max)))))
285
286 ;; Temporarily, while summary buffer is unfinished, 286 ;; Temporarily, while summary buffer is unfinished,
287 ;; we "don't have" a summary. 287 ;; we "don't have" a summary.
288 ;; 288 (setq rmail-summary-buffer nil)
289 (unless summary-msgs
290 (kill-buffer sumbuf)
291 (error "Nothing to summarize"))
289 ;; I have not a clue what this clause is doing. If you read this 292 ;; I have not a clue what this clause is doing. If you read this
290 ;; chunk of code and have a clue, then please email that clue to 293 ;; chunk of code and have a clue, then please email that clue to
291 ;; pmr@pajato.com 294 ;; pmr@pajato.com
292 (setq rmail-summary-buffer nil)
293 (if rmail-enable-mime 295 (if rmail-enable-mime
294 (with-current-buffer rmail-buffer 296 (with-current-buffer rmail-buffer
295 (setq rmail-summary-buffer nil))) 297 (setq rmail-summary-buffer nil)))
296
297 (save-excursion 298 (save-excursion
298 (let ((rbuf (current-buffer)) 299 (let ((rbuf (current-buffer))
299 (total rmail-total-messages)) 300 (total rmail-total-messages))