annotate lisp/prim/cus-start.el @ 138:6608ceec7cf8 r20-2b3

Import from CVS: tag r20-2b3
author cvs
date Mon, 13 Aug 2007 09:31:46 +0200
parents 9b50b4588a93
children 1856695b1fa9
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
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
8 ;;; Commentary:
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
9 ;;
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
10 ;; Must be run before the user has changed the value of any options!
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
11
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
12 ;;; Code:
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
13
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
14 (require 'custom)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
15
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
16 (defun custom-start-quote (sexp)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
17 ;; This is copied from `cus-edit.el'.
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
18 "Quote SEXP iff it is not self quoting."
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
19 (if (or (memq sexp '(t nil))
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
20 (and (symbolp sexp)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
21 (eq (aref (symbol-name sexp) 0) ?:))
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
22 (and (listp sexp)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
23 (memq (car sexp) '(lambda)))
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
24 (stringp sexp)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
25 (numberp sexp)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
26 (and (fboundp 'characterp)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
27 (characterp sexp)))
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
28 sexp
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
29 (list 'quote sexp)))
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
30
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
31 ;; The file names below are unreliable, as they are from Emacs 19.34.
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
32 (let ((all '(;; abbrev.c
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
33 (abbrev-all-caps abbrev-mode boolean)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
34 (pre-abbrev-expand-hook abbrev-mode hook)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
35 ;; alloc.c
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
36 (gc-cons-threshold alloc integer)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
37 ;; buffer.c
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
38 (modeline-format modeline sexp) ;Hard to do right.
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
39 (default-major-mode internal function)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
40 (case-fold-search matching boolean)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
41 (fill-column fill integer)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
42 (left-margin fill integer)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
43 (tab-width editing-basics integer)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
44 (ctl-arrow display boolean)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
45 (truncate-lines display boolean)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
46 (selective-display display
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
47 (choice (const :tag "off" nil)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
48 (integer :tag "space"
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
49 :format "%v"
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
50 1)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
51 (const :tag "on" t)))
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
52 (selective-display-ellipses display boolean)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
53 ;; callproc.c
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
54 (shell-file-name execute file)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
55 (exec-path execute
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
56 (repeat (choice (const :tag "default" nil)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
57 (file :format "%v"))))
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
58 ;; dired.c
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
59 (completion-ignored-extensions dired
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
60 (repeat (string :format "%v")))
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
61 ;; dispnew.el
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
62 (visible-bell display boolean)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
63 (no-redraw-on-reenter display boolean)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
64 ;; eval.c
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
65 (max-specpdl-size limits integer)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
66 (max-lisp-eval-depth limits integer)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
67 (stack-trace-on-error debug
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
68 (choice (const :tag "off")
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
69 (repeat :menu-tag "When"
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
70 :value (nil)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
71 (symbol :format "%v"))
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
72 (const :tag "always" t)))
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
73 (debug-on-error debug
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
74 (choice (const :tag "off")
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
75 (repeat :menu-tag "When"
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
76 :value (nil)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
77 (symbol :format "%v"))
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
78 (const :tag "always" t)))
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
79 (debug-on-quit debug choice)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
80 ;; frame.c
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
81 (default-frame-plist frames
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
82 (repeat (cons :format "%v"
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
83 (symbol :tag "Parameter")
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
84 (sexp :tag "Value"))))
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
85 ;; indent.c
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
86 (indent-tabs-mode fill boolean)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
87 ;; keyboard.c
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
88 (meta-prefix-char keyboard character)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
89 (auto-save-interval auto-save integer)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
90 (echo-keystrokes minibuffer boolean)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
91 (help-char keyboard character)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
92 ;; lread.c
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
93 (load-path environment
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
94 (repeat (choice :tag "Directory"
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
95 (const :tag "default" nil)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
96 (directory :format "%v"))))
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
97 ;; process.c
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
98 (delete-exited-processes proces-basics boolean)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
99 ;; syntax.c
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
100 (parse-sexp-ignore-comments editing-basics boolean)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
101 (words-include-escapes editing-basics boolean)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
102 ;; window.c
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
103 (temp-buffer-show-function windows function)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
104 (next-screen-context-lines windows boolean)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
105 (window-min-height windows integer)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
106 (window-min-width windows integer)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
107 ;; xdisp.c
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
108 (scroll-step windows integer)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
109 (truncate-partial-width-windows display boolean)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
110 ;; xfns.c
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
111 (x-bitmap-file-path installation
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
112 (repeat (directory :format "%v")))))
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
113 this symbol group type)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
114 (while all
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
115 (setq this (car all)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
116 all (cdr all)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
117 symbol (nth 0 this)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
118 group (nth 1 this)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
119 type (nth 2 this))
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
120 (if (not (boundp symbol))
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
121 ;; This is loaded so early, there is no message
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
122 (if (fboundp 'message)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
123 ;; If variables are removed from C code, give an error here!
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
124 (message "Intrinsic `%S' not bound" symbol))
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
125 ;; This is called before any user can have changed the value.
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
126 (put symbol 'factory-value
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
127 (list (custom-start-quote (default-value symbol))))
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
128 ;; Add it to the right group.
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
129 (custom-add-to-group group symbol 'custom-variable)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
130 ;; Set the type.
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
131 (put symbol 'custom-type type))))
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
132
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
133 ;; This is to prevent it from being reloaded by `cus-load.el'.
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
134 (provide 'cus-start)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
135
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents:
diff changeset
136 ;;; cus-start.el ends here.