diff options
| author | Mark Oteiza | 2017-08-08 14:09:38 -0400 |
|---|---|---|
| committer | Mark Oteiza | 2017-08-08 14:15:51 -0400 |
| commit | 4cb0bdd675f0bc3adc130f1f3d037e4d51152396 (patch) | |
| tree | 3d03da2fd696ef65f958a1d4da05a622aec0d29b | |
| parent | 7d1115e0c792f79c9eb728bf9027053a5868ff23 (diff) | |
| download | emacs-4cb0bdd675f0bc3adc130f1f3d037e4d51152396.tar.gz emacs-4cb0bdd675f0bc3adc130f1f3d037e4d51152396.zip | |
Some cleanup in message.el
* lisp/gnus/message.el (message-cross-post-insert-note):
(message-strip-forbidden-properties): Mark unused args.
(message-canlock-generate): Remove extinct variable
sha1-maximum-internal-length.
(message-make-mail-followup-to): Use loop's thereis clause.
| -rw-r--r-- | lisp/gnus/message.el | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index 0f8fdfc9c7f..996b0ac5afc 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el | |||
| @@ -2325,7 +2325,7 @@ With prefix-argument just set Follow-Up, don't cross-post." | |||
| 2325 | (setq message-cross-post-old-target target-group)) | 2325 | (setq message-cross-post-old-target target-group)) |
| 2326 | 2326 | ||
| 2327 | (defun message-cross-post-insert-note (target-group cross-post in-old | 2327 | (defun message-cross-post-insert-note (target-group cross-post in-old |
| 2328 | old-groups) | 2328 | _old-groups) |
| 2329 | "Insert a in message body note about a set Followup or Crosspost. | 2329 | "Insert a in message body note about a set Followup or Crosspost. |
| 2330 | If there have been previous notes, delete them. TARGET-GROUP specifies the | 2330 | If there have been previous notes, delete them. TARGET-GROUP specifies the |
| 2331 | group to Followup-To. When CROSS-POST is t, insert note about | 2331 | group to Followup-To. When CROSS-POST is t, insert note about |
| @@ -2843,7 +2843,7 @@ These properties are essential to work, so we should never strip them." | |||
| 2843 | (eq message-mail-alias-type type) | 2843 | (eq message-mail-alias-type type) |
| 2844 | (memq type message-mail-alias-type))) | 2844 | (memq type message-mail-alias-type))) |
| 2845 | 2845 | ||
| 2846 | (defun message-strip-forbidden-properties (begin end &optional old-length) | 2846 | (defun message-strip-forbidden-properties (begin end &optional _old-length) |
| 2847 | "Strip forbidden properties between BEGIN and END, ignoring the third arg. | 2847 | "Strip forbidden properties between BEGIN and END, ignoring the third arg. |
| 2848 | This function is intended to be called from `after-change-functions'. | 2848 | This function is intended to be called from `after-change-functions'. |
| 2849 | See also `message-forbidden-properties'." | 2849 | See also `message-forbidden-properties'." |
| @@ -4842,17 +4842,13 @@ command evaluates `message-send-mail-hook' just before sending a message." | |||
| 4842 | (run-hooks 'message-send-mail-hook) | 4842 | (run-hooks 'message-send-mail-hook) |
| 4843 | (mailclient-send-it)) | 4843 | (mailclient-send-it)) |
| 4844 | 4844 | ||
| 4845 | (defvar sha1-maximum-internal-length) | ||
| 4846 | |||
| 4847 | (defun message-canlock-generate () | 4845 | (defun message-canlock-generate () |
| 4848 | "Return a string that is non-trivial to guess. | 4846 | "Return a string that is non-trivial to guess. |
| 4849 | Do not use this for anything important, it is cryptographically weak." | 4847 | Do not use this for anything important, it is cryptographically weak." |
| 4850 | (require 'sha1) | 4848 | (sha1 (concat (message-unique-id) |
| 4851 | (let (sha1-maximum-internal-length) | 4849 | (format "%x%x%x" (random) (random) (random)) |
| 4852 | (sha1 (concat (message-unique-id) | 4850 | (prin1-to-string (recent-keys)) |
| 4853 | (format "%x%x%x" (random) (random) (random)) | 4851 | (prin1-to-string (garbage-collect))))) |
| 4854 | (prin1-to-string (recent-keys)) | ||
| 4855 | (prin1-to-string (garbage-collect)))))) | ||
| 4856 | 4852 | ||
| 4857 | (defvar canlock-password) | 4853 | (defvar canlock-password) |
| 4858 | (defvar canlock-password-for-verify) | 4854 | (defvar canlock-password-for-verify) |
| @@ -5852,7 +5848,7 @@ subscribed address (and not the additional To and Cc header contents)." | |||
| 5852 | (let ((list | 5848 | (let ((list |
| 5853 | (loop for recipient in recipients | 5849 | (loop for recipient in recipients |
| 5854 | when (loop for regexp in mft-regexps | 5850 | when (loop for regexp in mft-regexps |
| 5855 | when (string-match regexp recipient) return t) | 5851 | thereis (string-match regexp recipient)) |
| 5856 | return recipient))) | 5852 | return recipient))) |
| 5857 | (when list | 5853 | (when list |
| 5858 | (if only-show-subscribed | 5854 | (if only-show-subscribed |