[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: send-mail-function initialized in ldefs-boot (using window-system)
From: |
Luc Teirlinck |
Subject: |
Re: send-mail-function initialized in ldefs-boot (using window-system) |
Date: |
Thu, 24 Nov 2005 11:50:39 -0600 (CST) |
David Reitter wrote:
The default value for send-mail-function is supposed to be different
depending on the system. This doesn't work, at least not on Darwin,
where it is supposed
Currently, we have (lisp/mail/sendmail.el):
;;;###autoload
(defcustom send-mail-function
(if (and window-system (memq system-type '(darwin windows-nt)))
'mailclient-send-it
'sendmail-send-it)
This is included in ldefs-boot.el / loaddefs.el and is loaded before
dumping.
At that time, window-system is nil, of course, and the default is set
prematurely.
I'm not sure what the right solution for this is.
One thing you could try is to add:
(custom-reevaluate-setting 'send-mail-function)
in startup.el, before the loading of the user's init file. (For
instance, right after the custom-reevaluate-setting for
file-shadow-mode will do.) `window-system' should be correctly defined
there.
Sincerely,
Luc.