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