emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 1ad2902 011/187: Quiet byte-compiler warnings


From: Michael Albinus
Subject: [elpa] master 1ad2902 011/187: Quiet byte-compiler warnings
Date: Wed, 30 Dec 2015 11:49:23 +0000

branch: master
commit 1ad2902ad86eea953394a685f859ad68fc4d3676
Author: John Wiegley <address@hidden>
Commit: John Wiegley <address@hidden>

    Quiet byte-compiler warnings
---
 async.el          |    2 +-
 smtpmail-async.el |   19 ++++++++++---------
 2 files changed, 11 insertions(+), 10 deletions(-)

diff --git a/async.el b/async.el
index 01865c0..2c6707b 100644
--- 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)
 
diff --git a/smtpmail-async.el b/smtpmail-async.el
index 8d4ea80..71f03e4 100644
--- a/smtpmail-async.el
+++ b/smtpmail-async.el
@@ -42,15 +42,16 @@
 (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)
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]