1 ;;; cus-start.el --- define customization properties of builtins -*- lexical-binding:t -*-
3 ;; Copyright (C) 1997, 1999-2017 Free Software Foundation, Inc.
5 ;; Author: Per Abrahamsen <abraham@dina.kvl.dk>
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 <https://www.gnu.org/licenses/>.
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.
36 (defun minibuffer-prompt-properties--setter (symbol value
)
37 (set-default symbol value
)
38 (if (memq 'cursor-intangible value
)
39 (add-hook 'minibuffer-setup-hook
'cursor-intangible-mode
)
40 ;; Removing it is a bit trickier since it could have been added by someone
41 ;; else as well, so let's just not bother.
44 ;; Elements of this list have the form:
45 ;; SYMBOL GROUP TYPE VERSION REST...
46 ;; SYMBOL is the name of the variable.
47 ;; GROUP is the custom group to which it belongs (may also be a list
49 ;; TYPE is the defcustom :type.
50 ;; VERSION is the defcustom :version (or nil).
51 ;; REST is a set of :KEYWORD VALUE pairs. Accepted :KEYWORDs are:
52 ;; :standard - standard value for SYMBOL (else use current value)
53 ;; :set - custom-set property
54 ;; :risky - risky-local-variable property
55 ;; :safe - safe-local-variable property
56 ;; :tag - custom-tag property
59 ;; This function turns a value
60 ;; into an expression which produces that value.
61 (quoter (lambda (sexp)
62 ;; FIXME: We'd like to use macroexp-quote here, but cus-start
63 ;; is loaded too early in loadup.el for that.
64 (if (or (memq sexp
'(t nil
))
67 (memq (car sexp
) '(lambda)))
74 (const :tag
"Frame default" t
)
75 (const :tag
"Filled box" box
)
76 (const :tag
"Hollow cursor" hollow
)
77 (const :tag
"Vertical bar" bar
)
78 (cons :tag
"Vertical bar with specified width"
80 (const :tag
"Horizontal bar" hbar
)
81 (cons :tag
"Horizontal bar with specified width"
83 (const :tag
"None "nil
))))
85 (`(,symbol
,group
,type
,version .
,rest
)
87 (gc-cons-threshold alloc integer
)
88 (gc-cons-percentage alloc float
)
89 (garbage-collection-messages alloc boolean
)
91 (cursor-type display
,cursor-type-types
)
92 (mode-line-format mode-line sexp
) ;Hard to do right.
93 (major-mode internal function
)
94 (case-fold-search matching boolean
)
95 (fill-column fill integer
)
96 (left-margin fill integer
)
97 (tab-width editing-basics integer
)
98 (ctl-arrow display boolean
)
99 (truncate-lines display boolean
)
100 (word-wrap display boolean
)
101 (selective-display-ellipses display boolean
)
102 (indicate-empty-lines fringe boolean
)
103 (indicate-buffer-boundaries
106 (const :tag
"No indicators" nil
)
107 (const :tag
"On left, with arrows" left
)
108 (const :tag
"On right, with arrows" right
)
109 (set :tag
"Pick your own design"
111 :format
"%{%t%}:\n%v\n%d"
112 :doc
"You can specify a default and then override it \
113 for individual indicators.
114 Leaving \"Default\" unchecked is equivalent with specifying a default of
116 (choice :tag
"Default"
118 (const :tag
"Do not show" (t . nil
))
119 (const :tag
"On the left" (t . left
))
120 (const :tag
"On the right" (t . right
)))
123 (const :tag
"Do not show" (top . nil
))
124 (const :tag
"On the left" (top . left
))
125 (const :tag
"On the right" (top . right
)))
126 (choice :tag
"Bottom"
127 :value
(bottom . left
)
128 (const :tag
"Do not show" (bottom . nil
))
129 (const :tag
"On the left" (bottom . left
))
130 (const :tag
"On the right" (bottom . right
)))
131 (choice :tag
"Up arrow"
133 (const :tag
"Do not show" (up . nil
))
134 (const :tag
"On the left" (up . left
))
135 (const :tag
"On the right" (up . right
)))
136 (choice :tag
"Down arrow"
138 (const :tag
"Do not show" (down . nil
))
139 (const :tag
"On the left" (down . left
))
140 (const :tag
"On the right" (down . right
))))
141 (other :tag
"On left, no arrows" t
)))
142 (scroll-up-aggressively windows
143 (choice (const :tag
"off" nil
) float
)
145 (scroll-down-aggressively windows
146 (choice (const :tag
"off" nil
) float
)
148 (line-spacing display
(choice (const :tag
"none" nil
) number
)
150 (cursor-in-non-selected-windows
151 cursor
,cursor-type-types nil
152 :tag
"Cursor In Non-selected Windows"
153 :set
(lambda (symbol value
)
154 (set-default symbol value
)
155 (force-mode-line-update t
)))
156 (transient-mark-mode editing-basics boolean nil
157 :standard
(not noninteractive
)
158 :initialize custom-initialize-delay
159 :set custom-set-minor-mode
)
160 (bidi-paragraph-direction
163 (const :tag
"Left to Right" left-to-right
)
164 (const :tag
"Right to Left" right-to-left
)
165 (const :tag
"Dynamic, according to paragraph text" nil
))
168 (mark-even-if-inactive editing-basics boolean
)
170 (shell-file-name execute file
)
172 (repeat (choice (const :tag
"default directory" nil
)
173 (directory :format
"%v")))
177 (if f
(directory-file-name f
)
179 (append (parse-colon-path (getenv "PATH"))
180 (list exec-directory
))))
181 (exec-suffixes execute
(repeat string
))
183 (charset-map-path installation
184 (repeat (directory :format
"%v")))
186 (inhibit-eol-conversion mule boolean
)
187 (enable-character-translation mule boolean
)
188 (eol-mnemonic-undecided mule string
)
189 ;; startup.el fiddles with the values. IMO, would be
190 ;; simpler to just use #ifdefs in coding.c.
191 (eol-mnemonic-unix mule string nil
193 (if (memq system-type
'(ms-dos windows-nt
))
195 (eol-mnemonic-dos mule string nil
197 (if (memq system-type
'(ms-dos windows-nt
))
199 (eol-mnemonic-mac mule string nil
201 (file-coding-system-alist
204 :key-type
(regexp :tag
"File regexp")
206 :value
(undecided . undecided
)
207 (cons :tag
"Encoding/decoding pair"
208 :value
(undecided . undecided
)
209 (coding-system :tag
"Decoding")
210 (coding-system :tag
"Encoding"))
212 :tag
"Single coding system"
214 :match
(lambda (widget value
)
215 (and value
(not (functionp value
)))))
216 (function :value ignore
))))
218 (completion-ignored-extensions dired
219 (repeat (string :format
"%v")))
221 (baud-rate display integer
)
222 (inverse-video display boolean
)
223 (visible-bell display boolean
)
224 (no-redraw-on-reenter display boolean
)
227 (text-quoting-style display
229 (const :tag
"Prefer \\=‘curved\\=’ quotes, if possible" nil
)
230 (const :tag
"\\=‘Curved\\=’ quotes" curved
)
231 (const :tag
"\\='Straight\\=' quotes" straight
)
232 (const :tag
"\\=`Grave\\=' quotes (no translation)" grave
)))
235 (dos-display-scancodes display boolean
)
236 (dos-hyper-key keyboard integer
)
237 (dos-super-key keyboard integer
)
238 (dos-keypad-mode keyboard integer
)
241 (user-full-name mail string
)
243 (report-emacs-bug-address emacsbug string
)
245 (max-specpdl-size limits integer
)
246 (max-lisp-eval-depth limits integer
)
247 (max-mini-window-height limits
248 (choice (const :tag
"quarter screen" nil
)
250 (debug-on-error debug
251 (choice (const :tag
"off")
252 (repeat :menu-tag
"When"
254 (symbol :format
"%v"))
255 (const :tag
"always" t
)))
256 (debug-ignored-errors debug
(repeat (choice symbol regexp
)))
257 (debug-on-quit debug boolean
)
258 (debug-on-signal debug boolean
)
259 (debugger-stack-frame-as-list debugger boolean
"26.1")
261 (delete-by-moving-to-trash auto-save boolean
"23.1")
262 (auto-save-visited-file-name auto-save boolean
)
264 (create-lockfiles files boolean
"24.3")
265 (temporary-file-directory
266 ;; Darwin section added 24.1, does not seem worth :version bump.
269 (file-name-as-directory
270 ;; FIXME ? Should there be Ftemporary_file_directory to do this
271 ;; more robustly (cf set_local_socket in emacsclient.c).
272 ;; It could be used elsewhere, eg Fcall_process_region,
273 ;; server-socket-dir. See bug#7135.
274 (cond ((memq system-type
'(ms-dos windows-nt
))
275 (or (getenv "TEMP") (getenv "TMPDIR") (getenv "TMP")
277 ((eq system-type
'darwin
)
278 (or (getenv "TMPDIR") (getenv "TMP") (getenv "TEMP")
280 (let ((tmp (ignore-errors
281 (shell-command-to-string
282 "getconf DARWIN_USER_TEMP_DIR"))))
284 (setq tmp
(replace-regexp-in-string
286 ;; Handles "getconf: Unrecognized variable..."
287 (file-directory-p tmp
)
291 (or (getenv "TMPDIR") (getenv "TMP") (getenv "TEMP")
293 :initialize custom-initialize-delay
)
295 (use-dialog-box menu boolean
"21.1")
296 (use-file-dialog menu boolean
"22.1")
299 (const :tag
"Off (nil)" :value nil
)
300 (const :tag
"On (t)" :value t
)
301 (const :tag
"Auto-raise" :value auto-raise
)) "26.1")
303 ;; FIXME nil is the initial value, fontset.el setqs it.
304 (vertical-centering-font-regexp display
305 (choice (const nil
) regexp
))
307 (default-frame-alist frames
308 (repeat (cons :format
"%v"
309 (symbol :tag
"Parameter")
310 (sexp :tag
"Value"))))
311 (mouse-highlight mouse
(choice (const :tag
"disabled" nil
)
312 (const :tag
"always shown" t
)
313 (other :tag
"hidden by keypress" 1))
315 (make-pointer-invisible mouse boolean
"23.2")
316 (menu-bar-mode frames boolean nil
318 ;; :initialize custom-initialize-default
319 :set custom-set-minor-mode
)
320 (tool-bar-mode (frames mouse
) boolean nil
321 ;; :initialize custom-initialize-default
322 :set custom-set-minor-mode
)
323 (frame-resize-pixelwise frames boolean
"24.4")
324 (frame-inhibit-implied-resize frames
326 (const :tag
"Never" nil
)
327 (const :tag
"Always" t
)
328 (repeat (symbol :tag
"Parameter")))
330 (iconify-child-frame frames
332 (const :tag
"Do nothing" nil
)
333 (const :tag
"Iconify top level frame instead" iconify-top-level
)
334 (const :tag
"Make frame invisible instead" make-invisible
)
335 (const :tag
"Iconify" t
))
337 (tooltip-reuse-hidden-frame tooltip boolean
"26.1")
339 (overflow-newline-into-fringe fringe boolean
)
341 (imagemagick-render-type image integer
"24.1")
343 (indent-tabs-mode indent boolean
)
345 (meta-prefix-char keyboard character
)
346 (auto-save-interval auto-save integer
)
347 (auto-save-timeout auto-save
(choice (const :tag
"off" nil
)
348 (integer :format
"%v")))
349 (echo-keystrokes minibuffer number
)
350 (polling-period keyboard integer
)
351 (double-click-time mouse
(restricted-sexp
352 :match-alternatives
(integerp 'nil
't
)))
353 (double-click-fuzz mouse integer
"22.1")
354 (help-char keyboard character
)
355 (help-event-list keyboard
(repeat (sexp :format
"%v")))
356 (menu-prompting menu boolean
)
357 (select-active-regions killing
358 (choice (const :tag
"always" t
)
359 (const :tag
"only shift-selection or mouse-drag" only
)
360 (const :tag
"off" nil
))
362 (debug-on-event debug
363 (choice (const :tag
"None" nil
)
364 (const :tag
"When sent SIGUSR1" sigusr1
)
365 (const :tag
"When sent SIGUSR2" sigusr2
))
368 ;; This is not good news because it will use the wrong
369 ;; version-specific directories when you upgrade. We need
370 ;; customization of the front of the list, maintaining the
371 ;; standard value intact at the back.
372 ;;(load-path environment
373 ;; (repeat (choice :tag "[Current dir?]"
374 ;; :format "%[Current dir?%] %v"
375 ;; (const :tag " current dir" nil)
376 ;; (directory :format "%v"))))
377 (load-prefer-newer lisp boolean
"24.4")
379 (enable-recursive-minibuffers minibuffer boolean
)
380 (history-length minibuffer
381 (choice (const :tag
"Infinite" t
) integer
)
383 (history-delete-duplicates minibuffer boolean
"22.1")
384 (read-buffer-completion-ignore-case minibuffer boolean
"23.1")
386 (minibuffer-prompt-properties
390 (const :tag
"Read-Only"
391 :doc
"Prevent prompt from being modified"
395 (const :tag
"Don't Enter"
396 :doc
"Prevent point from ever entering prompt"
399 (cursor-intangible t
)))
401 :tag
"Other Properties"
404 (symbol :tag
"Property")
405 (sexp :tag
"Value"))))
407 :set minibuffer-prompt-properties--setter
)
408 (minibuffer-auto-raise minibuffer boolean
)
409 ;; options property set at end
410 (read-buffer-function minibuffer
414 (dos-unsupported-char-glyph display integer
)
418 (choice (const :tag
"No modifier" nil
)
419 (const control
) (const meta
)
420 (const alt
) (const hyper
)
421 (const super
)) "23.1")
422 (ns-right-control-modifier
424 (choice (const :tag
"No modifier (work as control)" none
)
425 (const :tag
"Use the value of ns-control-modifier"
427 (const control
) (const meta
)
428 (const alt
) (const hyper
)
429 (const super
)) "24.1")
432 (choice (const :tag
"No modifier" nil
)
433 (const control
) (const meta
)
434 (const alt
) (const hyper
)
435 (const super
)) "23.1")
436 (ns-right-command-modifier
438 (choice (const :tag
"No modifier (work as command)" none
)
439 (const :tag
"Use the value of ns-command-modifier"
441 (const control
) (const meta
)
442 (const alt
) (const hyper
)
443 (const super
)) "24.1")
444 (ns-alternate-modifier
446 (choice (const :tag
"No modifier (work as alternate/option)" none
)
447 (const control
) (const meta
)
448 (const alt
) (const hyper
)
449 (const super
)) "23.1")
450 (ns-right-alternate-modifier
452 (choice (const :tag
"No modifier (work as alternate/option)" none
)
453 (const :tag
"Use the value of ns-alternate-modifier"
455 (const control
) (const meta
)
456 (const alt
) (const hyper
)
457 (const super
)) "23.3")
458 (ns-function-modifier
460 (choice (const :tag
"No modifier (work as function)" none
)
461 (const control
) (const meta
)
462 (const alt
) (const hyper
)
463 (const super
)) "23.1")
464 (ns-antialias-text ns boolean
"23.1")
465 (ns-auto-hide-menu-bar ns boolean
"24.1")
466 (ns-confirm-quit ns boolean
"25.1")
467 (ns-use-native-fullscreen ns boolean
"24.4")
468 (ns-use-fullscreen-animation ns boolean
"25.1")
469 (ns-use-srgb-colorspace ns boolean
"24.4")
471 (delete-exited-processes processes-basics boolean
)
473 (parse-sexp-ignore-comments editing-basics boolean
)
474 (words-include-escapes editing-basics boolean
)
475 (open-paren-in-column-0-is-defun-start editing-basics boolean
478 (visible-cursor cursor boolean
"22.1")
480 (ring-bell-function display
482 (const :tag
"Default" nil
)
483 (const :tag
"Silent" ignore
)
486 (undo-limit undo integer
)
487 (undo-strong-limit undo integer
)
488 (undo-outer-limit undo
490 (const :tag
"No limit"
494 the undo info for the current command never gets discarded.
495 This should only be chosen under exceptional circumstances,
496 since it could result in memory overflow and make Emacs crash."
500 (temp-buffer-show-function windows
(choice (const nil
) function
))
501 (next-screen-context-lines windows integer
)
502 (scroll-preserve-screen-position
504 (const :tag
"Off (nil)" :value nil
)
505 (const :tag
"Full screen (t)" :value t
)
506 (other :tag
"Always" 1)) "22.1")
509 (const :tag
"Never (nil)" :value nil
)
510 (const :tag
"Only on ttys" :value tty
)
511 (other :tag
"Always" t
)) "23.1")
512 (window-combination-resize windows boolean
"24.1")
513 (window-combination-limit
515 (const :tag
"Never (nil)" :value nil
)
516 (const :tag
"If requested via buffer display alist (window-size)"
518 (const :tag
"With Temp Buffer Resize mode (temp-buffer-resize)"
519 :value temp-buffer-resize
)
520 (const :tag
"For temporary buffers (temp-buffer)"
522 (const :tag
"For buffer display (display-buffer)"
523 :value display-buffer
)
524 (other :tag
"Always (t)" :value t
))
526 (fast-but-imprecise-scrolling scrolling boolean
"25.1")
527 (window-resize-pixelwise windows boolean
"24.4")
529 ;; The whitespace group is for whitespace.el.
530 (show-trailing-whitespace editing-basics boolean nil
532 (scroll-step windows integer
)
533 (scroll-conservatively windows integer
)
534 (scroll-margin windows integer
)
535 (maximum-scroll-margin windows float
"26.1")
536 (hscroll-margin windows integer
"22.1")
537 (hscroll-step windows number
"22.1")
538 (truncate-partial-width-windows
540 (choice (integer :tag
"Truncate if narrower than")
541 (const :tag
"Respect `truncate-lines'" nil
)
542 (other :tag
"Truncate if not full-width" t
))
544 (make-cursor-line-fully-visible windows boolean
)
545 (mode-line-in-non-selected-windows mode-line boolean
"22.1")
546 (line-number-display-limit display
548 (const :tag
"No limit" nil
)))
549 (line-number-display-limit-width display integer
"22.1")
550 (highlight-nonselected-windows display boolean
)
551 (message-log-max debug
(choice (const :tag
"Disable" nil
)
552 (integer :menu-tag
"lines"
554 (other :tag
"Unlimited" t
))
556 (unibyte-display-via-language-environment mule boolean
)
557 (blink-cursor-alist cursor alist
"22.1")
558 (overline-margin display integer
"22.1")
559 (underline-minimum-offset display integer
"23.1")
560 (mouse-autoselect-window
562 (const :tag
"Off (nil)" :value nil
)
563 (const :tag
"Immediate" :value t
)
564 (number :tag
"Delay by secs" :value
0.5)) "22.1")
567 (const :tag
"Images" :value image
)
568 (const :tag
"Text" :value text
)
569 (const :tag
"Both" :value both
)
570 (const :tag
"Both-horiz" :value both-horiz
)
571 (const :tag
"Text-image-horiz" :value text-image-horiz
)
572 (const :tag
"System default" :value nil
)) "24.1")
573 (tool-bar-max-label-size frames integer
"24.1")
574 (auto-hscroll-mode scrolling
576 (const :tag
"Don't scroll automatically"
578 (const :tag
"Scroll the entire window"
580 (const :tag
"Scroll only the current line"
581 :value current-line
))
583 (void-text-area-pointer cursor
585 (const :tag
"Standard (text pointer)" :value nil
)
586 (const :tag
"Arrow" :value arrow
)
587 (const :tag
"Text pointer" :value text
)
588 (const :tag
"Hand" :value hand
)
589 (const :tag
"Vertical dragger" :value vdrag
)
590 (const :tag
"Horizontal dragger" :value hdrag
)
591 (const :tag
"Same as mode line" :value modeline
)
592 (const :tag
"Hourglass" :value hourglass
)))
593 (display-hourglass cursor boolean
)
594 (hourglass-delay cursor number
)
597 (const :tag
"Off (nil)" :value nil
)
598 (const :tag
"Fit (t)" :value t
)
599 (const :tag
"Grow only" :value grow-only
))
601 (display-raw-bytes-as-hex display boolean
"26.1")
602 (display-line-numbers display-line-numbers
604 (const :tag
"Off (nil)" :value nil
)
605 (const :tag
"Absolute line numbers"
607 (const :tag
"Relative line numbers"
609 (const :tag
"Visually relative line numbers"
612 (display-line-numbers-width display-line-numbers
614 (const :tag
"Dynamically computed"
616 (integer :menu-tag
"Fixed number of columns"
620 (display-line-numbers-current-absolute display-line-numbers
622 (const :tag
"Display actual number of current line"
624 (const :tag
"Display zero as number of current line"
627 (display-line-numbers-widen display-line-numbers
629 (const :tag
"Disregard narrowing when calculating line numbers"
631 (const :tag
"Count lines from beginning of narrowed region"
635 (scalable-fonts-allowed display boolean
"22.1")
637 (x-bitmap-file-path installation
638 (repeat (directory :format
"%v")))
639 (x-gtk-use-old-file-dialog menu boolean
"22.1")
640 (x-gtk-show-hidden-files menu boolean
"22.1")
641 (x-gtk-file-dialog-help-text menu boolean
"22.1")
642 (x-gtk-use-system-tooltips tooltip boolean
"23.3")
644 (x-use-underline-position-properties display boolean
"22.1")
645 (x-underline-at-descent-line display boolean
"22.1")
646 (x-stretch-cursor display boolean
"21.1")
647 (scroll-bar-adjust-thumb-portion windows boolean
"24.4")
649 (x-select-enable-clipboard-manager killing boolean
"24.1")
651 (font-use-system-font font-selection boolean
"23.2")))
652 (setq ;; If we did not specify any standard value expression above,
653 ;; use the current value as the standard value.
654 standard
(if (setq prop
(memq :standard rest
))
656 (if (default-boundp symbol
)
657 (funcall quoter
(default-value symbol
))))
658 ;; Don't complain about missing variables which are
659 ;; irrelevant to this platform.
660 native-p
(save-match-data
662 ((string-match "\\`dos-" (symbol-name symbol
))
663 (eq system-type
'ms-dos
))
664 ((string-match "\\`w32-" (symbol-name symbol
))
665 (eq system-type
'windows-nt
))
666 ((string-match "\\`ns-" (symbol-name symbol
))
668 ((string-match "\\`x-.*gtk" (symbol-name symbol
))
670 ((string-match "clipboard-manager" (symbol-name symbol
))
671 (boundp 'x-select-enable-clipboard-manager
))
672 ((string-match "\\`x-" (symbol-name symbol
))
673 (fboundp 'x-create-frame
))
674 ((string-match "selection" (symbol-name symbol
))
675 (fboundp 'x-selection-exists-p
))
676 ((string-match "fringe" (symbol-name symbol
))
677 (fboundp 'define-fringe-bitmap
))
678 ((string-match "\\`imagemagick" (symbol-name symbol
))
679 (fboundp 'imagemagick-types
))
680 ((equal "font-use-system-font" (symbol-name symbol
))
681 (featurep 'system-font-setting
))
682 ;; Conditioned on x-create-frame, because that's
683 ;; the condition for loadup.el to preload tool-bar.el.
684 ((string-match "tool-bar-" (symbol-name symbol
))
685 (fboundp 'x-create-frame
))
686 ((equal "vertical-centering-font-regexp"
687 (symbol-name symbol
))
688 ;; Any function from fontset.c will do.
689 (fboundp 'new-fontset
))
690 ((equal "scroll-bar-adjust-thumb-portion"
691 (symbol-name symbol
))
694 (if (not (boundp symbol
))
695 ;; If variables are removed from C code, give an error here!
697 (message "Note, built-in variable `%S' not bound" symbol
))
698 ;; Save the standard value, unless we already did.
699 (or (get symbol
'standard-value
)
700 (put symbol
'standard-value
(list standard
)))
701 ;; We need these properties independent of whether cus-start is loaded.
702 (if (setq prop
(memq :safe rest
))
703 (put symbol
'safe-local-variable
(cadr prop
)))
704 (if (setq prop
(memq :risky rest
))
705 (put symbol
'risky-local-variable
(cadr prop
)))
706 (if (setq prop
(memq :set rest
))
707 (put symbol
'custom-set
(cadr prop
)))
708 ;; Note this is the _only_ initialize property we handle.
709 (if (eq (cadr (memq :initialize rest
)) 'custom-initialize-delay
)
710 ;; These vars are defined early and should hence be initialized
711 ;; early, even if this file happens to be loaded late. so add them
712 ;; to the end of custom-delayed-init-variables. Otherwise,
713 ;; auto-save-file-name-transforms will appear in M-x customize-rogue.
714 (add-to-list 'custom-delayed-init-variables symbol
'append
))
715 ;; If this is NOT while dumping Emacs, set up the rest of the
716 ;; customization info. This is the stuff that is not needed
717 ;; until someone does M-x customize etc.
719 ;; Add it to the right group(s).
722 (custom-add-to-group g symbol
'custom-variable
))
723 (custom-add-to-group group symbol
'custom-variable
))
725 (put symbol
'custom-type type
)
726 (if version
(put symbol
'custom-version version
))
728 (setq prop
(car rest
)
730 rest
(nthcdr 2 rest
))
731 (cond ((memq prop
'(:standard
:risky
:safe
:set
))) ; handled above
733 (put symbol
'custom-tag propval
))))))))
735 (custom-add-to-group 'font-lock
'open-paren-in-column-0-is-defun-start
738 ;; Record cus-start as loaded if we have set up all the info that we can.
739 ;; Don't record it as loaded if we have only set up the standard values
740 ;; and safe/risky properties.
742 (provide 'cus-start
))
744 ;;; cus-start.el ends here