Mercurial > emacs
comparison lisp/mail/rmailsum.el @ 49637:32bf542aaf1c
(rmail-summary-previous-msg): Add docstring.
(rmail-summary-line-count-flag, rmail-summary-previous-labeled-message)
(rmail-summary-next-labeled-message, rmail-summary-resend)
(rmail-summary-override-mail-send-and-exit): Doc fixes.
author | John Paul Wallington <jpw@pobox.com> |
---|---|
date | Thu, 06 Feb 2003 22:01:23 +0000 |
parents | 0d8b17d428b5 |
children | c94093d2e642 363419a0d27c |
comparison
equal
deleted
inserted
replaced
49636:63b470751ea7 | 49637:32bf542aaf1c |
---|---|
40 :type 'boolean | 40 :type 'boolean |
41 :group 'rmail-summary) | 41 :group 'rmail-summary) |
42 | 42 |
43 ;;;###autoload | 43 ;;;###autoload |
44 (defcustom rmail-summary-line-count-flag t | 44 (defcustom rmail-summary-line-count-flag t |
45 "*Non-nil if Rmail summary should show the number of lines in each message." | 45 "*Non-nil means Rmail summary should show the number of lines in each message." |
46 :type 'boolean | 46 :type 'boolean |
47 :group 'rmail-summary) | 47 :group 'rmail-summary) |
48 | 48 |
49 (defvar rmail-summary-font-lock-keywords | 49 (defvar rmail-summary-font-lock-keywords |
50 '(("^.....D.*" . font-lock-string-face) ; Deleted. | 50 '(("^.....D.*" . font-lock-string-face) ; Deleted. |
511 (while (and (> count 0) (setq non-del-msg-found | 511 (while (and (> count 0) (setq non-del-msg-found |
512 (or (funcall search "^....[^D]" nil t) | 512 (or (funcall search "^....[^D]" nil t) |
513 non-del-msg-found))) | 513 non-del-msg-found))) |
514 (setq count (1- count)))) | 514 (setq count (1- count)))) |
515 (beginning-of-line) | 515 (beginning-of-line) |
516 (display-buffer rmail-view-buffer) | 516 (display-buffer rmail-view-buffer)) |
517 ) | |
518 | 517 |
519 (defun rmail-summary-previous-msg (&optional number) | 518 (defun rmail-summary-previous-msg (&optional number) |
519 "Display previous non-deleted msg from rmail file. | |
520 With optional prefix argument NUMBER, moves backward this number of | |
521 non-deleted messages." | |
520 (interactive "p") | 522 (interactive "p") |
521 (rmail-summary-next-msg (- (if number number 1)))) | 523 (rmail-summary-next-msg (- (if number number 1)))) |
522 | 524 |
523 (defun rmail-summary-next-labeled-message (n labels) | 525 (defun rmail-summary-next-labeled-message (n labels) |
524 "Show next message with LABEL. Defaults to last labels used. | 526 "Show next message with LABELS. Defaults to last labels used. |
525 With prefix argument N moves forward N messages with these labels." | 527 With prefix argument N moves forward N messages with these labels." |
526 (interactive "p\nsMove to next msg with labels: ") | 528 (interactive "p\nsMove to next msg with labels: ") |
527 (let (msg) | 529 (let (msg) |
528 (save-excursion | 530 (save-excursion |
529 (set-buffer rmail-buffer) | 531 (set-buffer rmail-buffer) |
530 (rmail-next-labeled-message n labels) | 532 (rmail-next-labeled-message n labels) |
531 (setq msg rmail-current-message)) | 533 (setq msg rmail-current-message)) |
532 (rmail-summary-goto-msg msg))) | 534 (rmail-summary-goto-msg msg))) |
533 | 535 |
534 (defun rmail-summary-previous-labeled-message (n labels) | 536 (defun rmail-summary-previous-labeled-message (n labels) |
535 "Show previous message with LABEL. Defaults to last labels used. | 537 "Show previous message with LABELS. Defaults to last labels used. |
536 With prefix argument N moves backward N messages with these labels." | 538 With prefix argument N moves backward N messages with these labels." |
537 (interactive "p\nsMove to previous msg with labels: ") | 539 (interactive "p\nsMove to previous msg with labels: ") |
538 (let (msg) | 540 (let (msg) |
539 (save-excursion | 541 (save-excursion |
540 (set-buffer rmail-buffer) | 542 (set-buffer rmail-buffer) |
1403 (rmail-set-label label nil))) | 1405 (rmail-set-label label nil))) |
1404 | 1406 |
1405 ;;;; *** Rmail Summary Mailing Commands *** | 1407 ;;;; *** Rmail Summary Mailing Commands *** |
1406 | 1408 |
1407 (defun rmail-summary-override-mail-send-and-exit () | 1409 (defun rmail-summary-override-mail-send-and-exit () |
1408 "Replace bindings to 'mail-send-and-exit with 'rmail-summary-send-and-exit" | 1410 "Replace bindings to `mail-send-and-exit' with `rmail-summary-send-and-exit'." |
1409 (use-local-map (copy-keymap (current-local-map))) | 1411 (use-local-map (copy-keymap (current-local-map))) |
1410 (dolist (key (where-is-internal 'mail-send-and-exit)) | 1412 (dolist (key (where-is-internal 'mail-send-and-exit)) |
1411 (define-key (current-local-map) key 'rmail-summary-send-and-exit))) | 1413 (define-key (current-local-map) key 'rmail-summary-send-and-exit))) |
1412 | 1414 |
1413 (defun rmail-summary-mail () | 1415 (defun rmail-summary-mail () |
1473 (set-buffer rmail-buffer))) | 1475 (set-buffer rmail-buffer))) |
1474 (rmail-forward resend) | 1476 (rmail-forward resend) |
1475 (rmail-summary-override-mail-send-and-exit))) | 1477 (rmail-summary-override-mail-send-and-exit))) |
1476 | 1478 |
1477 (defun rmail-summary-resend () | 1479 (defun rmail-summary-resend () |
1478 "Resend current message using 'rmail-resend'." | 1480 "Resend current message using `rmail-resend'." |
1479 (interactive) | 1481 (interactive) |
1480 (save-excursion | 1482 (save-excursion |
1481 (let ((window (get-buffer-window rmail-buffer))) | 1483 (let ((window (get-buffer-window rmail-buffer))) |
1482 (if window | 1484 (if window |
1483 (select-window window) | 1485 (select-window window) |