diff options
| author | Deepak Goel | 2005-09-18 12:48:32 +0000 |
|---|---|---|
| committer | Deepak Goel | 2005-09-18 12:48:32 +0000 |
| commit | 47570699e45fc013ac0a14138e9f6be9f60a5bca (patch) | |
| tree | af19c7e02fcc5137c6b8de8934ec9dee07dbbb65 | |
| parent | c4fbd74054d0015c7c7884c3657a0fe2f7c335e5 (diff) | |
| download | emacs-47570699e45fc013ac0a14138e9f6be9f60a5bca.tar.gz emacs-47570699e45fc013ac0a14138e9f6be9f60a5bca.zip | |
message format spec fixes, commit 14, this should be final commit
| -rw-r--r-- | lisp/mh-e/ChangeLog | 21 | ||||
| -rw-r--r-- | lisp/mh-e/mh-alias.el | 2 | ||||
| -rw-r--r-- | lisp/mh-e/mh-e.el | 14 | ||||
| -rw-r--r-- | lisp/mh-e/mh-index.el | 2 | ||||
| -rw-r--r-- | lisp/mh-e/mh-junk.el | 20 | ||||
| -rw-r--r-- | lisp/mh-e/mh-mime.el | 2 | ||||
| -rw-r--r-- | lisp/mh-e/mh-print.el | 14 |
7 files changed, 48 insertions, 27 deletions
diff --git a/lisp/mh-e/ChangeLog b/lisp/mh-e/ChangeLog index 28cc6c2a6d0..b1c0dd236f5 100644 --- a/lisp/mh-e/ChangeLog +++ b/lisp/mh-e/ChangeLog | |||
| @@ -1,3 +1,24 @@ | |||
| 1 | 2005-09-18 D Goel <deego@gnufans.org> | ||
| 2 | |||
| 3 | |||
| 4 | * mh-alias.el (mh-alias-ali): Fix `message' call: first arg | ||
| 5 | should be a format spec. | ||
| 6 | |||
| 7 | * mh-print.el (mh-ps-spool-buffer, mh-ps-spool-a-msg) | ||
| 8 | (mh-ps-print-msg, mh-ps-print-msg-show): Ditto. | ||
| 9 | |||
| 10 | * mh-mime.el (mh-toggle-mh-decode-mime-flag): Ditto. | ||
| 11 | |||
| 12 | * mh-index.el (mh-index-sequenced-messages): Ditto. | ||
| 13 | |||
| 14 | |||
| 15 | * mh-e.el (mh-refile-or-write-again, mh-page-msg): Ditto. | ||
| 16 | |||
| 17 | * mh-junk.el (mh-junk-blacklist, mh-junk-whitelist) | ||
| 18 | (mh-spamassassin-blacklist, mh-spamassassin-whitelist): Ditto. | ||
| 19 | |||
| 20 | |||
| 21 | |||
| 1 | 2005-08-15 Dan Nicolaescu <dann@ics.uci.edu> | 22 | 2005-08-15 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 23 | ||
| 3 | * mh-customize.el: Do not use face-alias compatibility for | 24 | * mh-customize.el: Do not use face-alias compatibility for |
diff --git a/lisp/mh-e/mh-alias.el b/lisp/mh-e/mh-alias.el index ceec6e6556d..ba429f24b9f 100644 --- a/lisp/mh-e/mh-alias.el +++ b/lisp/mh-e/mh-alias.el | |||
| @@ -251,7 +251,7 @@ ali returns the string unchanged if not defined. The same is done here." | |||
| 251 | (if (looking-at "^$") (delete-backward-char 1)) | 251 | (if (looking-at "^$") (delete-backward-char 1)) |
| 252 | (buffer-substring (point-min)(point-max))) | 252 | (buffer-substring (point-min)(point-max))) |
| 253 | (error (progn | 253 | (error (progn |
| 254 | (message (error-message-string err)) | 254 | (message "%s" (error-message-string err)) |
| 255 | alias)))) | 255 | alias)))) |
| 256 | 256 | ||
| 257 | (defun mh-alias-expand (alias) | 257 | (defun mh-alias-expand (alias) |
diff --git a/lisp/mh-e/mh-e.el b/lisp/mh-e/mh-e.el index 3d917c16935..c0f47537c97 100644 --- a/lisp/mh-e/mh-e.el +++ b/lisp/mh-e/mh-e.el | |||
| @@ -734,7 +734,7 @@ If INTERACTIVE-FLAG is non-nil then the function was called interactively." | |||
| 734 | (apply 'mh-write-msg-to-file msg (cdr mh-last-destination))) | 734 | (apply 'mh-write-msg-to-file msg (cdr mh-last-destination))) |
| 735 | (mh-next-msg interactive-flag) | 735 | (mh-next-msg interactive-flag) |
| 736 | (format "Destination: %s" (cdr mh-last-destination))))) | 736 | (format "Destination: %s" (cdr mh-last-destination))))) |
| 737 | (message output))) | 737 | (message "%s" output))) |
| 738 | 738 | ||
| 739 | (defun mh-quit () | 739 | (defun mh-quit () |
| 740 | "Quit the current MH-E folder. | 740 | "Quit the current MH-E folder. |
| @@ -778,12 +778,12 @@ bottom of the current message." | |||
| 778 | (if (mh-in-show-buffer (mh-show-buffer) | 778 | (if (mh-in-show-buffer (mh-show-buffer) |
| 779 | (pos-visible-in-window-p (point-max))) | 779 | (pos-visible-in-window-p (point-max))) |
| 780 | (progn | 780 | (progn |
| 781 | (message (format | 781 | (message |
| 782 | "End of message (Type %s to read %s undeleted message)" | 782 | "End of message (Type %s to read %s undeleted message)" |
| 783 | (single-key-description last-input-event) | 783 | (single-key-description last-input-event) |
| 784 | (if (equal mh-next-direction 'backward) | 784 | (if (equal mh-next-direction 'backward) |
| 785 | "previous" | 785 | "previous" |
| 786 | "next"))) | 786 | "next")) |
| 787 | (setq mh-page-to-next-msg-flag t)) | 787 | (setq mh-page-to-next-msg-flag t)) |
| 788 | (scroll-other-window arg))) | 788 | (scroll-other-window arg))) |
| 789 | (mh-show))) | 789 | (mh-show))) |
diff --git a/lisp/mh-e/mh-index.el b/lisp/mh-e/mh-index.el index 28cb0b44fd4..3fef04418f5 100644 --- a/lisp/mh-e/mh-index.el +++ b/lisp/mh-e/mh-index.el | |||
| @@ -1325,7 +1325,7 @@ space-separated list of folders, or nothing to search all folders." | |||
| 1325 | mh-index-sequence-search-flag t | 1325 | mh-index-sequence-search-flag t |
| 1326 | mh-index-previous-search (list folders sequence)) | 1326 | mh-index-previous-search (list folders sequence)) |
| 1327 | (mh-index-write-data) | 1327 | (mh-index-write-data) |
| 1328 | (when (stringp message) (message message)))) | 1328 | (when (stringp message) (message "%s" message)))) |
| 1329 | 1329 | ||
| 1330 | ;;;###mh-autoload | 1330 | ;;;###mh-autoload |
| 1331 | (defun mh-index-new-messages (folders) | 1331 | (defun mh-index-new-messages (folders) |
diff --git a/lisp/mh-e/mh-junk.el b/lisp/mh-e/mh-junk.el index a20117d8582..b78d85410c7 100644 --- a/lisp/mh-e/mh-junk.el +++ b/lisp/mh-e/mh-junk.el | |||
| @@ -63,9 +63,9 @@ For more information about using your particular spam fighting program, see: | |||
| 63 | (substring mh-junk-disposition 1))) | 63 | (substring mh-junk-disposition 1))) |
| 64 | (t (concat "+" mh-junk-disposition))))) | 64 | (t (concat "+" mh-junk-disposition))))) |
| 65 | (mh-iterate-on-range msg range | 65 | (mh-iterate-on-range msg range |
| 66 | (message (format "Blacklisting message %d..." msg)) | 66 | (message "Blacklisting message %d..." msg) |
| 67 | (funcall (symbol-function blacklist-func) msg) | 67 | (funcall (symbol-function blacklist-func) msg) |
| 68 | (message (format "Blacklisting message %d...done" msg)) | 68 | (message "Blacklisting message %d...done" msg) |
| 69 | (if (not (memq msg mh-seen-list)) | 69 | (if (not (memq msg mh-seen-list)) |
| 70 | (setq mh-seen-list (cons msg mh-seen-list))) | 70 | (setq mh-seen-list (cons msg mh-seen-list))) |
| 71 | (if dest | 71 | (if dest |
| @@ -87,9 +87,9 @@ The `mh-junk-program' option specifies the spam program in use." | |||
| 87 | (unless whitelist-func | 87 | (unless whitelist-func |
| 88 | (error "Customize `mh-junk-program' appropriately")) | 88 | (error "Customize `mh-junk-program' appropriately")) |
| 89 | (mh-iterate-on-range msg range | 89 | (mh-iterate-on-range msg range |
| 90 | (message (format "Whitelisting message %d..." msg)) | 90 | (message "Whitelisting message %d..." msg) |
| 91 | (funcall (symbol-function whitelist-func) msg) | 91 | (funcall (symbol-function whitelist-func) msg) |
| 92 | (message (format "Whitelisting message %d...done" msg)) | 92 | (message "Whitelisting message %d...done" msg) |
| 93 | (mh-refile-a-msg nil (intern mh-inbox))) | 93 | (mh-refile-a-msg nil (intern mh-inbox))) |
| 94 | (mh-next-msg))) | 94 | (mh-next-msg))) |
| 95 | 95 | ||
| @@ -179,7 +179,7 @@ done by adding the following to your crontab: | |||
| 179 | (msg-file (mh-msg-filename msg mh-current-folder)) | 179 | (msg-file (mh-msg-filename msg mh-current-folder)) |
| 180 | (sender)) | 180 | (sender)) |
| 181 | (save-excursion | 181 | (save-excursion |
| 182 | (message (format "Reporting message %d..." msg)) | 182 | (message "Reporting message %d..." msg) |
| 183 | (mh-truncate-log-buffer) | 183 | (mh-truncate-log-buffer) |
| 184 | (call-process mh-spamassassin-executable msg-file mh-log-buffer nil | 184 | (call-process mh-spamassassin-executable msg-file mh-log-buffer nil |
| 185 | ;;"--report" "--remove-from-whitelist" | 185 | ;;"--report" "--remove-from-whitelist" |
| @@ -188,7 +188,7 @@ done by adding the following to your crontab: | |||
| 188 | (message "Recategorizing this message as spam...") | 188 | (message "Recategorizing this message as spam...") |
| 189 | (call-process mh-sa-learn-executable msg-file mh-log-buffer nil | 189 | (call-process mh-sa-learn-executable msg-file mh-log-buffer nil |
| 190 | "--single" "--spam" "--local" "--no-rebuild")) | 190 | "--single" "--spam" "--local" "--no-rebuild")) |
| 191 | (message (format "Blacklisting message %d..." msg)) | 191 | (message "Blacklisting message %d..." msg) |
| 192 | (set-buffer (get-buffer-create mh-temp-buffer)) | 192 | (set-buffer (get-buffer-create mh-temp-buffer)) |
| 193 | (erase-buffer) | 193 | (erase-buffer) |
| 194 | (call-process (expand-file-name mh-scan-prog mh-progs) | 194 | (call-process (expand-file-name mh-scan-prog mh-progs) |
| @@ -200,8 +200,8 @@ done by adding the following to your crontab: | |||
| 200 | (progn | 200 | (progn |
| 201 | (setq sender (match-string 0)) | 201 | (setq sender (match-string 0)) |
| 202 | (mh-spamassassin-add-rule "blacklist_from" sender) | 202 | (mh-spamassassin-add-rule "blacklist_from" sender) |
| 203 | (message (format "Blacklisting message %d...done" msg))) | 203 | (message "Blacklisting message %d...done" msg)) |
| 204 | (message (format "Blacklisting message %d...not done (from my address)" msg)))))) | 204 | (message "Blacklisting message %d...not done (from my address)" msg))))) |
| 205 | 205 | ||
| 206 | (defun mh-spamassassin-whitelist (msg) | 206 | (defun mh-spamassassin-whitelist (msg) |
| 207 | "Whitelist MSG with SpamAssassin. | 207 | "Whitelist MSG with SpamAssassin. |
| @@ -230,14 +230,14 @@ See `mh-spamassassin-blacklist' for more information." | |||
| 230 | (message "Recategorizing this message as ham...") | 230 | (message "Recategorizing this message as ham...") |
| 231 | (call-process mh-sa-learn-executable msg-file mh-temp-buffer nil | 231 | (call-process mh-sa-learn-executable msg-file mh-temp-buffer nil |
| 232 | "--single" "--ham" "--local --no-rebuild")) | 232 | "--single" "--ham" "--local --no-rebuild")) |
| 233 | (message (format "Whitelisting message %d..." msg)) | 233 | (message "Whitelisting message %d..." msg) |
| 234 | (setq from | 234 | (setq from |
| 235 | (car (mh-funcall-if-exists | 235 | (car (mh-funcall-if-exists |
| 236 | ietf-drums-parse-address (mh-get-header-field "From:")))) | 236 | ietf-drums-parse-address (mh-get-header-field "From:")))) |
| 237 | (kill-buffer nil) | 237 | (kill-buffer nil) |
| 238 | (unless (or (null from) (equal from "")) | 238 | (unless (or (null from) (equal from "")) |
| 239 | (mh-spamassassin-add-rule "whitelist_from" from)) | 239 | (mh-spamassassin-add-rule "whitelist_from" from)) |
| 240 | (message (format "Whitelisting message %d...done" msg))))) | 240 | (message "Whitelisting message %d...done" msg)))) |
| 241 | 241 | ||
| 242 | (defun mh-spamassassin-add-rule (rule body) | 242 | (defun mh-spamassassin-add-rule (rule body) |
| 243 | "Add a new rule to `~/.spamassassin/user_prefs'. | 243 | "Add a new rule to `~/.spamassassin/user_prefs'. |
diff --git a/lisp/mh-e/mh-mime.el b/lisp/mh-e/mh-mime.el index 3e5068c7bdc..980942a0f47 100644 --- a/lisp/mh-e/mh-mime.el +++ b/lisp/mh-e/mh-mime.el | |||
| @@ -858,7 +858,7 @@ If message has been encoded for transfer take that into account." | |||
| 858 | (interactive) | 858 | (interactive) |
| 859 | (setq mh-decode-mime-flag (not mh-decode-mime-flag)) | 859 | (setq mh-decode-mime-flag (not mh-decode-mime-flag)) |
| 860 | (mh-show nil t) | 860 | (mh-show nil t) |
| 861 | (message (format "(setq mh-decode-mime-flag %s)" mh-decode-mime-flag))) | 861 | (message "(setq mh-decode-mime-flag %s)" mh-decode-mime-flag)) |
| 862 | 862 | ||
| 863 | ;;;###mh-autoload | 863 | ;;;###mh-autoload |
| 864 | (defun mh-decode-message-header () | 864 | (defun mh-decode-message-header () |
diff --git a/lisp/mh-e/mh-print.el b/lisp/mh-e/mh-print.el index 814c5e42174..6b2e8a3474e 100644 --- a/lisp/mh-e/mh-print.el +++ b/lisp/mh-e/mh-print.el | |||
| @@ -64,7 +64,7 @@ Sensible choices are the functions `ps-spool-buffer' and | |||
| 64 | ;; XXX - Default print buffer is bogus | 64 | ;; XXX - Default print buffer is bogus |
| 65 | (defun mh-ps-spool-buffer (buffer) | 65 | (defun mh-ps-spool-buffer (buffer) |
| 66 | "Send BUFFER to printer queue." | 66 | "Send BUFFER to printer queue." |
| 67 | (message (format "mh-ps-spool-buffer %s" buffer)) | 67 | (message "mh-ps-spool-buffer %s" buffer) |
| 68 | (save-excursion | 68 | (save-excursion |
| 69 | (set-buffer buffer) | 69 | (set-buffer buffer) |
| 70 | (let ((ps-print-color-p mh-ps-print-color-option) | 70 | (let ((ps-print-color-p mh-ps-print-color-option) |
| @@ -85,8 +85,8 @@ Sensible choices are the functions `ps-spool-buffer' and | |||
| 85 | "Print MSG. | 85 | "Print MSG. |
| 86 | First the message is decoded in BUFFER before the results are sent to the | 86 | First the message is decoded in BUFFER before the results are sent to the |
| 87 | printer." | 87 | printer." |
| 88 | (message (format "mh-ps-spool-a-msg msg %s buffer %s" | 88 | (message "mh-ps-spool-a-msg msg %s buffer %s" |
| 89 | msg buffer)) | 89 | msg buffer) |
| 90 | (let ((mh-show-buffer mh-show-buffer) | 90 | (let ((mh-show-buffer mh-show-buffer) |
| 91 | (folder mh-current-folder) | 91 | (folder mh-current-folder) |
| 92 | ;; The following is commented out because | 92 | ;; The following is commented out because |
| @@ -113,8 +113,8 @@ printer." | |||
| 113 | Check the documentation of `mh-interactive-range' to see how RANGE is read in | 113 | Check the documentation of `mh-interactive-range' to see how RANGE is read in |
| 114 | interactive use." | 114 | interactive use." |
| 115 | (interactive (list (mh-interactive-range "Print"))) | 115 | (interactive (list (mh-interactive-range "Print"))) |
| 116 | (message (format "mh-ps-print-msg range %s keys %s" | 116 | (message "mh-ps-print-msg range %s keys %s" |
| 117 | range (this-command-keys))) | 117 | range (this-command-keys)) |
| 118 | (mh-iterate-on-range msg range | 118 | (mh-iterate-on-range msg range |
| 119 | (let ((buffer (get-buffer-create mh-temp-buffer))) | 119 | (let ((buffer (get-buffer-create mh-temp-buffer))) |
| 120 | (unwind-protect | 120 | (unwind-protect |
| @@ -152,8 +152,8 @@ interactive use." | |||
| 152 | (defun mh-ps-print-msg-show (file) | 152 | (defun mh-ps-print-msg-show (file) |
| 153 | "Print current show buffer to FILE." | 153 | "Print current show buffer to FILE." |
| 154 | (interactive (list (mh-ps-print-preprint current-prefix-arg))) | 154 | (interactive (list (mh-ps-print-preprint current-prefix-arg))) |
| 155 | (message (format "mh-ps-print-msg-show file %s keys %s mh-show-buffer %s" | 155 | (message "mh-ps-print-msg-show file %s keys %s mh-show-buffer %s" |
| 156 | file (this-command-keys) mh-show-buffer)) | 156 | file (this-command-keys mh-show-buffer)) |
| 157 | (let ((msg (mh-get-msg-num t)) | 157 | (let ((msg (mh-get-msg-num t)) |
| 158 | (folder mh-current-folder) | 158 | (folder mh-current-folder) |
| 159 | (show-buffer mh-show-buffer) | 159 | (show-buffer mh-show-buffer) |