diff options
| author | Lars Ingebrigtsen | 2016-02-12 17:28:10 +1100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2016-02-12 17:28:10 +1100 |
| commit | 209e8bd102ac65bf5ae1a4aad56d21a097536f9a (patch) | |
| tree | 2a496a0e47e14b1e9bdf4f356454321ca6f44667 | |
| parent | b731dcde62afe28b03d4bf9cd2ca27693b82610a (diff) | |
| download | emacs-209e8bd102ac65bf5ae1a4aad56d21a097536f9a.tar.gz emacs-209e8bd102ac65bf5ae1a4aad56d21a097536f9a.zip | |
Fix various compilation warnings in message.el
* lisp/gnus/message.el (message-fix-before-sending): Use
read-multiple-choice instead of gnus-multiple-choice.
(mm-util): Require.
(rfc2047): Require.
(message-remove-blank-cited-lines): Use message instead of
gnus-message.
(message-send): Use y-or-n-p instead of gnus-y-or-n-p.
| -rw-r--r-- | lisp/gnus/message.el | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index dec4c379adb..7cf5019ec50 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el | |||
| @@ -46,6 +46,8 @@ | |||
| 46 | (require 'rfc822) | 46 | (require 'rfc822) |
| 47 | (require 'format-spec) | 47 | (require 'format-spec) |
| 48 | (require 'dired) | 48 | (require 'dired) |
| 49 | (require 'mm-util) | ||
| 50 | (require 'rfc2047) | ||
| 49 | 51 | ||
| 50 | (autoload 'mailclient-send-it "mailclient") ;; Emacs 22 or contrib/ | 52 | (autoload 'mailclient-send-it "mailclient") ;; Emacs 22 or contrib/ |
| 51 | 53 | ||
| @@ -3764,7 +3766,7 @@ To use this automatically, you may add this function to | |||
| 3764 | message-yank-prefix | 3766 | message-yank-prefix |
| 3765 | "\\)+ *\n" | 3767 | "\\)+ *\n" |
| 3766 | ))) | 3768 | ))) |
| 3767 | (gnus-message 8 "removing `%s'" citexp) | 3769 | (message "removing `%s'" citexp) |
| 3768 | (save-excursion | 3770 | (save-excursion |
| 3769 | (message-goto-body) | 3771 | (message-goto-body) |
| 3770 | (while (re-search-forward citexp nil t) | 3772 | (while (re-search-forward citexp nil t) |
| @@ -4185,7 +4187,7 @@ It should typically alter the sending method in some way or other." | |||
| 4185 | (or (eq message-allow-no-recipients 'always) | 4187 | (or (eq message-allow-no-recipients 'always) |
| 4186 | (and (not (eq message-allow-no-recipients 'never)) | 4188 | (and (not (eq message-allow-no-recipients 'never)) |
| 4187 | (setq dont-barf-on-no-method | 4189 | (setq dont-barf-on-no-method |
| 4188 | (gnus-y-or-n-p | 4190 | (y-or-n-p |
| 4189 | (format "No receiver, perform %s anyway? " | 4191 | (format "No receiver, perform %s anyway? " |
| 4190 | (cond ((and fcc gcc) "Fcc and Gcc") | 4192 | (cond ((and fcc gcc) "Fcc and Gcc") |
| 4191 | (fcc "Fcc") | 4193 | (fcc "Fcc") |
| @@ -4333,16 +4335,18 @@ conformance." | |||
| 4333 | (forward-char)) | 4335 | (forward-char)) |
| 4334 | (when found | 4336 | (when found |
| 4335 | (setq choice | 4337 | (setq choice |
| 4336 | (gnus-multiple-choice | 4338 | (car |
| 4337 | (if nul-chars | 4339 | (read-multiple-choice |
| 4338 | "NUL characters found, which may cause problems. Continue sending?" | 4340 | (if nul-chars |
| 4339 | "Non-printable characters found. Continue sending?") | 4341 | "NUL characters found, which may cause problems. Continue sending?" |
| 4340 | `((?d "Remove non-printable characters and send") | 4342 | "Non-printable characters found. Continue sending?") |
| 4341 | (?r ,(format | 4343 | `((?d "delete" "Remove non-printable characters and send") |
| 4342 | "Replace non-printable characters with \"%s\" and send" | 4344 | (?r "replace" |
| 4343 | message-replacement-char)) | 4345 | ,(format |
| 4344 | (?s "Send as is without removing anything") | 4346 | "Replace non-printable characters with \"%s\" and send" |
| 4345 | (?e "Continue editing")))) | 4347 | message-replacement-char)) |
| 4348 | (?s "send" "Send as is without removing anything") | ||
| 4349 | (?e "edit" "Continue editing"))))) | ||
| 4346 | (if (eq choice ?e) | 4350 | (if (eq choice ?e) |
| 4347 | (error "Non-printable characters")) | 4351 | (error "Non-printable characters")) |
| 4348 | (message-goto-body) | 4352 | (message-goto-body) |