annotate lisp/prim/cus-start.el @ 173:8eaf7971accc r20-3b13

Import from CVS: tag r20-3b13
author cvs
date Mon, 13 Aug 2007 09:49:09 +0200
parents 0132846995bd
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
1 ;;; cus-start.el --- define customization properties of builtins.
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
2 ;;
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
3 ;; Copyright (C) 1997 Free Software Foundation, Inc.
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
4 ;;
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
5 ;; Author: Per Abrahamsen <abraham@dina.kvl.dk>
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
6 ;; Keywords: internal
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
7
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 153
diff changeset
8 ;; This file is part of XEmacs.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 153
diff changeset
9
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 153
diff changeset
10 ;; XEmacs is free software; you can redistribute it and/or modify it
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 153
diff changeset
11 ;; under the terms of the GNU General Public License as published by
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 153
diff changeset
12 ;; the Free Software Foundation; either version 2, or (at your option)
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 153
diff changeset
13 ;; any later version.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 153
diff changeset
14
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 153
diff changeset
15 ;; XEmacs is distributed in the hope that it will be useful, but
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 153
diff changeset
16 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 153
diff changeset
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 153
diff changeset
18 ;; General Public License for more details.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 153
diff changeset
19
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 153
diff changeset
20 ;; You should have received a copy of the GNU General Public License
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 153
diff changeset
21 ;; along with XEmacs; see the file COPYING. If not, write to the Free
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 153
diff changeset
22 ;; Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 153
diff changeset
23 ;; 02111-1307, USA.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 153
diff changeset
24
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 163
diff changeset
25 ;;; Synched up with: Not synched with FSF.
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 153
diff changeset
26
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
27 ;;; Commentary:
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
28 ;;
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 163
diff changeset
29 ;; The following code is used to define the customization properties
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 163
diff changeset
30 ;; for builtin variables, and variables in the packages that are
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 163
diff changeset
31 ;; preloaded /very/ early, before custom.el itself (replace.el is such
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 163
diff changeset
32 ;; an example). The way it handles custom stuff is dirty, and should
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 163
diff changeset
33 ;; be regarded as a last resort. DO NOT add variables here, unless
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 163
diff changeset
34 ;; you know what you are doing.
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 163
diff changeset
35
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
36 ;; Must be run before the user has changed the value of any options!
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
37
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 163
diff changeset
38
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
39 ;;; Code:
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
40
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
41 (require 'custom)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
42
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
43 (defun custom-start-quote (sexp)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
44 ;; This is copied from `cus-edit.el'.
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
45 "Quote SEXP iff it is not self quoting."
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
46 (if (or (memq sexp '(t nil))
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
47 (and (symbolp sexp)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
48 (eq (aref (symbol-name sexp) 0) ?:))
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
49 (and (listp sexp)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
50 (memq (car sexp) '(lambda)))
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
51 (stringp sexp)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
52 (numberp sexp)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
53 (and (fboundp 'characterp)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
54 (characterp sexp)))
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
55 sexp
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
56 (list 'quote sexp)))
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
57
142
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
58 (let ((all '(;; boolean
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
59 (abbrev-all-caps abbrev boolean)
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
60 (allow-deletion-of-last-visible-frame frames boolean)
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
61 (debug-on-quit debug boolean)
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
62 (delete-auto-save-files auto-save boolean)
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
63 (delete-exited-processes processes-basics boolean)
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
64 (indent-tabs-mode editing-basics boolean)
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
65 (load-ignore-elc-files maint boolean)
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
66 (load-warn-when-source-newer maint boolean)
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
67 (load-warn-when-source-only maint boolean)
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
68 (modifier-keys-are-sticky keyboard boolean)
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
69 (no-redraw-on-reenter display boolean)
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
70 (scroll-on-clipped-lines display boolean)
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
71 (truncate-partial-width-windows display boolean)
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
72 (visible-bell sound boolean)
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
73 (x-allow-sendevents x boolean)
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
74 (zmacs-regions editing-basics boolean)
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
75 ;; integer
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
76 (auto-save-interval auto-save integer)
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
77 (bell-volume sound integer)
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
78 (echo-keystrokes keyboard integer)
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
79 (gc-cons-threshold alloc integer)
142
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
80 (next-screen-context-lines display integer)
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
81 (scroll-step windows integer)
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
82 (window-min-height windows integer)
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
83 (window-min-width windows integer)
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
84 ;; object
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
85 (auto-save-file-format auto-save
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
86 (choice (const :tag "Normal" t)
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
87 (repeat (symbol :tag "Format"))))
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
88 (completion-ignored-extensions minibuffer
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
89 (repeat
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
90 (string :format "%v")))
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 153
diff changeset
91 (debug-ignored-errors debug (repeat (choice :format "%v"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 153
diff changeset
92 (symbol :tag "Class")
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 153
diff changeset
93 regexp)))
142
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
94 (debug-on-error debug (choice (const :tag "off" nil)
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
95 (const :tag "Always" t)
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
96 (repeat :menu-tag "When"
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
97 :value (nil)
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
98 (symbol
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
99 :tag "Condition"))))
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
100 (debug-on-signal debug (choice (const :tag "off" nil)
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
101 (const :tag "Always" t)
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
102 (repeat :menu-tag "When"
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
103 :value (nil)
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
104 (symbol
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
105 :tag "Condition"))))
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
106 (exec-path processes-basics (repeat
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
107 (choice :tag "Directory"
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
108 (const :tag "Default" nil)
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
109 (directory :format "%v"))))
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
110 (file-name-handler-alist data (repeat
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
111 (cons regexp
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
112 (function :tag "Handler"))))
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
113 (shell-file-name execute file)
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
114 (stack-trace-on-error debug (choice (const :tag "off" nil)
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
115 (const :tag "Always" t)
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
116 (repeat :menu-tag "When"
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
117 :value (nil)
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
118 (symbol
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
119 :tag "Condition"))))
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
120 (stack-trace-on-signal debug (choice (const :tag "off" nil)
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
121 (const :tag "Always" t)
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
122 (repeat :menu-tag "When"
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
123 :value (nil)
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
124 (symbol
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
125 :tag "Condition"))))
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
126 ;; buffer-local
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
127 (case-fold-search matching boolean)
142
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
128 (ctl-arrow display (choice (integer 160)
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
129 (sexp :tag "160 (default)"
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
130 :format "%t\n")))
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
131 (fill-column fill integer)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
132 (left-margin fill integer)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
133 (tab-width editing-basics integer)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
134 (truncate-lines display boolean)
142
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
135 ;; not documented as user-options, but should still be
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
136 ;; customizable:
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 153
diff changeset
137 (bar-cursor display (choice (const :tag "Block Cursor" nil)
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 153
diff changeset
138 (const :tag "Bar Cursor (1 pixel)" t)
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 153
diff changeset
139 (sexp :tag "Bar Cursor (2 pixels)"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 153
diff changeset
140 :format "%t\n" 'other)))
142
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
141 (default-frame-plist frames (repeat
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
142 (list :inline t
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
143 :format "%v"
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
144 (symbol :tag "Parameter")
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
145 (sexp :tag "Value"))))
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 153
diff changeset
146 (disable-auto-save-when-buffer-shrinks auto-save boolean)
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 153
diff changeset
147 (find-file-compare-truenames find-file boolean)
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 153
diff changeset
148 (focus-follows-mouse x boolean)
142
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
149 (help-char keyboard character)
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
150 (max-lisp-eval-depth limits integer)
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
151 (max-specpdl-size limits integer)
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
152 (meta-prefix-char keyboard character)
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
153 (parse-sexp-ignore-comments editing-basics boolean)
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
154 (selective-display display
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
155 (choice (const :tag "off" nil)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
156 (integer :tag "space"
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
157 :format "%v"
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
158 1)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
159 (const :tag "on" t)))
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
160 (selective-display-ellipses display boolean)
142
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
161 (signal-error-on-buffer-boundary internal boolean)
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
162 (temp-buffer-show-function
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
163 windows (radio (function-item :tag "Temp Buffers Always in Same Frame"
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
164 :format "%t\n"
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
165 show-temp-buffer-in-current-frame)
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 124
diff changeset
166 (const :tag "Temp Buffers Like Other Buffers" nil)
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 153
diff changeset
167 (function :tag "Other")))
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 153
diff changeset
168 (undo-threshold undo integer)
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 153
diff changeset
169 (undo-high-threshold undo integer)
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 163
diff changeset
170 (words-include-escapes editing-basics boolean)
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 163
diff changeset
171 ;; These are from replace.el, which is loaded too early
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 163
diff changeset
172 ;; to be customizable.
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 163
diff changeset
173 (case-replace matching boolean)
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 163
diff changeset
174 (query-replace-highlight matching boolean)
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 163
diff changeset
175 (list-matching-lines-default-context-lines matching integer)))
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
176 this symbol group type)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
177 (while all
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
178 (setq this (car all)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
179 all (cdr all)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
180 symbol (nth 0 this)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
181 group (nth 1 this)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
182 type (nth 2 this))
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
183 (if (not (boundp symbol))
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
184 ;; This is loaded so early, there is no message
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
185 (if (fboundp 'message)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
186 ;; If variables are removed from C code, give an error here!
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
187 (message "Intrinsic `%S' not bound" symbol))
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
188 ;; This is called before any user can have changed the value.
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
189 (put symbol 'standard-value
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
190 (list (custom-start-quote (default-value symbol))))
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
191 ;; Add it to the right group.
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
192 (custom-add-to-group group symbol 'custom-variable)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
193 ;; Set the type.
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
194 (put symbol 'custom-type type))))
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
195
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
196 ;; This is to prevent it from being reloaded by `cus-load.el'.
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
197 (provide 'cus-start)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
198
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
199 ;;; cus-start.el ends here.