diff options
| author | Richard M. Stallman | 2013-05-05 10:08:50 -0400 |
|---|---|---|
| committer | Richard M. Stallman | 2013-05-05 10:08:50 -0400 |
| commit | df8f35df4a8c2556a46ed66abf9b05a932f25a66 (patch) | |
| tree | c5a2087d9213b6a45aff50720ba88dece4184beb | |
| parent | 0dc04f4210879bf842f796f89bc4872433bcbd2f (diff) | |
| download | emacs-df8f35df4a8c2556a46ed66abf9b05a932f25a66.tar.gz emacs-df8f35df4a8c2556a46ed66abf9b05a932f25a66.zip | |
* mail/rmailsum.el (rmail-new-summary, rmail-new-summary-1):
Doc fixes, rename args.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/mail/rmailsum.el | 24 |
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 | |||
| 7 | 2013-05-05 Alan Mackenzie <acm@muc.de> | 10 | 2013-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. |
| 399 | DESC makes part of the mode line of the summary buffer. REDO is form ... | 399 | DESC makes part of the mode line of the summary buffer. |
| 400 | For each message, FUNC is applied to the message number and ARGS... | 400 | REDO is what to put in `rmail-summary-redo'; usually |
| 401 | and if the result is non-nil, that message is included. | 401 | its car is the function that called `rmail-new-summary' |
| 402 | nil for FUNCTION means all messages." | 402 | and its cdr is the arguments passed to that function. |
| 403 | |||
| 404 | For each message, applies FUNCTION to the message number and ARGS..., | ||
| 405 | and if the result is non-nil, it includes that message in the summary. | ||
| 406 | If 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. |
| 440 | DESCRIPTION is added to the mode line. | 444 | DESCRIPTION is added to the mode line. |
| 441 | 445 | ||
| 442 | Return the summary buffer by invoking FUNCTION on each message | 446 | Return the summary buffer by invoking FUNCTION on each message |
| 443 | passing the message number and ARGS... | 447 | passing the message number and ARGS. |
| 444 | 448 | ||
| 445 | REDO is a form ... | 449 | REDO is what to put in `rmail-summary-redo'. |
| 446 | 450 | ||
| 447 | The current buffer must be a Rmail buffer either containing a | 451 | The current buffer must be a Rmail buffer either containing a |
| 448 | collection of mbox formatted messages or displaying a single | 452 | collection 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 | ||