(compilation-error-regexp-alist): New item, for Oracle compiler.
[bpt/emacs.git] / lisp / cus-start.el
CommitLineData
1444b0c0
PA
1;;; cus-start.el --- define customization properties of builtins.
2;;
3;; Copyright (C) 1997 Free Software Foundation, Inc.
4;;
5;; Author: Per Abrahamsen <abraham@dina.kvl.dk>
6;; Keywords: internal
7
c2383d2d
RS
8;; This file is part of GNU Emacs.
9
10;; GNU Emacs is free software; you can redistribute it and/or modify
11;; it under the terms of the GNU General Public License as published by
12;; the Free Software Foundation; either version 2, or (at your option)
13;; any later version.
14
15;; GNU Emacs is distributed in the hope that it will be useful,
16;; but WITHOUT ANY WARRANTY; without even the implied warranty of
17;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18;; GNU General Public License for more details.
19
20;; You should have received a copy of the GNU General Public License
21;; along with GNU Emacs; see the file COPYING. If not, write to the
22;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23;; Boston, MA 02111-1307, USA.
24
1444b0c0
PA
25;;; Commentary:
26;;
4883633e 27;; This file adds customize support for built-in variables.
1444b0c0 28
4883633e
RS
29;; While dumping Emacs, this file is loaded, but it only records
30;; the standard values; it does not do the rest of the job.
31;; Later on, if the user makes a customization buffer,
32;; this file is loaded again with (require 'cus-start);
33;; then it does the whole job.
1444b0c0 34
4883633e 35;;; Code:
1444b0c0
PA
36
37(let ((all '(;; abbrev.c
38 (abbrev-all-caps abbrev-mode boolean)
39 (pre-abbrev-expand-hook abbrev-mode hook)
40 ;; alloc.c
41 (gc-cons-threshold alloc integer)
42 (undo-limit undo integer)
43 (undo-strong-limit undo integer)
44 (garbage-collection-messages alloc boolean)
45 ;; buffer.c
46 (mode-line-format modeline sexp) ;Hard to do right.
47 (default-major-mode internal function)
48 (case-fold-search matching boolean)
49 (fill-column fill integer)
50 (left-margin fill integer)
51 (tab-width editing-basics integer)
52 (ctl-arrow display boolean)
53 (truncate-lines display boolean)
54 (selective-display display
55 (choice (const :tag "off" nil)
56 (integer :tag "space"
57 :format "%v"
58 1)
59 (const :tag "on" t)))
60 (selective-display-ellipses display boolean)
61 (transient-mark-mode editing-basics boolean)
62 ;; callint.c
63 (mark-even-if-inactive editing-basics boolean)
64 ;; callproc.c
65 (shell-file-name execute file)
66 (exec-path execute
67 (repeat (choice (const :tag "default" nil)
68 (file :format "%v"))))
69 ;; dired.c
70 (completion-ignored-extensions dired
71 (repeat (string :format "%v")))
72 ;; dispnew.el
73 (baud-rate display integer)
74 (inverse-video display boolean)
75 (visible-bell display boolean)
76 (no-redraw-on-reenter display boolean)
77 ;; editfns.c
78 (user-full-name mail string)
79 ;; eval.c
80 (max-specpdl-size limits integer)
81 (max-lisp-eval-depth limits integer)
82 (stack-trace-on-error debug
83 (choice (const :tag "off")
84 (repeat :menu-tag "When"
85 :value (nil)
86 (symbol :format "%v"))
87 (const :tag "always" t)))
88 (debug-on-error debug
89 (choice (const :tag "off")
90 (repeat :menu-tag "When"
91 :value (nil)
92 (symbol :format "%v"))
93 (const :tag "always" t)))
94 (debug-ignored-errors debug (repeat (choice symbol regexp)))
95 (debug-on-quit debug choice)
96 ;; fileio.c
97 (insert-default-directory minibuffer boolean)
98 ;; frame.c
99 (default-frame-alist frames
100 (repeat (cons :format "%v"
101 (symbol :tag "Parameter")
102 (sexp :tag "Value"))))
103 ;; indent.c
104 (indent-tabs-mode fill boolean)
105 ;; keyboard.c
106 (meta-prefix-char keyboard character)
107 (auto-save-interval auto-save integer)
108 (auto-save-timeout auto-save (choice (const :tag "off" nil)
109 (integer :format "%v")))
110 (echo-keystrokes minibuffer boolean)
111 (polling-period keyboard integer)
112 (double-click-time mouse integer)
113 (inhibit-local-menu-bar-menus menu boolean)
114 (help-char keyboard character)
115 (help-event-list keyboard (repeat (sexp :format "%v")))
116 (menu-prompting menu boolean)
1444b0c0
PA
117 (suggest-key-bindings keyboard (choice (const :tag "off" nil)
118 (integer :tag "time" 2)
119 (sexp :tag "on"
120 :format "%t")))
121 ;; lread.c
122 (load-path environment
4883633e
RS
123 (repeat (choice :tag "[Current dir?]"
124 (const :tag " current dir" nil)
125 (directory :format "%v"))))
1444b0c0
PA
126 ;; minibuf.c
127 (completion-auto-help minibuffer boolean)
128 (enable-recursive-minibuffers minibuffer boolean)
129 (minibuffer-auto-raise minibuffer boolean)
130 ;; process.c
4883633e 131 (delete-exited-processes processes-basics boolean)
1444b0c0
PA
132 ;; syntax.c
133 (parse-sexp-ignore-comments editing-basics boolean)
134 (words-include-escapes editing-basics boolean)
135 ;; window.c
136 (temp-buffer-show-function windows function)
137 (display-buffer-function windows function)
138 (pop-up-frames frames boolean)
139 (pop-up-frame-function frames function)
140 (special-display-buffer-names
141 frames
142 (repeat (choice :tag "Buffer"
143 :value ""
144 (string :format "%v")
145 (cons :tag "With attributes"
146 :format "%v"
147 :value ("" . nil)
148 (string :format "%v")
149 (repeat :tag "Attributes"
150 (cons :format "%v"
151 (symbol :tag "Parameter")
152 (sexp :tag "Value")))))))
153 (special-display-regexps
154 frames
155 (repeat (choice :tag "Buffer"
156 :value ""
157 (regexp :format "%v")
158 (cons :tag "With attributes"
159 :format "%v"
160 :value ("" . nil)
161 (regexp :format "%v")
162 (repeat :tag "Attributes"
163 (cons :format "%v"
164 (symbol :tag "Parameter")
165 (sexp :tag "Value")))))))
166 (special-display-function frames function)
167 (same-window-buffer-names windows (repeat (string :format "%v")))
168 (same-window-regexps windows (repeat (regexp :format "%v")))
169 (pop-up-windows windows boolean)
170 (next-screen-context-lines windows boolean)
171 (split-height-threshold windows integer)
172 (window-min-height windows integer)
173 (window-min-width windows integer)
174 ;; xdisp.c
175 (scroll-step windows integer)
176 (truncate-partial-width-windows display boolean)
177 (mode-line-inverse-video modeline boolean)
178 (line-number-display-limit display integer)
179 (highlight-nonselected-windows display boolean)
180 (message-log-max debug (choice (const :tag "Disable" nil)
181 (integer :menu-tag "lines"
182 :format "%v")
183 (const :tag "Unlimited" t)))
184 ;; xfns.c
185 (x-bitmap-file-path installation
186 (repeat (directory :format "%v")))))
4883633e
RS
187 this symbol group type
188 ;; This function turns a value
189 ;; into an expression which produces that value.
190 (quoter (lambda (sexp)
191 (if (or (memq sexp '(t nil))
192 (and (symbolp sexp)
193 (eq (aref (symbol-name sexp) 0) ?:))
194 (and (listp sexp)
195 (memq (car sexp) '(lambda)))
196 (stringp sexp)
197 (numberp sexp)
198 (and (fboundp 'characterp)
199 (characterp sexp)))
200 sexp
201 (list 'quote sexp)))))
1444b0c0
PA
202 (while all
203 (setq this (car all)
204 all (cdr all)
205 symbol (nth 0 this)
206 group (nth 1 this)
207 type (nth 2 this))
208 (if (not (boundp symbol))
209 ;; If variables are removed from C code, give an error here!
4883633e
RS
210 (message "Built-in variable `%S' not bound" symbol)
211 ;; Save the standard value, unless we already did.
212 (or (get symbol 'standard-value)
213 (put symbol 'standard-value
214 (list (funcall quoter (default-value symbol)))))
215 ;; If this is NOT while dumping Emacs,
216 ;; set up the rest of the customization info.
217 (unless purify-flag
218 ;; Add it to the right group.
219 (custom-add-to-group group symbol 'custom-variable)
220 ;; Set the type.
221 (put symbol 'custom-type type)))))
222
223;; Record cus-start as loaded
224;; if we have set up all the info that we can set up.
225;; Don't record cus-start as loaded
226;; if we have set up only the standard values.
227(unless purify-flag
228 (provide 'cus-start))
1444b0c0
PA
229
230;;; cus-start.el ends here.