aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schwab2011-07-08 19:02:01 +0200
committerAndreas Schwab2011-07-08 19:02:01 +0200
commitf042cfd86a8dadc9fa559f102213de09a019c527 (patch)
tree5ad9e8d7f80cf18a142211e2e3fcf7804d556cdc
parent3fe4b54936ae48b8d30458bb9cac2912a9ecc09a (diff)
downloademacs-f042cfd86a8dadc9fa559f102213de09a019c527.tar.gz
emacs-f042cfd86a8dadc9fa559f102213de09a019c527.zip
* lisp/mail/sendmail.el (send-mail-function): No longer delay custom
initialization. * lisp/custom.el (custom-initialize-delay): Doc fix.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/custom.el6
-rw-r--r--lisp/mail/sendmail.el11
3 files changed, 10 insertions, 13 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 4a9dd27b840..729013ba54c 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12011-07-08 Andreas Schwab <schwab@linux-m68k.org>
2
3 * mail/sendmail.el (send-mail-function): No longer delay custom
4 initialization.
5 * custom.el (custom-initialize-delay): Doc fix.
6
12011-07-08 Stefan Monnier <monnier@iro.umontreal.ca> 72011-07-08 Stefan Monnier <monnier@iro.umontreal.ca>
2 8
3 * abbrev.el (expand-abbrev): Try to preserve point (bug#5805). 9 * abbrev.el (expand-abbrev): Try to preserve point (bug#5805).
diff --git a/lisp/custom.el b/lisp/custom.el
index a5c0065036a..4f69c741468 100644
--- a/lisp/custom.el
+++ b/lisp/custom.el
@@ -120,8 +120,10 @@ the :set function.
120For variables in preloaded files, you can simply use this 120For variables in preloaded files, you can simply use this
121function for the :initialize property. For autoloaded variables, 121function for the :initialize property. For autoloaded variables,
122you will also need to add an autoload stanza calling this 122you will also need to add an autoload stanza calling this
123function, and another one setting the standard-value property. 123function, and another one setting the standard-value property."
124See `send-mail-function' in sendmail.el for an example." 124 ;; No longer true:
125 ;; "See `send-mail-function' in sendmail.el for an example."
126
125 ;; Until the var is actually initialized, it is kept unbound. 127 ;; Until the var is actually initialized, it is kept unbound.
126 ;; This seemed to be at least as good as setting it to an arbitrary 128 ;; This seemed to be at least as good as setting it to an arbitrary
127 ;; value like nil (evaluating `value' is not an option because it 129 ;; value like nil (evaluating `value' is not an option because it
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el
index b14c7e50137..5ffc834f533 100644
--- a/lisp/mail/sendmail.el
+++ b/lisp/mail/sendmail.el
@@ -138,14 +138,6 @@ Otherwise, let mailer send back a message to report errors."
138 :group 'sendmail 138 :group 'sendmail
139 :version "23.1") 139 :version "23.1")
140 140
141;; Prevent problems with `window-system' not having the correct value
142;; when loaddefs.el is loaded. `custom-reevaluate-setting' needs the
143;; standard value.
144;;;###autoload
145(put 'send-mail-function 'standard-value
146 ;; MS-Windows can access the clipboard even under -nw.
147 '('sendmail-query-once))
148
149;; Useful to set in site-init.el 141;; Useful to set in site-init.el
150;;;###autoload 142;;;###autoload
151(defcustom send-mail-function 'sendmail-query-once 143(defcustom send-mail-function 'sendmail-query-once
@@ -161,7 +153,6 @@ This is used by the default mail-sending commands. See also
161 (function-item feedmail-send-it :tag "Use Feedmail package") 153 (function-item feedmail-send-it :tag "Use Feedmail package")
162 (function-item mailclient-send-it :tag "Use Mailclient package") 154 (function-item mailclient-send-it :tag "Use Mailclient package")
163 function) 155 function)
164 :initialize 'custom-initialize-delay
165 :version "24.1" 156 :version "24.1"
166 :group 'sendmail) 157 :group 'sendmail)
167 158
@@ -212,8 +203,6 @@ function to use, and then save that choice."
212 (setq sendmail-query-once-function function)))) 203 (setq sendmail-query-once-function function))))
213 (funcall sendmail-query-once-function)) 204 (funcall sendmail-query-once-function))
214 205
215;;;###autoload(custom-initialize-delay 'send-mail-function nil)
216
217;;;###autoload 206;;;###autoload
218(defcustom mail-header-separator (purecopy "--text follows this line--") 207(defcustom mail-header-separator (purecopy "--text follows this line--")
219 "Line used to separate headers from text in messages being composed." 208 "Line used to separate headers from text in messages being composed."