diff options
| author | Bill Wohler | 2006-01-04 02:08:12 +0000 |
|---|---|---|
| committer | Bill Wohler | 2006-01-04 02:08:12 +0000 |
| commit | f9c53c973d9f182683fee67a5ce6ca8bc7bd51a7 (patch) | |
| tree | 409ddb5ec337600471777514241015b50e320ca0 | |
| parent | 078cb3146bd2c659c3f2b9b55f401b73da77e6dc (diff) | |
| download | emacs-f9c53c973d9f182683fee67a5ce6ca8bc7bd51a7.tar.gz emacs-f9c53c973d9f182683fee67a5ce6ca8bc7bd51a7.zip | |
* 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.
| -rw-r--r-- | lisp/mh-e/ChangeLog | 35 | ||||
| -rw-r--r-- | lisp/mh-e/mh-alias.el | 2 | ||||
| -rw-r--r-- | lisp/mh-e/mh-comp.el | 2 | ||||
| -rw-r--r-- | lisp/mh-e/mh-customize.el | 4 | ||||
| -rw-r--r-- | lisp/mh-e/mh-e.el | 17 | ||||
| -rw-r--r-- | lisp/mh-e/mh-identity.el | 4 | ||||
| -rw-r--r-- | lisp/mh-e/mh-index.el | 8 | ||||
| -rw-r--r-- | lisp/mh-e/mh-init.el | 6 | ||||
| -rw-r--r-- | lisp/mh-e/mh-mime.el | 10 | ||||
| -rw-r--r-- | lisp/mh-e/mh-pick.el | 4 | ||||
| -rw-r--r-- | lisp/mh-e/mh-seq.el | 10 | ||||
| -rw-r--r-- | lisp/mh-e/mh-utils.el | 8 |
12 files changed, 72 insertions, 38 deletions
diff --git a/lisp/mh-e/ChangeLog b/lisp/mh-e/ChangeLog index e0da0950715..b679c78479c 100644 --- a/lisp/mh-e/ChangeLog +++ b/lisp/mh-e/ChangeLog | |||
| @@ -1,5 +1,40 @@ | |||
| 1 | 2006-01-03 Bill Wohler <wohler@newt.com> | 1 | 2006-01-03 Bill Wohler <wohler@newt.com> |
| 2 | 2 | ||
| 3 | * mh-alias.el (mh-alias-add-alias): Grand message and error string | ||
| 4 | unification. Use single sentence if possible by using semicolon. | ||
| 5 | Don't end message with punctuation. Don't need format with | ||
| 6 | message. Quote messages as in docstrings: use `' around symbols, | ||
| 7 | \" for option choices. Don't use quotes around %s. | ||
| 8 | |||
| 9 | * mh-comp.el (mh-complete-word): Ditto. | ||
| 10 | |||
| 11 | * mh-customize.el (mh-adaptive-cmd-note-flag-check) | ||
| 12 | (mh-scan-format-file-check): Ditto. | ||
| 13 | |||
| 14 | * mh-e.el (mh-refile-or-write-again, mh-previous-unread-msg) | ||
| 15 | (mh-delete-a-msg, mh-refile-a-msg, mh-next-unread-msg) | ||
| 16 | (mh-msg-num-width-to-column): Ditto. | ||
| 17 | |||
| 18 | * mh-identity.el (mh-identity-field-handler): Ditto. | ||
| 19 | |||
| 20 | * mh-index.el (mh-mairix-execute-search) | ||
| 21 | (mh-swish-execute-search, mh-swish++-execute-search) | ||
| 22 | (mh-namazu-execute-search): Ditto. | ||
| 23 | |||
| 24 | * mh-init.el (mh-variant-set): Ditto. | ||
| 25 | |||
| 26 | * mh-mime.el (mh-mh-to-mime-undo, mh-mml-forward-message) | ||
| 27 | (mh-secure-message, mh-mime-display): Ditto. | ||
| 28 | |||
| 29 | * mh-pick.el (mh-search-folder, mh-pick-construct-regexp): Ditto. | ||
| 30 | |||
| 31 | * mh-seq.el (mh-narrow-to-seq, mh-put-msg-in-seq, mh-read-seq) | ||
| 32 | (mh-read-range, mh-thread-container-subject): Ditto. | ||
| 33 | |||
| 34 | * mh-utils.el (mh-x-image-scale-and-display) | ||
| 35 | (mh-prompt-for-folder, mh-handle-process-error) | ||
| 36 | (mh-list-to-string-1): Ditto. | ||
| 37 | |||
| 3 | * mh-comp.el (mh-reply): Use standard default notation in | 38 | * mh-comp.el (mh-reply): Use standard default notation in |
| 4 | prompts (closes SF #1275933). | 39 | prompts (closes SF #1275933). |
| 5 | 40 | ||
diff --git a/lisp/mh-e/mh-alias.el b/lisp/mh-e/mh-alias.el index 7349f556224..a1bafb3ec51 100644 --- a/lisp/mh-e/mh-alias.el +++ b/lisp/mh-e/mh-alias.el | |||
| @@ -571,7 +571,7 @@ filing messages." | |||
| 571 | (cond | 571 | (cond |
| 572 | ((and (equal alias address-alias) | 572 | ((and (equal alias address-alias) |
| 573 | (equal address alias-address)) | 573 | (equal address alias-address)) |
| 574 | (message "Already defined as: %s" alias-address)) | 574 | (message "Already defined as %s" alias-address)) |
| 575 | (address-alias | 575 | (address-alias |
| 576 | (if (y-or-n-p (format "Address has alias %s; set new one? " | 576 | (if (y-or-n-p (format "Address has alias %s; set new one? " |
| 577 | address-alias)) | 577 | address-alias)) |
diff --git a/lisp/mh-e/mh-comp.el b/lisp/mh-e/mh-comp.el index ddab3725058..9a4c8733959 100644 --- a/lisp/mh-e/mh-comp.el +++ b/lisp/mh-e/mh-comp.el | |||
| @@ -1818,7 +1818,7 @@ Any match found replaces the text from BEGIN to END." | |||
| 1818 | ((null completion) | 1818 | ((null completion) |
| 1819 | (ignore-errors | 1819 | (ignore-errors |
| 1820 | (kill-buffer completions-buffer)) | 1820 | (kill-buffer completions-buffer)) |
| 1821 | (message "No completion for `%s'" word)) | 1821 | (message "No completion for %s" word)) |
| 1822 | ((stringp completion) | 1822 | ((stringp completion) |
| 1823 | (if (equal word completion) | 1823 | (if (equal word completion) |
| 1824 | (with-output-to-temp-buffer completions-buffer | 1824 | (with-output-to-temp-buffer completions-buffer |
diff --git a/lisp/mh-e/mh-customize.el b/lisp/mh-e/mh-customize.el index f4cde0b186f..01b03db63f9 100644 --- a/lisp/mh-e/mh-customize.el +++ b/lisp/mh-e/mh-customize.el | |||
| @@ -1041,7 +1041,7 @@ Throw an error if user tries to turn on | |||
| 1041 | Otherwise, set SYMBOL to VALUE." | 1041 | Otherwise, set SYMBOL to VALUE." |
| 1042 | (if (and value | 1042 | (if (and value |
| 1043 | (not (eq mh-scan-format-file t))) | 1043 | (not (eq mh-scan-format-file t))) |
| 1044 | (error "%s %s" "Can't turn on unless mh-scan-format-file" | 1044 | (error "%s %s" "Can't turn on unless `mh-scan-format-file'" |
| 1045 | "is set to \"Use MH-E scan Format\"") | 1045 | "is set to \"Use MH-E scan Format\"") |
| 1046 | (set-default symbol value))) | 1046 | (set-default symbol value))) |
| 1047 | 1047 | ||
| @@ -1052,7 +1052,7 @@ anything but t when `mh-adaptive-cmd-note-flag' is on. Otherwise, | |||
| 1052 | set SYMBOL to VALUE." | 1052 | set SYMBOL to VALUE." |
| 1053 | (if (and (not (eq value t)) | 1053 | (if (and (not (eq value t)) |
| 1054 | (eq mh-adaptive-cmd-note-flag t)) | 1054 | (eq mh-adaptive-cmd-note-flag t)) |
| 1055 | (error "%s %s" "You must turn off mh-adaptive-cmd-note-flag" | 1055 | (error "%s %s" "You must turn off `mh-adaptive-cmd-note-flag'" |
| 1056 | "unless you use \"Use MH-E scan Format\"") | 1056 | "unless you use \"Use MH-E scan Format\"") |
| 1057 | (set-default symbol value))) | 1057 | (set-default symbol value))) |
| 1058 | 1058 | ||
diff --git a/lisp/mh-e/mh-e.el b/lisp/mh-e/mh-e.el index 19024ffc6f6..f1712f7b92c 100644 --- a/lisp/mh-e/mh-e.el +++ b/lisp/mh-e/mh-e.el | |||
| @@ -904,8 +904,7 @@ called interactively." | |||
| 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))) |
| @@ -1005,7 +1004,7 @@ 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))) |
| @@ -1527,7 +1526,7 @@ once when he kept statistics on his mail usage." | |||
| 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) |
| @@ -1547,10 +1546,10 @@ be refiled." | |||
| 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 |
| @@ -1581,7 +1580,7 @@ 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))) |
| @@ -1989,8 +1988,8 @@ 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. |
diff --git a/lisp/mh-e/mh-identity.el b/lisp/mh-e/mh-identity.el index 52bb8f903fe..1af2563eeda 100644 --- a/lisp/mh-e/mh-identity.el +++ b/lisp/mh-e/mh-identity.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; mh-identity.el --- Multiple identify support for MH-E. | 1 | ;;; mh-identity.el --- Multiple identify support for MH-E. |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Peter S. Galbraith <psg@debian.org> | 5 | ;; Author: Peter S. Galbraith <psg@debian.org> |
| 6 | ;; Maintainer: Bill Wohler <wohler@newt.com> | 6 | ;; Maintainer: Bill Wohler <wohler@newt.com> |
| @@ -127,7 +127,7 @@ character \":\", then it must have a special handler defined in | |||
| 127 | valid header field." | 127 | valid header field." |
| 128 | (or (cdr (mh-assoc-ignore-case field mh-identity-handlers)) | 128 | (or (cdr (mh-assoc-ignore-case field mh-identity-handlers)) |
| 129 | (and (eq (aref field 0) ?:) | 129 | (and (eq (aref field 0) ?:) |
| 130 | (error "Field %s - unknown mh-identity-handler" field)) | 130 | (error "Field %s not found in `mh-identity-handlers'" field)) |
| 131 | (cdr (assoc ":default" mh-identity-handlers)) | 131 | (cdr (assoc ":default" mh-identity-handlers)) |
| 132 | 'mh-identity-handler-default)) | 132 | 'mh-identity-handler-default)) |
| 133 | 133 | ||
diff --git a/lisp/mh-e/mh-index.el b/lisp/mh-e/mh-index.el index 08775c557b1..787acc35333 100644 --- a/lisp/mh-e/mh-index.el +++ b/lisp/mh-e/mh-index.el | |||
| @@ -1168,7 +1168,7 @@ SEARCH-REGEXP-LIST is used to search." | |||
| 1168 | (set-buffer (get-buffer-create mh-index-temp-buffer)) | 1168 | (set-buffer (get-buffer-create mh-index-temp-buffer)) |
| 1169 | (erase-buffer) | 1169 | (erase-buffer) |
| 1170 | (unless mh-mairix-binary | 1170 | (unless mh-mairix-binary |
| 1171 | (error "Set mh-mairix-binary appropriately")) | 1171 | (error "Set `mh-mairix-binary appropriately'")) |
| 1172 | (apply #'call-process mh-mairix-binary nil '(t nil) nil | 1172 | (apply #'call-process mh-mairix-binary nil '(t nil) nil |
| 1173 | "-r" "-f" (format "%s%s/config" mh-user-path mh-mairix-directory) | 1173 | "-r" "-f" (format "%s%s/config" mh-user-path mh-mairix-directory) |
| 1174 | search-regexp-list) | 1174 | search-regexp-list) |
| @@ -1446,7 +1446,7 @@ is used to search." | |||
| 1446 | (set-buffer (get-buffer-create mh-index-temp-buffer)) | 1446 | (set-buffer (get-buffer-create mh-index-temp-buffer)) |
| 1447 | (erase-buffer) | 1447 | (erase-buffer) |
| 1448 | (unless mh-swish-binary | 1448 | (unless mh-swish-binary |
| 1449 | (error "Set mh-swish-binary appropriately")) | 1449 | (error "Set `mh-swish-binary' appropriately")) |
| 1450 | (call-process mh-swish-binary nil '(t nil) nil | 1450 | (call-process mh-swish-binary nil '(t nil) nil |
| 1451 | "-w" search-regexp | 1451 | "-w" search-regexp |
| 1452 | "-f" (format "%s%s/index" mh-user-path mh-swish-directory)) | 1452 | "-f" (format "%s%s/index" mh-user-path mh-swish-directory)) |
| @@ -1535,7 +1535,7 @@ used to search." | |||
| 1535 | (set-buffer (get-buffer-create mh-index-temp-buffer)) | 1535 | (set-buffer (get-buffer-create mh-index-temp-buffer)) |
| 1536 | (erase-buffer) | 1536 | (erase-buffer) |
| 1537 | (unless mh-swish++-binary | 1537 | (unless mh-swish++-binary |
| 1538 | (error "Set mh-swish++-binary appropriately")) | 1538 | (error "Set `mh-swish++-binary' appropriately")) |
| 1539 | (call-process mh-swish++-binary nil '(t nil) nil | 1539 | (call-process mh-swish++-binary nil '(t nil) nil |
| 1540 | "-m" "10000" | 1540 | "-m" "10000" |
| 1541 | (format "-i%s%s/swish++.index" | 1541 | (format "-i%s%s/swish++.index" |
| @@ -1614,7 +1614,7 @@ is used to search." | |||
| 1614 | (unless (file-exists-p namazu-index-directory) | 1614 | (unless (file-exists-p namazu-index-directory) |
| 1615 | (error "Namazu directory %s not present" namazu-index-directory)) | 1615 | (error "Namazu directory %s not present" namazu-index-directory)) |
| 1616 | (unless (executable-find mh-namazu-binary) | 1616 | (unless (executable-find mh-namazu-binary) |
| 1617 | (error "Set mh-namazu-binary appropriately")) | 1617 | (error "Set `mh-namazu-binary' appropriately")) |
| 1618 | (set-buffer (get-buffer-create mh-index-temp-buffer)) | 1618 | (set-buffer (get-buffer-create mh-index-temp-buffer)) |
| 1619 | (erase-buffer) | 1619 | (erase-buffer) |
| 1620 | (call-process mh-namazu-binary nil '(t nil) nil | 1620 | (call-process mh-namazu-binary nil '(t nil) nil |
diff --git a/lisp/mh-e/mh-init.el b/lisp/mh-e/mh-init.el index 0e19da4fa7d..2297fef6a80 100644 --- a/lisp/mh-e/mh-init.el +++ b/lisp/mh-e/mh-init.el | |||
| @@ -127,13 +127,13 @@ finally GNU mailutils." | |||
| 127 | ((mh-variant-set-variant 'mu-mh) | 127 | ((mh-variant-set-variant 'mu-mh) |
| 128 | (message "%s installed as MH variant" mh-variant-in-use)) | 128 | (message "%s installed as MH variant" mh-variant-in-use)) |
| 129 | (t | 129 | (t |
| 130 | (message "No MH variant found on the system!")))) | 130 | (message "No MH variant found on the system")))) |
| 131 | ((member variant valid-list) | 131 | ((member variant valid-list) |
| 132 | (when (not (mh-variant-set-variant variant)) | 132 | (when (not (mh-variant-set-variant variant)) |
| 133 | (message "Warning: %s variant not found. Autodetecting..." variant) | 133 | (message "Warning: %s variant not found. Autodetecting..." variant) |
| 134 | (mh-variant-set 'autodetect))) | 134 | (mh-variant-set 'autodetect))) |
| 135 | (t | 135 | (t |
| 136 | (message "Unknown variant. Use %s" | 136 | (message "Unknown variant; use %s" |
| 137 | (mapconcat '(lambda (x) (format "%s" (car x))) | 137 | (mapconcat '(lambda (x) (format "%s" (car x))) |
| 138 | mh-variants " or ")))))) | 138 | mh-variants " or ")))))) |
| 139 | 139 | ||
diff --git a/lisp/mh-e/mh-mime.el b/lisp/mh-e/mh-mime.el index d8102fe6582..f7377d80b2d 100644 --- a/lisp/mh-e/mh-mime.el +++ b/lisp/mh-e/mh-mime.el | |||
| @@ -505,7 +505,7 @@ a prefix argument NOCONFIRM." | |||
| 505 | ".orig"))))) | 505 | ".orig"))))) |
| 506 | (setq backup-strings (cdr backup-strings))) | 506 | (setq backup-strings (cdr backup-strings))) |
| 507 | (or backup-strings | 507 | (or backup-strings |
| 508 | (error "Backup file for %s no longer exists!" buffer-file-name)) | 508 | (error "Backup file for %s no longer exists" buffer-file-name)) |
| 509 | (or noconfirm | 509 | (or noconfirm |
| 510 | (yes-or-no-p (format "Revert buffer from file %s? " | 510 | (yes-or-no-p (format "Revert buffer from file %s? " |
| 511 | backup-file)) | 511 | backup-file)) |
| @@ -585,7 +585,7 @@ MESSAGE number." | |||
| 585 | mh-user-path (substring folder 1) msg) | 585 | mh-user-path (substring folder 1) msg) |
| 586 | "message/rfc822" | 586 | "message/rfc822" |
| 587 | description))) | 587 | description))) |
| 588 | (t (error "The message number, %s is not a integer!" msg))))) | 588 | (t (error "The message number, %s, is not a integer" msg))))) |
| 589 | 589 | ||
| 590 | (defvar mh-mml-cryptographic-method-history ()) | 590 | (defvar mh-mml-cryptographic-method-history ()) |
| 591 | 591 | ||
| @@ -633,9 +633,9 @@ IDENTITY is optionally the default-user-id to use." | |||
| 633 | (let ((valid-methods (list "pgpmime" "pgp" "smime")) | 633 | (let ((valid-methods (list "pgpmime" "pgp" "smime")) |
| 634 | (valid-modes (list "sign" "encrypt" "signencrypt" "none"))) | 634 | (valid-modes (list "sign" "encrypt" "signencrypt" "none"))) |
| 635 | (if (not (member method valid-methods)) | 635 | (if (not (member method valid-methods)) |
| 636 | (error "Method \"%s\" is invalid" method)) | 636 | (error "Method %s is invalid" method)) |
| 637 | (if (not (member mode valid-modes)) | 637 | (if (not (member mode valid-modes)) |
| 638 | (error "Mode \"%s\" is invalid" mode)) | 638 | (error "Mode %s is invalid" mode)) |
| 639 | (mml-unsecure-message) | 639 | (mml-unsecure-message) |
| 640 | (if (not (string= mode "none")) | 640 | (if (not (string= mode "none")) |
| 641 | (save-excursion | 641 | (save-excursion |
| @@ -967,7 +967,7 @@ parsed and then displayed." | |||
| 967 | (mh-mime-display-part handles)) | 967 | (mh-mime-display-part handles)) |
| 968 | (t (mh-signature-highlight)))) | 968 | (t (mh-signature-highlight)))) |
| 969 | (error | 969 | (error |
| 970 | (message "Please report this error. The error message is:\n %s" | 970 | (message "Please report this error:\n %s" |
| 971 | (error-message-string err)) | 971 | (error-message-string err)) |
| 972 | (delete-region (point-min) (point-max)) | 972 | (delete-region (point-min) (point-max)) |
| 973 | (insert raw-message-data)))))) | 973 | (insert raw-message-data)))))) |
diff --git a/lisp/mh-e/mh-pick.el b/lisp/mh-e/mh-pick.el index 8089d3e8ae7..e87e3d11f8d 100644 --- a/lisp/mh-e/mh-pick.el +++ b/lisp/mh-e/mh-pick.el | |||
| @@ -143,7 +143,7 @@ configuration and is used when the search folder is dismissed." | |||
| 143 | 'mh-previous-window-config window-config) | 143 | 'mh-previous-window-config window-config) |
| 144 | (message "%s" (substitute-command-keys | 144 | (message "%s" (substitute-command-keys |
| 145 | (concat "Type \\[mh-do-search] to search messages, " | 145 | (concat "Type \\[mh-do-search] to search messages, " |
| 146 | "\\[mh-help] for help."))))) | 146 | "\\[mh-help] for help"))))) |
| 147 | 147 | ||
| 148 | (defun mh-make-pick-template () | 148 | (defun mh-make-pick-template () |
| 149 | "Initialize the current buffer with a template for a pick pattern." | 149 | "Initialize the current buffer with a template for a pick pattern." |
| @@ -335,7 +335,7 @@ COMPONENT is the component to search." | |||
| 335 | ((eq (car expr) 'not) | 335 | ((eq (car expr) 'not) |
| 336 | `("-lbrace" "-not" ,@(mh-pick-construct-regexp (cadr expr) component) | 336 | `("-lbrace" "-not" ,@(mh-pick-construct-regexp (cadr expr) component) |
| 337 | "-rbrace")) | 337 | "-rbrace")) |
| 338 | (t (error "Unknown operator '%s' seen" (car expr))))) | 338 | (t (error "Unknown operator %s seen" (car expr))))) |
| 339 | 339 | ||
| 340 | ;; All implementations of pick have special options -cc, -date, -from and | 340 | ;; All implementations of pick have special options -cc, -date, -from and |
| 341 | ;; -subject that allow to search for corresponding components. Any other | 341 | ;; -subject that allow to search for corresponding components. Any other |
diff --git a/lisp/mh-e/mh-seq.el b/lisp/mh-e/mh-seq.el index 5dab59b270f..53bae76cc07 100644 --- a/lisp/mh-e/mh-seq.el +++ b/lisp/mh-e/mh-seq.el | |||
| @@ -284,7 +284,7 @@ When you want to widen the view to all your messages again, use | |||
| 284 | mh-show-seq-tool-bar-map)))) | 284 | mh-show-seq-tool-bar-map)))) |
| 285 | (push 'widen mh-view-ops))) | 285 | (push 'widen mh-view-ops))) |
| 286 | (t | 286 | (t |
| 287 | (error "No messages in sequence \"%s\"" (symbol-name sequence)))))) | 287 | (error "No messages in sequence %s" (symbol-name sequence)))))) |
| 288 | 288 | ||
| 289 | ;;;###mh-autoload | 289 | ;;;###mh-autoload |
| 290 | (defun mh-put-msg-in-seq (range sequence) | 290 | (defun mh-put-msg-in-seq (range sequence) |
| @@ -304,7 +304,7 @@ use." | |||
| 304 | (interactive (list (mh-interactive-range "Add messages from") | 304 | (interactive (list (mh-interactive-range "Add messages from") |
| 305 | (mh-read-seq-default "Add to" nil))) | 305 | (mh-read-seq-default "Add to" nil))) |
| 306 | (unless (mh-valid-seq-p sequence) | 306 | (unless (mh-valid-seq-p sequence) |
| 307 | (error "Can't put message in invalid sequence \"%s\"" sequence)) | 307 | (error "Can't put message in invalid sequence %s" sequence)) |
| 308 | (let* ((internal-seq-flag (mh-internal-seq sequence)) | 308 | (let* ((internal-seq-flag (mh-internal-seq sequence)) |
| 309 | (original-msgs (mh-seq-msgs (mh-find-seq sequence))) | 309 | (original-msgs (mh-seq-msgs (mh-find-seq sequence))) |
| 310 | (folders (list mh-current-folder)) | 310 | (folders (list mh-current-folder)) |
| @@ -432,7 +432,7 @@ containing the current message." | |||
| 432 | (t (intern input)))) | 432 | (t (intern input)))) |
| 433 | (msgs (mh-seq-to-msgs seq))) | 433 | (msgs (mh-seq-to-msgs seq))) |
| 434 | (if (and (null msgs) not-empty) | 434 | (if (and (null msgs) not-empty) |
| 435 | (error "No messages in sequence \"%s\"" seq)) | 435 | (error "No messages in sequence %s" seq)) |
| 436 | seq)) | 436 | seq)) |
| 437 | 437 | ||
| 438 | 438 | ||
| @@ -549,7 +549,7 @@ should be replaced with: | |||
| 549 | ((assoc (intern input) seq-list) | 549 | ((assoc (intern input) seq-list) |
| 550 | (cdr (assoc (intern input) seq-list))) | 550 | (cdr (assoc (intern input) seq-list))) |
| 551 | ((setq msg-list (mh-translate-range folder input)) msg-list) | 551 | ((setq msg-list (mh-translate-range folder input)) msg-list) |
| 552 | (t (error "No messages in range \"%s\"" input))))) | 552 | (t (error "No messages in range %s" input))))) |
| 553 | 553 | ||
| 554 | ;;;###mh-autoload | 554 | ;;;###mh-autoload |
| 555 | (defun mh-translate-range (folder expr) | 555 | (defun mh-translate-range (folder expr) |
| @@ -1176,7 +1176,7 @@ children." | |||
| 1176 | (mh-message-id (mh-container-message kid))) | 1176 | (mh-message-id (mh-container-message kid))) |
| 1177 | (let ((kid-message (mh-container-message kid))) | 1177 | (let ((kid-message (mh-container-message kid))) |
| 1178 | (return (mh-message-subject kid-message))))) | 1178 | (return (mh-message-subject kid-message))))) |
| 1179 | (error "This can't happen!"))))) | 1179 | (error "This can't happen"))))) |
| 1180 | 1180 | ||
| 1181 | (defun mh-thread-rewind-pruning () | 1181 | (defun mh-thread-rewind-pruning () |
| 1182 | "Restore the thread tree to its state before pruning." | 1182 | "Restore the thread tree to its state before pruning." |
diff --git a/lisp/mh-e/mh-utils.el b/lisp/mh-e/mh-utils.el index 0bfadfbe238..f3205a932a2 100644 --- a/lisp/mh-e/mh-utils.el +++ b/lisp/mh-e/mh-utils.el | |||
| @@ -1582,7 +1582,7 @@ The argument CHANGE is ignored." | |||
| 1582 | (cond | 1582 | (cond |
| 1583 | ;; Check if we have `convert' | 1583 | ;; Check if we have `convert' |
| 1584 | ((eq mh-x-image-scaling-function 'ignore) | 1584 | ((eq mh-x-image-scaling-function 'ignore) |
| 1585 | (message "The `convert' program is needed to display X-Image-URL") | 1585 | (message "The \"convert\" program is needed to display X-Image-URL") |
| 1586 | (mh-x-image-set-download-state cache-filename 'try-again)) | 1586 | (mh-x-image-set-download-state cache-filename 'try-again)) |
| 1587 | ;; Scale fetched image | 1587 | ;; Scale fetched image |
| 1588 | ((and (funcall mh-x-image-scaling-function temp-file cache-filename) | 1588 | ((and (funcall mh-x-image-scaling-function temp-file cache-filename) |
| @@ -2479,7 +2479,7 @@ used in searching." | |||
| 2479 | (new-file-flag | 2479 | (new-file-flag |
| 2480 | (error "Folder %s does not exist" folder-name)) | 2480 | (error "Folder %s does not exist" folder-name)) |
| 2481 | ((not (file-directory-p (mh-expand-file-name folder-name))) | 2481 | ((not (file-directory-p (mh-expand-file-name folder-name))) |
| 2482 | (error "\"%s\" is not a directory" | 2482 | (error "%s is not a directory" |
| 2483 | (mh-expand-file-name folder-name))))) | 2483 | (mh-expand-file-name folder-name))))) |
| 2484 | folder-name)) | 2484 | folder-name)) |
| 2485 | 2485 | ||
| @@ -2663,7 +2663,7 @@ Set mark after inserted text." | |||
| 2663 | (set-buffer (get-buffer-create mh-log-buffer)) | 2663 | (set-buffer (get-buffer-create mh-log-buffer)) |
| 2664 | (mh-truncate-log-buffer) | 2664 | (mh-truncate-log-buffer) |
| 2665 | (insert error-message))) | 2665 | (insert error-message))) |
| 2666 | (error "%s failed, check %s buffer for error message" | 2666 | (error "%s failed, check buffer %s for error message" |
| 2667 | command mh-log-buffer))) | 2667 | command mh-log-buffer))) |
| 2668 | 2668 | ||
| 2669 | (defun mh-list-to-string (l) | 2669 | (defun mh-list-to-string (l) |
| @@ -2684,7 +2684,7 @@ Set mark after inserted text." | |||
| 2684 | ((listp (car l)) | 2684 | ((listp (car l)) |
| 2685 | (setq new-list (nconc (mh-list-to-string-1 (car l)) | 2685 | (setq new-list (nconc (mh-list-to-string-1 (car l)) |
| 2686 | new-list))) | 2686 | new-list))) |
| 2687 | (t (error "Bad element in mh-list-to-string: %s" (car l)))) | 2687 | (t (error "Bad element in `mh-list-to-string': %s" (car l)))) |
| 2688 | (setq l (cdr l))) | 2688 | (setq l (cdr l))) |
| 2689 | new-list)) | 2689 | new-list)) |
| 2690 | 2690 | ||