2001-07-14 11:21:08 +00:00
|
|
|
;;; cus-start.el --- define customization properties of builtins
|
1997-04-12 17:51:31 +00:00
|
|
|
;;
|
2005-08-06 22:13:43 +00:00
|
|
|
;; Copyright (C) 1997, 1999, 2000, 2001, 2002, 2003, 2004,
|
2006-02-06 15:23:23 +00:00
|
|
|
;; 2005, 2006 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
|
2005-07-04 23:32:44 +00:00
|
|
|
;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
|
|
;; Boston, MA 02110-1301, USA.
|
1997-04-21 03:53:02 +00:00
|
|
|
|
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)
|
2005-02-14 23:44:07 +00:00
|
|
|
(garbage-collection-messages alloc boolean)
|
1997-04-12 17:51:31 +00:00
|
|
|
;; 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)
|
2005-08-01 17:20:04 +00:00
|
|
|
(indicate-empty-lines fringe boolean "21.1")
|
|
|
|
(indicate-buffer-boundaries
|
|
|
|
fringe
|
|
|
|
(choice
|
|
|
|
(const :tag "No indicators" nil)
|
|
|
|
(const :tag "On left, with arrows" left)
|
|
|
|
(const :tag "On right, with arrows" right)
|
2005-08-02 02:00:20 +00:00
|
|
|
(set :tag "Pick your own design"
|
|
|
|
:value ((t . nil))
|
|
|
|
:format "%{%t%}:\n%v\n%d"
|
|
|
|
:doc "You can specify a default and then override it \
|
|
|
|
for individual indicators.
|
|
|
|
Leaving \"Default\" unchecked is equivalent with specifying a default of
|
|
|
|
\"Do not show\"."
|
|
|
|
(choice :tag "Default"
|
|
|
|
:value (t . nil)
|
|
|
|
(const :tag "Do not show" (t . nil))
|
|
|
|
(const :tag "On the left" (t . left))
|
|
|
|
(const :tag "On the right" (t . right)))
|
|
|
|
(choice :tag "Top"
|
|
|
|
:value (top . left)
|
|
|
|
(const :tag "Do not show" (top . nil))
|
|
|
|
(const :tag "On the left" (top . left))
|
|
|
|
(const :tag "On the right" (top . right)))
|
|
|
|
(choice :tag "Bottom"
|
|
|
|
:value (bottom . left)
|
|
|
|
(const :tag "Do not show" (bottom . nil))
|
|
|
|
(const :tag "On the left" (bottom . left))
|
|
|
|
(const :tag "On the right" (bottom . right)))
|
|
|
|
(choice :tag "Up arrow"
|
|
|
|
:value (up . left)
|
|
|
|
(const :tag "Do not show" (up . nil))
|
|
|
|
(const :tag "On the left" (up . left))
|
|
|
|
(const :tag "On the right" (up . right)))
|
|
|
|
(choice :tag "Down arrow"
|
|
|
|
:value (down . left)
|
|
|
|
(const :tag "Do not show" (down . nil))
|
|
|
|
(const :tag "On the left" (down . left))
|
|
|
|
(const :tag "On the right" (down . right))))
|
2005-08-01 18:40:16 +00:00
|
|
|
(other :tag "On left, no arrows" t))
|
2005-08-01 17:20:04 +00:00
|
|
|
"22.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")
|
2005-10-09 15:40:00 +00:00
|
|
|
(line-spacing display (choice (const :tag "none" nil) integer))
|
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
|
2005-07-07 22:04:28 +00:00
|
|
|
(repeat (choice (const :tag "default directory" nil)
|
2005-07-07 21:50:31 +00:00
|
|
|
(directory :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)
|
2005-02-09 15:50:47 +00:00
|
|
|
(read-file-name-completion-ignore-case minibuffer boolean "22.1")
|
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")
|
2005-02-09 15:50:47 +00:00
|
|
|
(use-file-dialog menu boolean "22.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)))
|
2005-08-08 21:48:35 +00:00
|
|
|
;; fringe.c
|
|
|
|
(overflow-newline-into-fringe fringe boolean "22.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")))
|
2005-12-19 08:28:55 +00:00
|
|
|
;; macterm.c
|
|
|
|
(mac-control-modifier mac (choice (const :tag "No modifier" nil)
|
|
|
|
(const control) (const meta)
|
|
|
|
(const alt) (const hyper)
|
|
|
|
(const super)) "22.1")
|
|
|
|
(mac-command-modifier mac (choice (const :tag "No modifier" nil)
|
|
|
|
(const control) (const meta)
|
|
|
|
(const alt) (const hyper)
|
|
|
|
(const super)) "22.1")
|
|
|
|
(mac-option-modifier mac (choice (const :tag "No modifier (work as option)" nil)
|
|
|
|
(const control) (const meta)
|
|
|
|
(const alt) (const hyper)
|
|
|
|
(const super)) "22.1")
|
|
|
|
(mac-function-modifier mac
|
|
|
|
(choice (const :tag "No modifier (work as function)" nil)
|
|
|
|
(const control) (const meta)
|
|
|
|
(const alt) (const hyper)
|
|
|
|
(const super)) "22.1")
|
|
|
|
(mac-emulate-three-button-mouse mac
|
|
|
|
(choice (const :tag "No emulation" nil)
|
|
|
|
(const :tag "Option->2, Command->3" t)
|
|
|
|
(const :tag "Command->2, Option->3" reverse))
|
|
|
|
"22.1")
|
|
|
|
(mac-wheel-button-is-mouse-2 mac boolean "22.1")
|
|
|
|
(mac-pass-command-to-system mac boolean "22.1")
|
|
|
|
(mac-pass-control-to-system mac boolean "22.1")
|
|
|
|
(mac-allow-anti-aliasing mac boolean "22.1")
|
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))
|
2004-09-08 20:17:10 +00:00
|
|
|
(history-delete-duplicates minibuffer boolean)
|
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))
|
2005-08-19 02:08:56 +00:00
|
|
|
(const :tag "Don't Enter"
|
2000-11-21 16:01:32 +00:00
|
|
|
: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)
|
2003-08-05 15:27:38 +00:00
|
|
|
(open-paren-in-column-0-is-defun-start editing-basics boolean
|
|
|
|
"21.1")
|
2005-12-30 21:54:32 +00:00
|
|
|
;; term.c
|
|
|
|
(visible-cursor cursor boolean "22.1")
|
2005-08-04 21:34:41 +00:00
|
|
|
;; undo.c
|
|
|
|
(undo-limit undo integer)
|
|
|
|
(undo-strong-limit undo integer)
|
|
|
|
(undo-outer-limit undo
|
|
|
|
(choice integer
|
|
|
|
(const :tag "No limit"
|
|
|
|
:format "%t\n%d"
|
|
|
|
:doc
|
|
|
|
"With this choice, \
|
|
|
|
the undo info for the current command never gets discarded.
|
|
|
|
This should only be chosen under exceptional circumstances,
|
|
|
|
since it could result in memory overflow and make Emacs crash."
|
|
|
|
nil))
|
|
|
|
"22.1")
|
1997-04-12 17:51:31 +00:00
|
|
|
;; 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)))
|
2003-08-05 15:27:38 +00:00
|
|
|
(line-number-display-limit-width display integer)
|
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)
|
2005-02-09 15:50:47 +00:00
|
|
|
(blink-cursor-alist cursor alist "22.1")
|
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")))
|
2005-02-09 15:50:47 +00:00
|
|
|
(x-use-old-gtk-file-dialog menu boolean "22.1")
|
2005-12-27 10:40:58 +00:00
|
|
|
(x-gtk-show-hidden-files menu boolean "22.1")
|
1999-08-16 23:00:42 +00:00
|
|
|
;; 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")))
|
2005-02-14 09:49:38 +00:00
|
|
|
this symbol group type standard version native-p
|
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
|
|
|
(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)
|
2005-02-14 09:49:38 +00:00
|
|
|
;; If we did not specify any standard value expression above,
|
|
|
|
;; use the current value as the standard value.
|
|
|
|
standard (if (nthcdr 4 this)
|
|
|
|
(nth 4 this)
|
2005-02-16 09:37:20 +00:00
|
|
|
(when (default-boundp symbol)
|
2005-02-14 12:13:12 +00:00
|
|
|
(funcall quoter (default-value symbol))))
|
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))
|
2005-12-19 08:28:55 +00:00
|
|
|
((string-match "\\`mac-" (symbol-name symbol))
|
|
|
|
(eq window-system 'mac))
|
2005-06-13 11:54:48 +00:00
|
|
|
((string-match "\\`x-.*gtk" (symbol-name symbol))
|
2005-09-09 16:22:11 +00:00
|
|
|
(or (boundp 'gtk)
|
2005-09-09 16:24:25 +00:00
|
|
|
(and window-system
|
|
|
|
(not (eq window-system 'pc))
|
2005-12-19 08:28:55 +00:00
|
|
|
(not (eq window-system 'mac))
|
2005-09-09 16:22:11 +00:00
|
|
|
(not (eq system-type 'windows-nt)))))
|
2002-02-11 07:06:55 +00:00
|
|
|
((string-match "\\`x-" (symbol-name symbol))
|
|
|
|
(fboundp 'x-create-frame))
|
2005-09-09 16:22:11 +00:00
|
|
|
((string-match "selection" (symbol-name symbol))
|
|
|
|
(fboundp 'x-selection-exists-p))
|
|
|
|
((string-match "fringe" (symbol-name symbol))
|
|
|
|
(fboundp 'define-fringe-bitmap))
|
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)
|
2005-02-14 09:49:38 +00:00
|
|
|
(put symbol 'standard-value (list standard)))
|
1997-05-31 00:54:10 +00:00
|
|
|
;; 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)
|
2003-08-05 15:27:38 +00:00
|
|
|
(custom-add-to-group 'font-lock 'open-paren-in-column-0-is-defun-start
|
|
|
|
'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
|
|
|
|
2003-09-01 15:45:59 +00:00
|
|
|
;;; arch-tag: 4502730d-bcb3-4f5e-99a3-a86f2d54af60
|
2001-07-14 11:21:08 +00:00
|
|
|
;;; cus-start.el ends here
|