diff options
| author | Daniel Colascione | 2016-11-08 12:37:30 -0800 |
|---|---|---|
| committer | Daniel Colascione | 2016-11-08 12:37:54 -0800 |
| commit | 06cfaa3dfa1888b55df437a16ced6f718678bc56 (patch) | |
| tree | f82e5455bef0d1d540c01010ea981cbc61bb3cb1 | |
| parent | 39c0b8b6b189cef3cd7118ac7c213a09fa8be398 (diff) | |
| download | emacs-06cfaa3dfa1888b55df437a16ced6f718678bc56.tar.gz emacs-06cfaa3dfa1888b55df437a16ced6f718678bc56.zip | |
Make gnus/message.el work correctly under lexical binding
* lisp/gnus/message.el (message-send-mail): Rename `arg' to
`_' to shut up the byte compiler.
(sha1-maximum-internal-length, smtpmail-smtp-server)
(smtpmail-smtp-service): add missing defvars
| -rw-r--r-- | lisp/gnus/message.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index 88045130ef0..bdf1b156914 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el | |||
| @@ -4481,7 +4481,7 @@ This function could be useful in `message-setup-hook'." | |||
| 4481 | 4481 | ||
| 4482 | (declare-function hashcash-wait-async "hashcash" (&optional buffer)) | 4482 | (declare-function hashcash-wait-async "hashcash" (&optional buffer)) |
| 4483 | 4483 | ||
| 4484 | (defun message-send-mail (&optional arg) | 4484 | (defun message-send-mail (&optional _) |
| 4485 | (require 'mail-utils) | 4485 | (require 'mail-utils) |
| 4486 | (let* ((tembuf (message-generate-new-buffer-clone-locals " message temp")) | 4486 | (let* ((tembuf (message-generate-new-buffer-clone-locals " message temp")) |
| 4487 | (case-fold-search nil) | 4487 | (case-fold-search nil) |
| @@ -4638,6 +4638,8 @@ If you always want Gnus to send messages in one piece, set | |||
| 4638 | (push 'mail message-sent-message-via))) | 4638 | (push 'mail message-sent-message-via))) |
| 4639 | 4639 | ||
| 4640 | (defvar sendmail-program) | 4640 | (defvar sendmail-program) |
| 4641 | (defvar smtpmail-smtp-server) | ||
| 4642 | (defvar smtpmail-smtp-service) | ||
| 4641 | (defvar smtpmail-smtp-user) | 4643 | (defvar smtpmail-smtp-user) |
| 4642 | 4644 | ||
| 4643 | (defun message-multi-smtp-send-mail () | 4645 | (defun message-multi-smtp-send-mail () |
| @@ -4817,6 +4819,8 @@ command evaluates `message-send-mail-hook' just before sending a message." | |||
| 4817 | (run-hooks 'message-send-mail-hook) | 4819 | (run-hooks 'message-send-mail-hook) |
| 4818 | (mailclient-send-it)) | 4820 | (mailclient-send-it)) |
| 4819 | 4821 | ||
| 4822 | (defvar sha1-maximum-internal-length) | ||
| 4823 | |||
| 4820 | (defun message-canlock-generate () | 4824 | (defun message-canlock-generate () |
| 4821 | "Return a string that is non-trivial to guess. | 4825 | "Return a string that is non-trivial to guess. |
| 4822 | Do not use this for anything important, it is cryptographically weak." | 4826 | Do not use this for anything important, it is cryptographically weak." |