]> git.eshelyaron.com Git - emacs.git/commitdiff
(send-mail-function): Autoload the standard-value.
authorLuc Teirlinck <teirllm@auburn.edu>
Wed, 28 Dec 2005 16:38:27 +0000 (16:38 +0000)
committerLuc Teirlinck <teirllm@auburn.edu>
Wed, 28 Dec 2005 16:38:27 +0000 (16:38 +0000)
lisp/mail/sendmail.el

index 40e678aa1303feb1d2014ec025c19aff7a7cc5c7..cf257a8876e8363f92696d84e83a0e29ef1532fc 100644 (file)
@@ -123,6 +123,15 @@ nil means let mailer mail back a message to report errors."
   :type 'regexp
   :group 'sendmail)
 
+;; Revent problems with `window-system' not having the correct value
+;; when loaddefs.el is loaded. `custom-reevaluate-setting' needs the
+;; standard value.
+;;;###autoload
+(put 'send-mail-function 'standard-value
+     '((if (and window-system (memq system-type '(darwin windows-nt)))
+          'mailclient-send-it
+        'sendmail-send-it)))
+
 ;; Useful to set in site-init.el
 ;;;###autoload
 (defcustom send-mail-function