]> code.delx.au - gnu-emacs-elpa/commitdiff
Quiet byte-compiler warnings
authorJohn Wiegley <johnw@newartisans.com>
Tue, 19 Jun 2012 02:56:26 +0000 (21:56 -0500)
committerJohn Wiegley <johnw@newartisans.com>
Tue, 19 Jun 2012 02:56:26 +0000 (21:56 -0500)
async.el
smtpmail-async.el

index 01865c017f4800e124a0b02d81eb766c7358e734..2c6707b6f9f285ab99cbc22e695ce39ac56133b9 100644 (file)
--- a/async.el
+++ b/async.el
@@ -68,7 +68,7 @@
   "Simple asynchronous processing in Emacs"
   :group 'emacs)
 
-(defvar async-callback)
+(defvar async-callback nil)
 (defvar async-callback-value nil)
 (defvar async-callback-value-set nil)
 
index 8d4ea804cb61c905ca26e6e6b4588df88f69e136..71f03e43d70de31cbeafbe669ac2ff74fad260fa 100644 (file)
 (require 'smtpmail)
 
 (defun async-smtpmail-send-it ()
-  (async-start
-   `(lambda ()
-      (require 'smtpmail)
-      (with-temp-buffer
-        (insert ,(buffer-substring-no-properties (point-min) (point-max)))
-        ;; Pass in the variable environment for smtpmail
-        (async-inject-environment "\\`\\(smtpmail\\|\\(user-\\)?mail\\)-")
-        (smtpmail-send-it)))
-   'ignore))
+  (macroexpand
+   '(async-start
+    `(lambda ()
+       (require 'smtpmail)
+       (with-temp-buffer
+         (insert ,(buffer-substring-no-properties (point-min) (point-max)))
+         ;; Pass in the variable environment for smtpmail
+         (async-inject-environment "\\`\\(smtpmail\\|\\(user-\\)?mail\\)-")
+         (smtpmail-send-it)))
+    'ignore)))
 
 (provide 'smtpmail-async)