* font.c (clear_font_cache): New function, stripped from...
[emacs.git] / lisp / cus-start.el
blob24f8ac3bade33f563dfdd4b028f012899f4dd564
1 ;;; cus-start.el --- define customization properties of builtins
3 ;; Copyright (C) 1997, 1999-2013 Free Software Foundation, Inc.
5 ;; Author: Per Abrahamsen <abraham@dina.kvl.dk>
6 ;; Keywords: internal
7 ;; Package: emacs
9 ;; This file is part of GNU Emacs.
11 ;; GNU Emacs is free software: you can redistribute it and/or modify
12 ;; it under the terms of the GNU General Public License as published by
13 ;; the Free Software Foundation, either version 3 of the License, or
14 ;; (at your option) any later version.
16 ;; GNU Emacs is distributed in the hope that it will be useful,
17 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 ;; GNU General Public License for more details.
21 ;; You should have received a copy of the GNU General Public License
22 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
24 ;;; Commentary:
26 ;; This file adds customize support for built-in variables.
28 ;; While dumping Emacs, this file is loaded, but it only records
29 ;; the standard values; it does not do the rest of the job.
30 ;; Later on, if the user makes a customization buffer,
31 ;; this file is loaded again with (require 'cus-start);
32 ;; then it does the whole job.
34 ;;; Code:
36 ;; Elements of this list have the form:
37 ;; SYMBOL GROUP TYPE VERSION REST...
38 ;; SYMBOL is the name of the variable.
39 ;; GROUP is the custom group to which it belongs (may also be a list
40 ;; of groups)
41 ;; TYPE is the defcustom :type.
42 ;; VERSION is the defcustom :version (or nil).
43 ;; REST is a set of :KEYWORD VALUE pairs. Accepted :KEYWORDs are:
44 ;; :standard - standard value for SYMBOL (else use current value)
45 ;; :set - custom-set property
46 ;; :risky - risky-local-variable property
47 ;; :safe - safe-local-variable property
48 ;; :tag - custom-tag property
49 (let ((all '(;; alloc.c
50 (gc-cons-threshold alloc integer)
51 (gc-cons-percentage alloc float)
52 (garbage-collection-messages alloc boolean)
53 ;; buffer.c
54 (cursor-type
55 display
56 (choice
57 (const :tag "Frame default" t)
58 (const :tag "Filled box" box)
59 (const :tag "Hollow cursor" hollow)
60 (const :tag "Vertical bar" bar)
61 (cons :tag "Vertical bar with specified width"
62 (const bar) integer)
63 (const :tag "Horizontal bar" hbar)
64 (cons :tag "Horizontal bar with specified width"
65 (const hbar) integer)
66 (const :tag "None "nil)))
67 (mode-line-format mode-line sexp) ;Hard to do right.
68 (major-mode internal function)
69 (case-fold-search matching boolean)
70 (fill-column fill integer)
71 (left-margin fill integer)
72 (tab-width editing-basics integer)
73 (ctl-arrow display boolean)
74 (truncate-lines display boolean)
75 (word-wrap display boolean)
76 (selective-display-ellipses display boolean)
77 (indicate-empty-lines fringe boolean)
78 (indicate-buffer-boundaries
79 fringe
80 (choice
81 (const :tag "No indicators" nil)
82 (const :tag "On left, with arrows" left)
83 (const :tag "On right, with arrows" right)
84 (set :tag "Pick your own design"
85 :value ((t . nil))
86 :format "%{%t%}:\n%v\n%d"
87 :doc "You can specify a default and then override it \
88 for individual indicators.
89 Leaving \"Default\" unchecked is equivalent with specifying a default of
90 \"Do not show\"."
91 (choice :tag "Default"
92 :value (t . nil)
93 (const :tag "Do not show" (t . nil))
94 (const :tag "On the left" (t . left))
95 (const :tag "On the right" (t . right)))
96 (choice :tag "Top"
97 :value (top . left)
98 (const :tag "Do not show" (top . nil))
99 (const :tag "On the left" (top . left))
100 (const :tag "On the right" (top . right)))
101 (choice :tag "Bottom"
102 :value (bottom . left)
103 (const :tag "Do not show" (bottom . nil))
104 (const :tag "On the left" (bottom . left))
105 (const :tag "On the right" (bottom . right)))
106 (choice :tag "Up arrow"
107 :value (up . left)
108 (const :tag "Do not show" (up . nil))
109 (const :tag "On the left" (up . left))
110 (const :tag "On the right" (up . right)))
111 (choice :tag "Down arrow"
112 :value (down . left)
113 (const :tag "Do not show" (down . nil))
114 (const :tag "On the left" (down . left))
115 (const :tag "On the right" (down . right))))
116 (other :tag "On left, no arrows" t)))
117 (scroll-up-aggressively windows
118 (choice (const :tag "off" nil) float)
119 "21.1")
120 (scroll-down-aggressively windows
121 (choice (const :tag "off" nil) float)
122 "21.1")
123 (line-spacing display (choice (const :tag "none" nil) number)
124 "22.1")
125 (cursor-in-non-selected-windows
126 cursor boolean nil
127 :tag "Cursor In Non-selected Windows"
128 :set (lambda (symbol value)
129 (set-default symbol value)
130 (force-mode-line-update t)))
131 (transient-mark-mode editing-basics boolean nil
132 :standard (not noninteractive)
133 :initialize custom-initialize-delay
134 :set custom-set-minor-mode)
135 (bidi-paragraph-direction
136 paragraphs
137 (choice
138 (const :tag "Left to Right" left-to-right)
139 (const :tag "Right to Left" right-to-left)
140 (const :tag "Dynamic, according to paragraph text" nil))
141 "24.1")
142 ;; callint.c
143 (mark-even-if-inactive editing-basics boolean)
144 ;; callproc.c
145 (shell-file-name execute file)
146 (exec-path execute
147 (repeat (choice (const :tag "default directory" nil)
148 (directory :format "%v"))))
149 (exec-suffixes execute (repeat string))
150 ;; charset.c
151 (charset-map-path installation
152 (repeat (directory :format "%v")))
153 ;; coding.c
154 (inhibit-eol-conversion mule boolean)
155 (eol-mnemonic-undecided mule string)
156 ;; startup.el fiddles with the values. IMO, would be
157 ;; simpler to just use #ifdefs in coding.c.
158 (eol-mnemonic-unix mule string nil
159 :standard
160 (if (memq system-type '(ms-dos windows-nt))
161 "(Unix)" ":"))
162 (eol-mnemonic-dos mule string nil
163 :standard
164 (if (memq system-type '(ms-dos windows-nt))
165 "\\" "(DOS)"))
166 (eol-mnemonic-mac mule string nil
167 :standard "(Mac)")
168 (file-coding-system-alist
169 mule
170 (alist
171 :key-type (regexp :tag "File regexp")
172 :value-type (choice
173 :value (undecided . undecided)
174 (cons :tag "Encoding/decoding pair"
175 :value (undecided . undecided)
176 (coding-system :tag "Decoding")
177 (coding-system :tag "Encoding"))
178 (coding-system
179 :tag "Single coding system"
180 :value undecided
181 :match (lambda (widget value)
182 (and value (not (functionp value)))))
183 (function :value ignore))))
184 ;; dired.c
185 (completion-ignored-extensions dired
186 (repeat (string :format "%v")))
187 ;; dispnew.c
188 (baud-rate display integer)
189 (inverse-video display boolean)
190 (visible-bell display boolean)
191 (no-redraw-on-reenter display boolean)
193 ;; dosfns.c
194 (dos-display-scancodes display boolean)
195 (dos-hyper-key keyboard integer)
196 (dos-super-key keyboard integer)
197 (dos-keypad-mode keyboard integer)
199 ;; editfns.c
200 (user-full-name mail string)
201 ;; eval.c
202 (max-specpdl-size limits integer)
203 (max-lisp-eval-depth limits integer)
204 (max-mini-window-height limits
205 (choice (const :tag "quarter screen" nil)
206 number) "23.1")
207 (debug-on-error debug
208 (choice (const :tag "off")
209 (repeat :menu-tag "When"
210 :value (nil)
211 (symbol :format "%v"))
212 (const :tag "always" t)))
213 (debug-ignored-errors debug (repeat (choice symbol regexp)))
214 (debug-on-quit debug boolean)
215 (debug-on-signal debug boolean)
216 ;; fileio.c
217 (delete-by-moving-to-trash auto-save boolean "23.1")
218 (auto-save-visited-file-name auto-save boolean)
219 ;; filelock.c
220 (create-lockfiles files boolean "24.3")
221 (temporary-file-directory
222 ;; Darwin section added 24.1, does not seem worth :version bump.
223 files directory nil
224 :standard
225 (file-name-as-directory
226 ;; FIXME ? Should there be Ftemporary_file_directory to do this
227 ;; more robustly (cf set_local_socket in emacsclient.c).
228 ;; It could be used elsewhere, eg Fcall_process_region,
229 ;; server-socket-dir. See bug#7135.
230 (cond ((memq system-type '(ms-dos windows-nt))
231 (or (getenv "TEMP") (getenv "TMPDIR") (getenv "TMP")
232 "c:/temp"))
233 ((eq system-type 'darwin)
234 (or (getenv "TMPDIR") (getenv "TMP") (getenv "TEMP")
235 ;; See bug#7135.
236 (let ((tmp (ignore-errors
237 (shell-command-to-string
238 "getconf DARWIN_USER_TEMP_DIR"))))
239 (and (stringp tmp)
240 (setq tmp (replace-regexp-in-string
241 "\n\\'" "" tmp))
242 ;; Handles "getconf: Unrecognized variable..."
243 (file-directory-p tmp)
244 tmp))
245 "/tmp"))
247 (or (getenv "TMPDIR") (getenv "TMP") (getenv "TEMP")
248 "/tmp"))))
249 :initialize custom-initialize-delay)
250 ;; fns.c
251 (use-dialog-box menu boolean "21.1")
252 (use-file-dialog menu boolean "22.1")
253 (focus-follows-mouse frames boolean "20.3")
254 ;; fontset.c
255 ;; FIXME nil is the initial value, fontset.el setqs it.
256 (vertical-centering-font-regexp display
257 (choice (const nil) regexp))
258 ;; frame.c
259 (default-frame-alist frames
260 (repeat (cons :format "%v"
261 (symbol :tag "Parameter")
262 (sexp :tag "Value"))))
263 (mouse-highlight mouse (choice (const :tag "disabled" nil)
264 (const :tag "always shown" t)
265 (other :tag "hidden by keypress" 1))
266 "22.1")
267 (make-pointer-invisible mouse boolean "23.2")
268 (menu-bar-mode frames boolean nil
269 ;; FIXME?
270 ; :initialize custom-initialize-default
271 :set custom-set-minor-mode)
272 (tool-bar-mode (frames mouse) boolean nil
273 ; :initialize custom-initialize-default
274 :set custom-set-minor-mode)
275 ;; fringe.c
276 (overflow-newline-into-fringe fringe boolean)
277 ;; image.c
278 (imagemagick-render-type image integer "24.1")
279 ;; indent.c
280 (indent-tabs-mode indent boolean)
281 ;; keyboard.c
282 (meta-prefix-char keyboard character)
283 (auto-save-interval auto-save integer)
284 (auto-save-timeout auto-save (choice (const :tag "off" nil)
285 (integer :format "%v")))
286 (echo-keystrokes minibuffer number)
287 (polling-period keyboard integer)
288 (double-click-time mouse (restricted-sexp
289 :match-alternatives (integerp 'nil 't)))
290 (double-click-fuzz mouse integer "22.1")
291 (help-char keyboard character)
292 (help-event-list keyboard (repeat (sexp :format "%v")))
293 (menu-prompting menu boolean)
294 (select-active-regions killing
295 (choice (const :tag "always" t)
296 (const :tag "only shift-selection or mouse-drag" only)
297 (const :tag "off" nil))
298 "24.1")
299 (debug-on-event debug
300 (choice (const :tag "None" nil)
301 (const :tag "When sent SIGUSR1" sigusr1)
302 (const :tag "When sent SIGUSR2" sigusr2))
303 "24.1")
305 ;; This is not good news because it will use the wrong
306 ;; version-specific directories when you upgrade. We need
307 ;; customization of the front of the list, maintaining the
308 ;; standard value intact at the back.
309 ;;(load-path environment
310 ;; (repeat (choice :tag "[Current dir?]"
311 ;; :format "%[Current dir?%] %v"
312 ;; (const :tag " current dir" nil)
313 ;; (directory :format "%v"))))
314 ;; minibuf.c
315 (enable-recursive-minibuffers minibuffer boolean)
316 (history-length minibuffer
317 (choice (const :tag "Infinite" t) integer)
318 "22.1")
319 (history-delete-duplicates minibuffer boolean "22.1")
320 (read-buffer-completion-ignore-case minibuffer boolean "23.1")
322 (minibuffer-prompt-properties
323 minibuffer
324 (list
325 (checklist :inline t
326 (const :tag "Read-Only"
327 :doc "Prevent prompt from being modified"
328 :format "%t%n%h"
329 :inline t
330 (read-only t))
331 (const :tag "Don't Enter"
332 :doc "Prevent point from ever entering prompt"
333 :format "%t%n%h"
334 :inline t
335 (point-entered minibuffer-avoid-prompt)))
336 (repeat :inline t
337 :tag "Other Properties"
338 (list :inline t
339 :format "%v"
340 (symbol :tag "Property")
341 (sexp :tag "Value"))))
342 "21.1")
343 (minibuffer-auto-raise minibuffer boolean)
344 ;; options property set at end
345 (read-buffer-function minibuffer
346 (choice (const nil)
347 (function-item iswitchb-read-buffer)
348 function))
349 ;; msdos.c
350 (dos-unsupported-char-glyph display integer)
351 ;; nsterm.m
352 (ns-control-modifier
354 (choice (const :tag "No modifier" nil)
355 (const control) (const meta)
356 (const alt) (const hyper)
357 (const super)) "23.1")
358 (ns-right-control-modifier
360 (choice (const :tag "No modifier (work as control)" none)
361 (const :tag "Use the value of ns-control-modifier"
362 left)
363 (const control) (const meta)
364 (const alt) (const hyper)
365 (const super)) "24.0")
366 (ns-command-modifier
368 (choice (const :tag "No modifier" nil)
369 (const control) (const meta)
370 (const alt) (const hyper)
371 (const super)) "23.1")
372 (ns-right-command-modifier
374 (choice (const :tag "No modifier (work as command)" none)
375 (const :tag "Use the value of ns-command-modifier"
376 left)
377 (const control) (const meta)
378 (const alt) (const hyper)
379 (const super)) "24.0")
380 (ns-alternate-modifier
382 (choice (const :tag "No modifier (work as alternate/option)" none)
383 (const control) (const meta)
384 (const alt) (const hyper)
385 (const super)) "23.1")
386 (ns-right-alternate-modifier
388 (choice (const :tag "No modifier (work as alternate/option)" none)
389 (const :tag "Use the value of ns-alternate-modifier"
390 left)
391 (const control) (const meta)
392 (const alt) (const hyper)
393 (const super)) "23.3")
394 (ns-function-modifier
396 (choice (const :tag "No modifier (work as function)" none)
397 (const control) (const meta)
398 (const alt) (const hyper)
399 (const super)) "23.1")
400 (ns-antialias-text ns boolean "23.1")
401 (ns-auto-hide-menu-bar ns boolean "24.0")
402 (ns-use-native-fullscreen ns boolean "24.4")
403 ;; process.c
404 (delete-exited-processes processes-basics boolean)
405 ;; syntax.c
406 (parse-sexp-ignore-comments editing-basics boolean)
407 (words-include-escapes editing-basics boolean)
408 (open-paren-in-column-0-is-defun-start editing-basics boolean
409 "21.1")
410 ;; term.c
411 (visible-cursor cursor boolean "22.1")
412 ;; undo.c
413 (undo-limit undo integer)
414 (undo-strong-limit undo integer)
415 (undo-outer-limit undo
416 (choice integer
417 (const :tag "No limit"
418 :format "%t\n%d"
419 :doc
420 "With this choice, \
421 the undo info for the current command never gets discarded.
422 This should only be chosen under exceptional circumstances,
423 since it could result in memory overflow and make Emacs crash."
424 nil))
425 "22.1")
426 ;; window.c
427 (temp-buffer-show-function windows (choice (const nil) function))
428 (next-screen-context-lines windows integer)
429 (scroll-preserve-screen-position
430 windows (choice
431 (const :tag "Off (nil)" :value nil)
432 (const :tag "Full screen (t)" :value t)
433 (other :tag "Always" 1)) "22.1")
434 (recenter-redisplay
435 windows (choice
436 (const :tag "Never (nil)" :value nil)
437 (const :tag "Only on ttys" :value tty)
438 (other :tag "Always" t)) "23.1")
439 (window-combination-resize windows boolean "24.1")
440 (window-combination-limit
441 windows (choice
442 (const :tag "Never (nil)" :value nil)
443 (const :tag "For Temp Buffer Resize mode (temp-buffer-resize)"
444 :value temp-buffer-resize)
445 (const :tag "For temporary buffers (temp-buffer)"
446 :value temp-buffer)
447 (const :tag "For buffer display (display-buffer)"
448 :value display-buffer)
449 (other :tag "Always (t)" :value t))
450 "24.3")
451 ;; xdisp.c
452 ;; The whitespace group is for whitespace.el.
453 (show-trailing-whitespace editing-basics boolean nil
454 :safe booleanp)
455 (scroll-step windows integer)
456 (scroll-conservatively windows integer)
457 (scroll-margin windows integer)
458 (hscroll-margin windows integer "22.1")
459 (hscroll-step windows number "22.1")
460 (truncate-partial-width-windows
461 display
462 (choice (integer :tag "Truncate if narrower than")
463 (const :tag "Respect `truncate-lines'" nil)
464 (other :tag "Truncate if not full-width" t))
465 "23.1")
466 (make-cursor-line-fully-visible windows boolean)
467 (mode-line-in-non-selected-windows mode-line boolean "22.1")
468 (line-number-display-limit display
469 (choice integer
470 (const :tag "No limit" nil)))
471 (line-number-display-limit-width display integer "22.1")
472 (highlight-nonselected-windows display boolean)
473 (message-log-max debug (choice (const :tag "Disable" nil)
474 (integer :menu-tag "lines"
475 :format "%v")
476 (other :tag "Unlimited" t))
477 "24.3")
478 (unibyte-display-via-language-environment mule boolean)
479 (blink-cursor-alist cursor alist "22.1")
480 (overline-margin display integer "22.1")
481 (underline-minimum-offset display integer "23.1")
482 (mouse-autoselect-window
483 display (choice
484 (const :tag "Off (nil)" :value nil)
485 (const :tag "Immediate" :value t)
486 (number :tag "Delay by secs" :value 0.5)) "22.1")
487 (tool-bar-style
488 frames (choice
489 (const :tag "Images" :value image)
490 (const :tag "Text" :value text)
491 (const :tag "Both" :value both)
492 (const :tag "Both-horiz" :value both-horiz)
493 (const :tag "Text-image-horiz" :value text-image-horiz)
494 (const :tag "System default" :value nil)) "24.1")
495 (tool-bar-max-label-size frames integer "24.1")
496 (auto-hscroll-mode scrolling boolean "21.1")
497 (void-text-area-pointer cursor
498 (choice
499 (const :tag "Standard (text pointer)" :value nil)
500 (const :tag "Arrow" :value arrow)
501 (const :tag "Text pointer" :value text)
502 (const :tag "Hand" :value hand)
503 (const :tag "Vertical dragger" :value vdrag)
504 (const :tag "Horizontal dragger" :value hdrag)
505 (const :tag "Same as mode line" :value modeline)
506 (const :tag "Hourglass" :value hourglass)))
507 (display-hourglass cursor boolean)
508 (hourglass-delay cursor number)
510 ;; xfaces.c
511 (scalable-fonts-allowed display boolean "22.1")
512 ;; xfns.c
513 (x-bitmap-file-path installation
514 (repeat (directory :format "%v")))
515 (x-gtk-use-old-file-dialog menu boolean "22.1")
516 (x-gtk-show-hidden-files menu boolean "22.1")
517 (x-gtk-file-dialog-help-text menu boolean "22.1")
518 (x-gtk-whole-detached-tool-bar x boolean "22.1")
519 (x-gtk-use-system-tooltips tooltip boolean "23.3")
520 ;; xterm.c
521 (x-use-underline-position-properties display boolean "22.1")
522 (x-underline-at-descent-line display boolean "22.1")
523 (x-stretch-cursor display boolean "21.1")
524 (scroll-bar-adjust-thumb-portion windows boolean "24.4")
525 ;; xselect.c
526 (x-select-enable-clipboard-manager killing boolean "24.1")
527 ;; xsettings.c
528 (font-use-system-font font-selection boolean "23.2")))
529 this symbol group type standard version native-p rest prop propval
530 ;; This function turns a value
531 ;; into an expression which produces that value.
532 (quoter (lambda (sexp)
533 (if (or (memq sexp '(t nil))
534 (keywordp sexp)
535 (and (listp sexp)
536 (memq (car sexp) '(lambda)))
537 (stringp sexp)
538 (numberp sexp))
539 sexp
540 (list 'quote sexp)))))
541 (while all
542 (setq this (car all)
543 all (cdr all)
544 symbol (nth 0 this)
545 group (nth 1 this)
546 type (nth 2 this)
547 version (nth 3 this)
548 rest (nthcdr 4 this)
549 ;; If we did not specify any standard value expression above,
550 ;; use the current value as the standard value.
551 standard (if (setq prop (memq :standard rest))
552 (cadr prop)
553 (if (default-boundp symbol)
554 (funcall quoter (default-value symbol))))
555 ;; Don't complain about missing variables which are
556 ;; irrelevant to this platform.
557 native-p (save-match-data
558 (cond
559 ((string-match "\\`dos-" (symbol-name symbol))
560 (eq system-type 'ms-dos))
561 ((string-match "\\`w32-" (symbol-name symbol))
562 (eq system-type 'windows-nt))
563 ((string-match "\\`ns-" (symbol-name symbol))
564 (featurep 'ns))
565 ((string-match "\\`x-.*gtk" (symbol-name symbol))
566 (featurep 'gtk))
567 ((string-match "clipboard-manager" (symbol-name symbol))
568 (boundp 'x-select-enable-clipboard-manager))
569 ((string-match "\\`x-" (symbol-name symbol))
570 (fboundp 'x-create-frame))
571 ((string-match "selection" (symbol-name symbol))
572 (fboundp 'x-selection-exists-p))
573 ((string-match "fringe" (symbol-name symbol))
574 (fboundp 'define-fringe-bitmap))
575 ((string-match "\\`imagemagick" (symbol-name symbol))
576 (fboundp 'imagemagick-types))
577 ((equal "font-use-system-font" (symbol-name symbol))
578 (featurep 'system-font-setting))
579 ;; Conditioned on x-create-frame, because that's
580 ;; the condition for loadup.el to preload tool-bar.el.
581 ((string-match "tool-bar-" (symbol-name symbol))
582 (fboundp 'x-create-frame))
583 ((equal "vertical-centering-font-regexp"
584 (symbol-name symbol))
585 ;; Any function from fontset.c will do.
586 (fboundp 'new-fontset))
587 ((equal "scroll-bar-adjust-thumb-portion"
588 (symbol-name symbol))
589 (featurep 'x))
590 (t t))))
591 (if (not (boundp symbol))
592 ;; If variables are removed from C code, give an error here!
593 (and native-p
594 (message "Note, built-in variable `%S' not bound" symbol))
595 ;; Save the standard value, unless we already did.
596 (or (get symbol 'standard-value)
597 (put symbol 'standard-value (list standard)))
598 ;; We need these properties independent of whether cus-start is loaded.
599 (if (setq prop (memq :safe rest))
600 (put symbol 'safe-local-variable (cadr prop)))
601 (if (setq prop (memq :risky rest))
602 (put symbol 'risky-local-variable (cadr prop)))
603 (if (setq prop (memq :set rest))
604 (put symbol 'custom-set (cadr prop)))
605 ;; Note this is the _only_ initialize property we handle.
606 (if (eq (cadr (memq :initialize rest)) 'custom-initialize-delay)
607 (push symbol custom-delayed-init-variables))
608 ;; If this is NOT while dumping Emacs, set up the rest of the
609 ;; customization info. This is the stuff that is not needed
610 ;; until someone does M-x customize etc.
611 (unless purify-flag
612 ;; Add it to the right group(s).
613 (if (listp group)
614 (dolist (g group)
615 (custom-add-to-group g symbol 'custom-variable))
616 (custom-add-to-group group symbol 'custom-variable))
617 ;; Set the type.
618 (put symbol 'custom-type type)
619 (if version (put symbol 'custom-version version))
620 (while rest
621 (setq prop (car rest)
622 propval (cadr rest)
623 rest (nthcdr 2 rest))
624 (cond ((memq prop '(:standard :risky :safe :set))) ; handled above
625 ((eq prop :tag)
626 (put symbol 'custom-tag propval))))))))
628 (custom-add-to-group 'iswitchb 'read-buffer-function 'custom-variable)
629 (custom-add-to-group 'font-lock 'open-paren-in-column-0-is-defun-start
630 'custom-variable)
632 ;; Record cus-start as loaded if we have set up all the info that we can.
633 ;; Don't record it as loaded if we have only set up the standard values
634 ;; and safe/risky properties.
635 (unless purify-flag
636 (provide 'cus-start))
638 ;;; cus-start.el ends here