changeset 59169:5ba3e8b1f040

(site-run-file): Don't allow setting it with Custom.
author Richard M. Stallman <rms@gnu.org>
date Tue, 28 Dec 2004 15:30:39 +0000
parents 0345f2b10f1d
children 7b050423ba52
files lisp/startup.el
diffstat 1 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/startup.el	Tue Dec 28 14:50:49 2004 +0000
+++ b/lisp/startup.el	Tue Dec 28 15:30:39 2004 +0000
@@ -229,9 +229,17 @@
 override them.  Users can prevent loading `default.el' with the `-q'
 option or by setting `inhibit-default-init' in their own init files,
 but inhibiting `site-start.el' requires `--no-site-file', which
-is less convenient."
+is less convenient.
+
+This variable is defined for customization so as to make
+it visible in the relevant context.  However, actually customizing it
+is not allowed, since it would not work anyway.  The only way to set
+this variable usefully is to set it during while building and dumping Emacs."
   :type '(choice (const :tag "none" nil) string)
-  :group 'initialization)
+  :group 'initialization
+  :initialize 'custom-initialize-default
+  :set '(lambda (variable value)
+	  (error "Customizing `site-run-file' does not work")))
 
 (defcustom mail-host-address nil
   "*Name of this machine, for purposes of naming users."