2001-07-14 11:21:08 +00:00
|
|
|
;;; cus-start.el --- define customization properties of builtins
|
1997-04-12 17:51:31 +00:00
|
|
|
;;
|
2002-02-05 08:08:30 +00:00
|
|
|
;; Copyright (C) 1997, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
|
1997-04-12 17:51:31 +00:00
|
|
|
;;
|
|
|
|
;; Author: Per Abrahamsen <abraham@dina.kvl.dk>
|
|
|
|
;; Keywords: internal
|
|
|
|
|
1997-04-21 03:53:02 +00:00
|
|
|
;; This file is part of GNU Emacs.
|
|
|
|
|
|
|
|
;; GNU Emacs is free software; you can redistribute it and/or modify
|
|
|
|
;; it under the terms of the GNU General Public License as published by
|
|
|
|
;; the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
;; any later version.
|
|
|
|
|
|
|
|
;; GNU Emacs is distributed in the hope that it will be useful,
|
|
|
|
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;; GNU General Public License for more details.
|
|
|
|
|
|
|
|
;; You should have received a copy of the GNU General Public License
|
|
|
|
;; along with GNU Emacs; see the file COPYING. If not, write to the
|
|
|
|
;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
;; Boston, MA 02111-1307, USA.
|
|
|
|
|
1997-04-12 17:51:31 +00:00
|
|
|
;;; Commentary:
|
|
|
|
;;
|
1997-05-31 00:54:10 +00:00
|
|
|
;; This file adds customize support for built-in variables.
|
1997-04-12 17:51:31 +00:00
|
|
|
|
1997-05-31 00:54:10 +00:00
|
|
|
;; While dumping Emacs, this file is loaded, but it only records
|
|
|
|
;; the standard values; it does not do the rest of the job.
|
|
|
|
;; Later on, if the user makes a customization buffer,
|
|
|
|
;; this file is loaded again with (require 'cus-start);
|
|
|
|
;; then it does the whole job.
|
1997-04-12 17:51:31 +00:00
|
|
|
|
1997-05-31 00:54:10 +00:00
|
|
|
;;; Code:
|
1997-04-12 17:51:31 +00:00
|
|
|
|
2003-02-04 11:26:42 +00:00
|
|
|
(let ((all '(;; abbrev.c
|
1997-04-12 17:51:31 +00:00
|
|
|
(abbrev-all-caps abbrev-mode boolean)
|
|
|
|
(pre-abbrev-expand-hook abbrev-mode hook)
|
|
|
|
;; alloc.c
|
|
|
|
(gc-cons-threshold alloc integer)
|
|
|
|
(undo-limit undo integer)
|
|
|
|
(undo-strong-limit undo integer)
|
|
|
|
(garbage-collection-messages alloc boolean)
|
|
|
|
;; buffer.c
|
|
|
|
(mode-line-format modeline sexp) ;Hard to do right.
|
|
|
|
(default-major-mode internal function)
|
1997-06-29 03:53:10 +00:00
|
|
|
(enable-multibyte-characters mule boolean)
|
1997-04-12 17:51:31 +00:00
|
|
|
(case-fold-search matching boolean)
|
|
|
|
(fill-column fill integer)
|
|
|
|
(left-margin fill integer)
|
|
|
|
(tab-width editing-basics integer)
|
|
|
|
(ctl-arrow display boolean)
|
|
|
|
(truncate-lines display boolean)
|
|
|
|
(selective-display-ellipses display boolean)
|
2000-07-12 17:28:19 +00:00
|
|
|
(indicate-empty-lines display boolean "21.1")
|
2002-12-23 17:52:56 +00:00
|
|
|
(scroll-up-aggressively windows
|
|
|
|
(choice (const :tag "off" nil) number)
|
|
|
|
"21.1")
|
|
|
|
(scroll-down-aggressively windows
|
|
|
|
(choice (const :tag "off" nil) number)
|
|
|
|
"21.1")
|
1997-04-12 17:51:31 +00:00
|
|
|
;; callint.c
|
|
|
|
(mark-even-if-inactive editing-basics boolean)
|
|
|
|
;; callproc.c
|
|
|
|
(shell-file-name execute file)
|
|
|
|
(exec-path execute
|
|
|
|
(repeat (choice (const :tag "default" nil)
|
|
|
|
(file :format "%v"))))
|
1999-01-11 21:30:00 +00:00
|
|
|
;; coding.c
|
|
|
|
(inhibit-eol-conversion mule boolean)
|
1999-01-27 10:11:51 +00:00
|
|
|
(eol-mnemonic-undecided mule string)
|
|
|
|
(eol-mnemonic-unix mule string)
|
|
|
|
(eol-mnemonic-dos mule string)
|
|
|
|
(eol-mnemonic-mac mule string)
|
2000-08-20 17:21:22 +00:00
|
|
|
(file-coding-system-alist
|
|
|
|
mule
|
|
|
|
(alist
|
|
|
|
:key-type (regexp :tag "File regexp")
|
|
|
|
:value-type (choice
|
|
|
|
:value (undecided . undecided)
|
|
|
|
(cons :tag "Encoding/decoding pair"
|
|
|
|
:value (undecided . undecided)
|
|
|
|
(coding-system :tag "Decoding")
|
|
|
|
(coding-system :tag "Encoding"))
|
|
|
|
(coding-system :tag "Single coding system"
|
|
|
|
:value undecided)
|
|
|
|
(function :value ignore))))
|
2002-10-29 18:51:52 +00:00
|
|
|
(selection-coding-system mule coding-system)
|
1997-04-12 17:51:31 +00:00
|
|
|
;; dired.c
|
2003-02-04 11:26:42 +00:00
|
|
|
(completion-ignored-extensions dired
|
1997-04-12 17:51:31 +00:00
|
|
|
(repeat (string :format "%v")))
|
1999-08-16 23:00:42 +00:00
|
|
|
;; dispnew.c
|
1997-04-12 17:51:31 +00:00
|
|
|
(baud-rate display integer)
|
|
|
|
(inverse-video display boolean)
|
|
|
|
(visible-bell display boolean)
|
|
|
|
(no-redraw-on-reenter display boolean)
|
|
|
|
;; editfns.c
|
|
|
|
(user-full-name mail string)
|
|
|
|
;; eval.c
|
|
|
|
(max-specpdl-size limits integer)
|
|
|
|
(max-lisp-eval-depth limits integer)
|
|
|
|
(stack-trace-on-error debug
|
|
|
|
(choice (const :tag "off")
|
|
|
|
(repeat :menu-tag "When"
|
|
|
|
:value (nil)
|
|
|
|
(symbol :format "%v"))
|
|
|
|
(const :tag "always" t)))
|
2003-02-04 11:26:42 +00:00
|
|
|
(debug-on-error debug
|
1997-04-12 17:51:31 +00:00
|
|
|
(choice (const :tag "off")
|
|
|
|
(repeat :menu-tag "When"
|
|
|
|
:value (nil)
|
|
|
|
(symbol :format "%v"))
|
|
|
|
(const :tag "always" t)))
|
|
|
|
(debug-ignored-errors debug (repeat (choice symbol regexp)))
|
1997-07-20 17:40:40 +00:00
|
|
|
(debug-on-quit debug
|
|
|
|
(choice (const :tag "off")
|
|
|
|
(repeat :menu-tag "When"
|
|
|
|
:value (nil)
|
|
|
|
(symbol :format "%v"))
|
|
|
|
(const :tag "always" t)))
|
1997-04-12 17:51:31 +00:00
|
|
|
;; fileio.c
|
|
|
|
(insert-default-directory minibuffer boolean)
|
1999-11-26 17:36:14 +00:00
|
|
|
;; fns.c
|
2000-07-12 17:28:19 +00:00
|
|
|
(use-dialog-box menu boolean "21.1")
|
1997-04-12 17:51:31 +00:00
|
|
|
;; frame.c
|
|
|
|
(default-frame-alist frames
|
|
|
|
(repeat (cons :format "%v"
|
|
|
|
(symbol :tag "Parameter")
|
|
|
|
(sexp :tag "Value"))))
|
2002-02-17 00:33:21 +00:00
|
|
|
(mouse-highlight mouse (choice (const :tag "disabled" nil)
|
|
|
|
(const :tag "always shown" t)
|
|
|
|
(other :tag "hidden by keypress" 1)))
|
1997-04-12 17:51:31 +00:00
|
|
|
;; indent.c
|
|
|
|
(indent-tabs-mode fill boolean)
|
|
|
|
;; keyboard.c
|
|
|
|
(meta-prefix-char keyboard character)
|
|
|
|
(auto-save-interval auto-save integer)
|
|
|
|
(auto-save-timeout auto-save (choice (const :tag "off" nil)
|
|
|
|
(integer :format "%v")))
|
2000-02-18 21:15:05 +00:00
|
|
|
(echo-keystrokes minibuffer number)
|
1997-04-12 17:51:31 +00:00
|
|
|
(polling-period keyboard integer)
|
1997-06-27 22:38:19 +00:00
|
|
|
(double-click-time mouse (restricted-sexp
|
|
|
|
:match-alternatives (integerp 'nil 't)))
|
2002-07-22 15:22:49 +00:00
|
|
|
(double-click-fuzz mouse integer)
|
1997-04-12 17:51:31 +00:00
|
|
|
(inhibit-local-menu-bar-menus menu boolean)
|
|
|
|
(help-char keyboard character)
|
|
|
|
(help-event-list keyboard (repeat (sexp :format "%v")))
|
|
|
|
(menu-prompting menu boolean)
|
|
|
|
(suggest-key-bindings keyboard (choice (const :tag "off" nil)
|
|
|
|
(integer :tag "time" 2)
|
1998-06-24 08:54:04 +00:00
|
|
|
(other :tag "on")))
|
2001-11-27 04:59:43 +00:00
|
|
|
|
2000-07-12 17:28:19 +00:00
|
|
|
;; This is not good news because it will use the wrong
|
|
|
|
;; version-specific directories when you upgrade. We need
|
|
|
|
;; customization of the front of the list, maintaining the standard
|
|
|
|
;; value intact at the back.
|
2003-02-04 11:26:42 +00:00
|
|
|
;;; (load-path environment
|
2000-07-12 17:28:19 +00:00
|
|
|
;;; (repeat (choice :tag "[Current dir?]"
|
|
|
|
;;; :format "%[Current dir?%] %v"
|
|
|
|
;;; (const :tag " current dir" nil)
|
|
|
|
;;; (directory :format "%v"))))
|
1997-04-12 17:51:31 +00:00
|
|
|
;; minibuf.c
|
|
|
|
(completion-auto-help minibuffer boolean)
|
|
|
|
(enable-recursive-minibuffers minibuffer boolean)
|
2002-02-01 04:26:17 +00:00
|
|
|
(history-length minibuffer
|
|
|
|
(choice (const :tag "Infinite" t)
|
|
|
|
integer))
|
2000-11-21 16:01:32 +00:00
|
|
|
(minibuffer-prompt-properties
|
|
|
|
minibuffer
|
|
|
|
(list
|
|
|
|
(checklist :inline t
|
|
|
|
(const :tag "Read-Only"
|
|
|
|
:doc "Prevent prompt from being modified"
|
|
|
|
:format "%t%n%h"
|
|
|
|
:inline t
|
|
|
|
(read-only t))
|
|
|
|
(const :tag "Inviolable"
|
|
|
|
:doc "Prevent point from ever entering prompt"
|
|
|
|
:format "%t%n%h"
|
|
|
|
:inline t
|
|
|
|
(point-entered minibuffer-avoid-prompt)))
|
|
|
|
(repeat :inline t
|
|
|
|
:tag "Other Properties"
|
|
|
|
(list :inline t
|
|
|
|
:format "%v"
|
|
|
|
(symbol :tag "Property")
|
2000-11-27 17:46:24 +00:00
|
|
|
(sexp :tag "Value"))))
|
|
|
|
"21.1")
|
1997-04-12 17:51:31 +00:00
|
|
|
(minibuffer-auto-raise minibuffer boolean)
|
2000-11-27 17:46:24 +00:00
|
|
|
;; options property set at end
|
2000-11-30 19:12:41 +00:00
|
|
|
(read-buffer-function minibuffer
|
|
|
|
(choice (const nil)
|
|
|
|
(function-item iswitchb-read-buffer)
|
|
|
|
function))
|
1998-12-13 11:26:30 +00:00
|
|
|
;; msdos.c
|
|
|
|
(dos-unsupported-char-glyph display integer)
|
1997-04-12 17:51:31 +00:00
|
|
|
;; process.c
|
1997-05-31 00:54:10 +00:00
|
|
|
(delete-exited-processes processes-basics boolean)
|
1997-04-12 17:51:31 +00:00
|
|
|
;; syntax.c
|
|
|
|
(parse-sexp-ignore-comments editing-basics boolean)
|
|
|
|
(words-include-escapes editing-basics boolean)
|
|
|
|
;; window.c
|
2001-02-07 23:36:32 +00:00
|
|
|
(temp-buffer-show-function windows (choice (const nil) function))
|
|
|
|
(display-buffer-function windows (choice (const nil) function))
|
1997-04-12 17:51:31 +00:00
|
|
|
(pop-up-frames frames boolean)
|
|
|
|
(pop-up-frame-function frames function)
|
2003-02-04 11:26:42 +00:00
|
|
|
(special-display-buffer-names
|
|
|
|
frames
|
1997-04-12 17:51:31 +00:00
|
|
|
(repeat (choice :tag "Buffer"
|
|
|
|
:value ""
|
|
|
|
(string :format "%v")
|
|
|
|
(cons :tag "With attributes"
|
|
|
|
:format "%v"
|
|
|
|
:value ("" . nil)
|
|
|
|
(string :format "%v")
|
|
|
|
(repeat :tag "Attributes"
|
|
|
|
(cons :format "%v"
|
|
|
|
(symbol :tag "Parameter")
|
|
|
|
(sexp :tag "Value")))))))
|
|
|
|
(special-display-regexps
|
2003-02-04 11:26:42 +00:00
|
|
|
frames
|
1997-04-12 17:51:31 +00:00
|
|
|
(repeat (choice :tag "Buffer"
|
|
|
|
:value ""
|
|
|
|
(regexp :format "%v")
|
|
|
|
(cons :tag "With attributes"
|
|
|
|
:format "%v"
|
|
|
|
:value ("" . nil)
|
|
|
|
(regexp :format "%v")
|
|
|
|
(repeat :tag "Attributes"
|
|
|
|
(cons :format "%v"
|
|
|
|
(symbol :tag "Parameter")
|
|
|
|
(sexp :tag "Value")))))))
|
|
|
|
(special-display-function frames function)
|
|
|
|
(same-window-buffer-names windows (repeat (string :format "%v")))
|
|
|
|
(same-window-regexps windows (repeat (regexp :format "%v")))
|
|
|
|
(pop-up-windows windows boolean)
|
2000-12-06 13:46:40 +00:00
|
|
|
(even-window-heights windows boolean)
|
1998-04-07 17:47:01 +00:00
|
|
|
(next-screen-context-lines windows integer)
|
1997-04-12 17:51:31 +00:00
|
|
|
(split-height-threshold windows integer)
|
|
|
|
(window-min-height windows integer)
|
|
|
|
(window-min-width windows integer)
|
1999-06-13 02:38:57 +00:00
|
|
|
(scroll-preserve-screen-position windows boolean)
|
2000-08-20 17:21:22 +00:00
|
|
|
(display-buffer-reuse-frames windows boolean "21.1")
|
1997-04-12 17:51:31 +00:00
|
|
|
;; xdisp.c
|
|
|
|
(scroll-step windows integer)
|
1999-05-22 19:49:10 +00:00
|
|
|
(scroll-conservatively windows integer)
|
|
|
|
(scroll-margin windows integer)
|
2002-03-03 17:32:17 +00:00
|
|
|
(hscroll-margin windows integer "21.3")
|
|
|
|
(hscroll-step windows number "21.3")
|
1997-04-12 17:51:31 +00:00
|
|
|
(truncate-partial-width-windows display boolean)
|
2000-11-24 11:44:30 +00:00
|
|
|
(mode-line-inverse-video modeline boolean)
|
2002-02-13 22:47:25 +00:00
|
|
|
(mode-line-in-non-selected-windows modeline boolean "21.3")
|
2000-07-12 17:28:19 +00:00
|
|
|
(line-number-display-limit display
|
|
|
|
(choice integer
|
|
|
|
(const :tag "No limit" nil)))
|
1997-04-12 17:51:31 +00:00
|
|
|
(highlight-nonselected-windows display boolean)
|
|
|
|
(message-log-max debug (choice (const :tag "Disable" nil)
|
|
|
|
(integer :menu-tag "lines"
|
|
|
|
:format "%v")
|
1998-06-24 08:54:04 +00:00
|
|
|
(other :tag "Unlimited" t)))
|
1999-04-26 05:16:07 +00:00
|
|
|
(unibyte-display-via-language-environment mule boolean)
|
2002-10-29 18:51:52 +00:00
|
|
|
;; xfaces.c
|
|
|
|
(scalable-fonts-allowed display boolean)
|
1997-04-12 17:51:31 +00:00
|
|
|
;; xfns.c
|
|
|
|
(x-bitmap-file-path installation
|
1999-08-16 23:00:42 +00:00
|
|
|
(repeat (directory :format "%v")))
|
|
|
|
;; xterm.c
|
2002-04-03 08:34:38 +00:00
|
|
|
(mouse-autoselect-window display boolean "21.3")
|
2002-02-05 08:08:30 +00:00
|
|
|
(x-use-underline-position-properties display boolean "21.3")
|
2000-07-12 17:28:19 +00:00
|
|
|
(x-stretch-cursor display boolean "21.1")))
|
|
|
|
this symbol group type native-p version
|
1997-05-31 00:54:10 +00:00
|
|
|
;; This function turns a value
|
|
|
|
;; into an expression which produces that value.
|
|
|
|
(quoter (lambda (sexp)
|
|
|
|
(if (or (memq sexp '(t nil))
|
2000-04-13 19:05:47 +00:00
|
|
|
(keywordp sexp)
|
1997-05-31 00:54:10 +00:00
|
|
|
(and (listp sexp)
|
|
|
|
(memq (car sexp) '(lambda)))
|
|
|
|
(stringp sexp)
|
2000-07-12 17:28:19 +00:00
|
|
|
;; (and (fboundp 'characterp)
|
|
|
|
;; (characterp sexp))
|
|
|
|
(numberp sexp))
|
1997-05-31 00:54:10 +00:00
|
|
|
sexp
|
|
|
|
(list 'quote sexp)))))
|
2003-02-04 11:26:42 +00:00
|
|
|
(while all
|
1997-04-12 17:51:31 +00:00
|
|
|
(setq this (car all)
|
|
|
|
all (cdr all)
|
|
|
|
symbol (nth 0 this)
|
|
|
|
group (nth 1 this)
|
1998-12-31 13:04:54 +00:00
|
|
|
type (nth 2 this)
|
2000-07-12 17:28:19 +00:00
|
|
|
version (nth 3 this)
|
1998-12-31 13:04:54 +00:00
|
|
|
;; Don't complain about missing variables which are
|
|
|
|
;; irrelevant to this platform.
|
|
|
|
native-p (save-match-data
|
|
|
|
(cond
|
|
|
|
((string-match "\\`dos-" (symbol-name symbol))
|
|
|
|
(eq system-type 'ms-dos))
|
|
|
|
((string-match "\\`w32-" (symbol-name symbol))
|
|
|
|
(eq system-type 'windows-nt))
|
2002-02-11 07:06:55 +00:00
|
|
|
((string-match "\\`x-" (symbol-name symbol))
|
|
|
|
(fboundp 'x-create-frame))
|
1998-12-31 13:04:54 +00:00
|
|
|
(t t))))
|
1997-04-12 17:51:31 +00:00
|
|
|
(if (not (boundp symbol))
|
|
|
|
;; If variables are removed from C code, give an error here!
|
1998-12-31 13:04:54 +00:00
|
|
|
(and native-p
|
|
|
|
(message "Note, built-in variable `%S' not bound" symbol))
|
1997-05-31 00:54:10 +00:00
|
|
|
;; Save the standard value, unless we already did.
|
|
|
|
(or (get symbol 'standard-value)
|
2003-02-04 11:26:42 +00:00
|
|
|
(put symbol 'standard-value
|
1997-05-31 00:54:10 +00:00
|
|
|
(list (funcall quoter (default-value symbol)))))
|
|
|
|
;; If this is NOT while dumping Emacs,
|
|
|
|
;; set up the rest of the customization info.
|
|
|
|
(unless purify-flag
|
|
|
|
;; Add it to the right group.
|
|
|
|
(custom-add-to-group group symbol 'custom-variable)
|
|
|
|
;; Set the type.
|
2000-07-12 17:28:19 +00:00
|
|
|
(put symbol 'custom-type type)
|
|
|
|
(put symbol 'custom-version version)))))
|
1997-05-31 00:54:10 +00:00
|
|
|
|
2000-11-27 17:46:24 +00:00
|
|
|
(custom-add-to-group 'iswitchb 'read-buffer-function 'custom-variable)
|
2002-10-29 18:51:52 +00:00
|
|
|
(put 'selection-coding-system 'custom-set
|
|
|
|
(lambda (symbol value)
|
|
|
|
(set-selection-coding-system value)
|
|
|
|
(set symbol value)))
|
2000-11-27 17:46:24 +00:00
|
|
|
|
1997-05-31 00:54:10 +00:00
|
|
|
;; Record cus-start as loaded
|
|
|
|
;; if we have set up all the info that we can set up.
|
|
|
|
;; Don't record cus-start as loaded
|
|
|
|
;; if we have set up only the standard values.
|
|
|
|
(unless purify-flag
|
|
|
|
(provide 'cus-start))
|
1997-04-12 17:51:31 +00:00
|
|
|
|
2001-07-14 11:21:08 +00:00
|
|
|
;;; cus-start.el ends here
|