Mercurial > emacs
comparison lisp/mh-e/mh-e.el @ 68013:bbc0e52abce5
* mh-alias.el (mh-alias-add-alias): Grand message and error string
unification. Use single sentence if possible by using semicolon. Don't
end message with punctuation. Don't need format with message. Quote
messages as in docstrings: use `' around symbols, \" for option
choices. Don't use quotes around %s.
* mh-comp.el (mh-complete-word): Ditto.
* mh-customize.el (mh-adaptive-cmd-note-flag-check)
(mh-scan-format-file-check): Ditto.
* mh-e.el (mh-refile-or-write-again, mh-previous-unread-msg)
(mh-delete-a-msg, mh-refile-a-msg, mh-next-unread-msg)
(mh-msg-num-width-to-column): Ditto.
* mh-identity.el (mh-identity-field-handler): Ditto.
* mh-index.el (mh-mairix-execute-search)
(mh-swish-execute-search, mh-swish++-execute-search)
(mh-namazu-execute-search): Ditto.
* mh-init.el (mh-variant-set): Ditto.
* mh-mime.el (mh-mh-to-mime-undo, mh-mml-forward-message)
(mh-secure-message, mh-mime-display): Ditto.
* mh-pick.el (mh-search-folder, mh-pick-construct-regexp): Ditto.
* mh-seq.el (mh-narrow-to-seq, mh-put-msg-in-seq, mh-read-seq)
(mh-read-range, mh-thread-container-subject): Ditto.
* mh-utils.el (mh-x-image-scale-and-display)
(mh-prompt-for-folder, mh-handle-process-error)
(mh-list-to-string-1): Ditto.
author | Bill Wohler <wohler@newt.com> |
---|---|
date | Wed, 04 Jan 2006 02:08:12 +0000 |
parents | 7882fc7df359 |
children | 82d5232a099c |
comparison
equal
deleted
inserted
replaced
68012:256cc87e0619 | 68013:bbc0e52abce5 |
---|---|
902 (interactive (list (mh-interactive-range "Redo") t)) | 902 (interactive (list (mh-interactive-range "Redo") t)) |
903 (if (null mh-last-destination) | 903 (if (null mh-last-destination) |
904 (error "No previous refile or write")) | 904 (error "No previous refile or write")) |
905 (cond ((eq (car mh-last-destination) 'refile) | 905 (cond ((eq (car mh-last-destination) 'refile) |
906 (mh-refile-msg range (cdr mh-last-destination)) | 906 (mh-refile-msg range (cdr mh-last-destination)) |
907 (message "%s" (format "Destination folder: %s" | 907 (message "Destination folder: %s" (cdr mh-last-destination))) |
908 (cdr mh-last-destination)))) | |
909 (t | 908 (t |
910 (mh-iterate-on-range msg range | 909 (mh-iterate-on-range msg range |
911 (apply 'mh-write-msg-to-file msg (cdr mh-last-destination))) | 910 (apply 'mh-write-msg-to-file msg (cdr mh-last-destination))) |
912 (mh-next-msg interactive-flag)))) | 911 (mh-next-msg interactive-flag)))) |
913 | 912 |
1003 | 1002 |
1004 This command can be given a prefix argument COUNT to specify how | 1003 This command can be given a prefix argument COUNT to specify how |
1005 many unread messages to skip." | 1004 many unread messages to skip." |
1006 (interactive "p") | 1005 (interactive "p") |
1007 (unless (> count 0) | 1006 (unless (> count 0) |
1008 (error "The function mh-previous-unread-msg expects positive argument")) | 1007 (error "The function `mh-previous-unread-msg' expects positive argument")) |
1009 (setq count (1- count)) | 1008 (setq count (1- count)) |
1010 (let ((unread-sequence (cdr (assoc mh-unseen-seq mh-seq-list))) | 1009 (let ((unread-sequence (cdr (assoc mh-unseen-seq mh-seq-list))) |
1011 (cur-msg (mh-get-msg-num nil))) | 1010 (cur-msg (mh-get-msg-num nil))) |
1012 (cond ((and (not cur-msg) (not (bobp)) | 1011 (cond ((and (not cur-msg) (not (bobp)) |
1013 ;; If we are at the end of the buffer back up one line and go | 1012 ;; If we are at the end of the buffer back up one line and go |
1525 (if (numberp message) | 1524 (if (numberp message) |
1526 (mh-goto-msg message nil t) | 1525 (mh-goto-msg message nil t) |
1527 (beginning-of-line) | 1526 (beginning-of-line) |
1528 (setq message (mh-get-msg-num t))) | 1527 (setq message (mh-get-msg-num t))) |
1529 (if (looking-at mh-scan-refiled-msg-regexp) | 1528 (if (looking-at mh-scan-refiled-msg-regexp) |
1530 (error "Message %d is refiled. Undo refile before deleting" message)) | 1529 (error "Message %d is refiled; undo refile before deleting" message)) |
1531 (if (looking-at mh-scan-deleted-msg-regexp) | 1530 (if (looking-at mh-scan-deleted-msg-regexp) |
1532 nil | 1531 nil |
1533 (mh-set-folder-modified-p t) | 1532 (mh-set-folder-modified-p t) |
1534 (setq mh-delete-list (cons message mh-delete-list)) | 1533 (setq mh-delete-list (cons message mh-delete-list)) |
1535 (mh-notate nil mh-note-deleted mh-cmd-note) | 1534 (mh-notate nil mh-note-deleted mh-cmd-note) |
1545 (if (numberp message) | 1544 (if (numberp message) |
1546 (mh-goto-msg message nil t) | 1545 (mh-goto-msg message nil t) |
1547 (beginning-of-line) | 1546 (beginning-of-line) |
1548 (setq message (mh-get-msg-num t))) | 1547 (setq message (mh-get-msg-num t))) |
1549 (cond ((looking-at mh-scan-deleted-msg-regexp) | 1548 (cond ((looking-at mh-scan-deleted-msg-regexp) |
1550 (error "Message %d is deleted. Undo delete before moving" message)) | 1549 (error "Message %d is deleted; undo delete before moving" message)) |
1551 ((looking-at mh-scan-refiled-msg-regexp) | 1550 ((looking-at mh-scan-refiled-msg-regexp) |
1552 (if (y-or-n-p | 1551 (if (y-or-n-p |
1553 (format "Message %d already refiled. Copy to %s as well? " | 1552 (format "Message %d already refiled; copy to %s as well? " |
1554 message folder)) | 1553 message folder)) |
1555 (mh-exec-cmd "refile" (mh-get-msg-num t) "-link" | 1554 (mh-exec-cmd "refile" (mh-get-msg-num t) "-link" |
1556 "-src" mh-current-folder | 1555 "-src" mh-current-folder |
1557 (symbol-name folder)) | 1556 (symbol-name folder)) |
1558 (message "Message not copied"))) | 1557 (message "Message not copied"))) |
1579 | 1578 |
1580 This command can be given a prefix argument COUNT to specify how | 1579 This command can be given a prefix argument COUNT to specify how |
1581 many unread messages to skip." | 1580 many unread messages to skip." |
1582 (interactive "p") | 1581 (interactive "p") |
1583 (unless (> count 0) | 1582 (unless (> count 0) |
1584 (error "The function mh-next-unread-msg expects positive argument")) | 1583 (error "The function `mh-next-unread-msg' expects positive argument")) |
1585 (setq count (1- count)) | 1584 (setq count (1- count)) |
1586 (let ((unread-sequence (reverse (cdr (assoc mh-unseen-seq mh-seq-list)))) | 1585 (let ((unread-sequence (reverse (cdr (assoc mh-unseen-seq mh-seq-list)))) |
1587 (cur-msg (mh-get-msg-num nil))) | 1586 (cur-msg (mh-get-msg-num nil))) |
1588 (cond ((and (not cur-msg) (not (bobp)) | 1587 (cond ((and (not cur-msg) (not (bobp)) |
1589 ;; If we are at the end of the buffer back up one line and go | 1588 ;; If we are at the end of the buffer back up one line and go |
1987 empty (to provide room for the cursor), the following WIDTH | 1986 empty (to provide room for the cursor), the following WIDTH |
1988 columns contain the message number, and the column for notations | 1987 columns contain the message number, and the column for notations |
1989 comes after that." | 1988 comes after that." |
1990 (if (eq mh-scan-format-file t) | 1989 (if (eq mh-scan-format-file t) |
1991 (max (1+ width) 2) | 1990 (max (1+ width) 2) |
1992 (error "%s %s" "Can't call mh-msg-num-width-to-column" | 1991 (error "%s %s" "Can't call `mh-msg-num-width-to-column' when" |
1993 "when mh-scan-format-file is not t"))) | 1992 "`mh-scan-format-file' is not set to \"Use MH-E scan Format\""))) |
1994 | 1993 |
1995 (defun mh-set-cmd-note (column) | 1994 (defun mh-set-cmd-note (column) |
1996 "Set `mh-cmd-note' to COLUMN. | 1995 "Set `mh-cmd-note' to COLUMN. |
1997 Note that columns in Emacs start with 0." | 1996 Note that columns in Emacs start with 0." |
1998 (setq mh-cmd-note column)) | 1997 (setq mh-cmd-note column)) |