aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2013-05-05 10:08:50 -0400
committerRichard M. Stallman2013-05-05 10:08:50 -0400
commitdf8f35df4a8c2556a46ed66abf9b05a932f25a66 (patch)
treec5a2087d9213b6a45aff50720ba88dece4184beb
parent0dc04f4210879bf842f796f89bc4872433bcbd2f (diff)
downloademacs-df8f35df4a8c2556a46ed66abf9b05a932f25a66.tar.gz
emacs-df8f35df4a8c2556a46ed66abf9b05a932f25a66.zip
* mail/rmailsum.el (rmail-new-summary, rmail-new-summary-1):
Doc fixes, rename args.
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/mail/rmailsum.el24
2 files changed, 17 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 268a716fd09..4ff2c7951de 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -4,6 +4,9 @@
4 Detect empty summary and don't change selected message. 4 Detect empty summary and don't change selected message.
5 (rmail-summary-goto-msg): Likewise. 5 (rmail-summary-goto-msg): Likewise.
6 6
7 * mail/rmailsum.el (rmail-new-summary, rmail-new-summary-1):
8 Doc fixes, rename args.
9
72013-05-05 Alan Mackenzie <acm@muc.de> 102013-05-05 Alan Mackenzie <acm@muc.de>
8 11
9 * progmodes/cc-defs.el (c-version): Increment to 5.32.5. 12 * progmodes/cc-defs.el (c-version): Increment to 5.32.5.
diff --git a/lisp/mail/rmailsum.el b/lisp/mail/rmailsum.el
index ccd76cd6ba3..8dd4120d179 100644
--- a/lisp/mail/rmailsum.el
+++ b/lisp/mail/rmailsum.el
@@ -394,12 +394,16 @@ SENDERS is a string of regexps separated by commas."
394 394
395(defvar rmail-new-summary-line-count) 395(defvar rmail-new-summary-line-count)
396 396
397(defun rmail-new-summary (desc redo func &rest args) 397(defun rmail-new-summary (desc redo function &rest args)
398 "Create a summary of selected messages. 398 "Create a summary of selected messages.
399DESC makes part of the mode line of the summary buffer. REDO is form ... 399DESC makes part of the mode line of the summary buffer.
400For each message, FUNC is applied to the message number and ARGS... 400REDO is what to put in `rmail-summary-redo'; usually
401and if the result is non-nil, that message is included. 401its car is the function that called `rmail-new-summary'
402nil for FUNCTION means all messages." 402and its cdr is the arguments passed to that function.
403
404For each message, applies FUNCTION to the message number and ARGS...,
405and if the result is non-nil, it includes that message in the summary.
406If FUNCTION is nil, includes all messages."
403 (message "Computing summary lines...") 407 (message "Computing summary lines...")
404 (unless rmail-buffer 408 (unless rmail-buffer
405 (error "No RMAIL buffer found")) 409 (error "No RMAIL buffer found"))
@@ -407,7 +411,7 @@ nil for FUNCTION means all messages."
407 (if (eq major-mode 'rmail-summary-mode) 411 (if (eq major-mode 'rmail-summary-mode)
408 (setq was-in-summary t)) 412 (setq was-in-summary t))
409 (with-current-buffer rmail-buffer 413 (with-current-buffer rmail-buffer
410 (setq rmail-summary-buffer (rmail-new-summary-1 desc redo func args) 414 (setq rmail-summary-buffer (rmail-new-summary-1 desc redo function args)
411 ;; r-s-b is buffer-local. 415 ;; r-s-b is buffer-local.
412 sumbuf rmail-summary-buffer 416 sumbuf rmail-summary-buffer
413 mesg rmail-current-message)) 417 mesg rmail-current-message))
@@ -435,14 +439,14 @@ nil for FUNCTION means all messages."
435 (rmail-summary-construct-io-menu) 439 (rmail-summary-construct-io-menu)
436 (message "Computing summary lines...done"))) 440 (message "Computing summary lines...done")))
437 441
438(defun rmail-new-summary-1 (description form function args) 442(defun rmail-new-summary-1 (description redo function args)
439 "Filter messages to obtain summary lines. 443 "Filter messages to obtain summary lines.
440DESCRIPTION is added to the mode line. 444DESCRIPTION is added to the mode line.
441 445
442Return the summary buffer by invoking FUNCTION on each message 446Return the summary buffer by invoking FUNCTION on each message
443passing the message number and ARGS... 447passing the message number and ARGS.
444 448
445REDO is a form ... 449REDO is what to put in `rmail-summary-redo'.
446 450
447The current buffer must be a Rmail buffer either containing a 451The current buffer must be a Rmail buffer either containing a
448collection of mbox formatted messages or displaying a single 452collection of mbox formatted messages or displaying a single
@@ -511,7 +515,7 @@ message."
511 (make-local-variable 'minor-mode-alist) 515 (make-local-variable 'minor-mode-alist)
512 (setq minor-mode-alist (list (list t (concat ": " description)))) 516 (setq minor-mode-alist (list (list t (concat ": " description))))
513 (setq rmail-buffer rbuf 517 (setq rmail-buffer rbuf
514 rmail-summary-redo form 518 rmail-summary-redo redo
515 rmail-total-messages total))) 519 rmail-total-messages total)))
516 sumbuf)) 520 sumbuf))
517 521