cus-start.el 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570
  1. ;;; cus-start.el --- define customization properties of builtins
  2. ;;
  3. ;; Copyright (C) 1997, 1999-2012 Free Software Foundation, Inc.
  4. ;;
  5. ;; Author: Per Abrahamsen <abraham@dina.kvl.dk>
  6. ;; Keywords: internal
  7. ;; Package: emacs
  8. ;; This file is part of GNU Emacs.
  9. ;; GNU Emacs is free software: you can redistribute it and/or modify
  10. ;; it under the terms of the GNU General Public License as published by
  11. ;; the Free Software Foundation, either version 3 of the License, or
  12. ;; (at your option) any later version.
  13. ;; GNU Emacs is distributed in the hope that it will be useful,
  14. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. ;; GNU General Public License for more details.
  17. ;; You should have received a copy of the GNU General Public License
  18. ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
  19. ;;; Commentary:
  20. ;;
  21. ;; This file adds customize support for built-in variables.
  22. ;; While dumping Emacs, this file is loaded, but it only records
  23. ;; the standard values; it does not do the rest of the job.
  24. ;; Later on, if the user makes a customization buffer,
  25. ;; this file is loaded again with (require 'cus-start);
  26. ;; then it does the whole job.
  27. ;;; Code:
  28. ;; Elements of this list have the form:
  29. ;; SYMBOL GROUP TYPE VERSION REST...
  30. ;; SYMBOL is the name of the variable.
  31. ;; GROUP is the custom group to which it belongs (may also be a list
  32. ;; of groups)
  33. ;; TYPE is the defcustom :type.
  34. ;; VERSION is the defcustom :version (or nil).
  35. ;; REST is a set of :KEYWORD VALUE pairs. Accepted :KEYWORDs are:
  36. ;; :standard - standard value for SYMBOL (else use current value)
  37. ;; :set - custom-set property
  38. ;; :risky - risky-local-variable property
  39. ;; :safe - safe-local-variable property
  40. ;; :tag - custom-tag property
  41. (let ((all '(;; alloc.c
  42. (gc-cons-threshold alloc integer)
  43. (garbage-collection-messages alloc boolean)
  44. ;; buffer.c
  45. (mode-line-format mode-line sexp) ;Hard to do right.
  46. (major-mode internal function)
  47. (case-fold-search matching boolean)
  48. (fill-column fill integer)
  49. (left-margin fill integer)
  50. (tab-width editing-basics integer)
  51. (ctl-arrow display boolean)
  52. (truncate-lines display boolean)
  53. (word-wrap display boolean)
  54. (selective-display-ellipses display boolean)
  55. (indicate-empty-lines fringe boolean)
  56. (indicate-buffer-boundaries
  57. fringe
  58. (choice
  59. (const :tag "No indicators" nil)
  60. (const :tag "On left, with arrows" left)
  61. (const :tag "On right, with arrows" right)
  62. (set :tag "Pick your own design"
  63. :value ((t . nil))
  64. :format "%{%t%}:\n%v\n%d"
  65. :doc "You can specify a default and then override it \
  66. for individual indicators.
  67. Leaving \"Default\" unchecked is equivalent with specifying a default of
  68. \"Do not show\"."
  69. (choice :tag "Default"
  70. :value (t . nil)
  71. (const :tag "Do not show" (t . nil))
  72. (const :tag "On the left" (t . left))
  73. (const :tag "On the right" (t . right)))
  74. (choice :tag "Top"
  75. :value (top . left)
  76. (const :tag "Do not show" (top . nil))
  77. (const :tag "On the left" (top . left))
  78. (const :tag "On the right" (top . right)))
  79. (choice :tag "Bottom"
  80. :value (bottom . left)
  81. (const :tag "Do not show" (bottom . nil))
  82. (const :tag "On the left" (bottom . left))
  83. (const :tag "On the right" (bottom . right)))
  84. (choice :tag "Up arrow"
  85. :value (up . left)
  86. (const :tag "Do not show" (up . nil))
  87. (const :tag "On the left" (up . left))
  88. (const :tag "On the right" (up . right)))
  89. (choice :tag "Down arrow"
  90. :value (down . left)
  91. (const :tag "Do not show" (down . nil))
  92. (const :tag "On the left" (down . left))
  93. (const :tag "On the right" (down . right))))
  94. (other :tag "On left, no arrows" t)))
  95. (scroll-up-aggressively windows
  96. (choice (const :tag "off" nil) number)
  97. "21.1")
  98. (scroll-down-aggressively windows
  99. (choice (const :tag "off" nil) number)
  100. "21.1")
  101. (line-spacing display (choice (const :tag "none" nil) integer)
  102. "22.1")
  103. (cursor-in-non-selected-windows
  104. cursor boolean nil
  105. :tag "Cursor In Non-selected Windows"
  106. :set (lambda (symbol value)
  107. (set-default symbol value)
  108. (force-mode-line-update t)))
  109. (transient-mark-mode editing-basics boolean nil
  110. :standard (not noninteractive)
  111. :initialize custom-initialize-delay
  112. :set custom-set-minor-mode)
  113. (bidi-paragraph-direction
  114. paragraphs
  115. (choice
  116. (const :tag "Left to Right" left-to-right)
  117. (const :tag "Right to Left" right-to-left)
  118. (const :tag "Dynamic, according to paragraph text" nil))
  119. "24.1")
  120. ;; callint.c
  121. (mark-even-if-inactive editing-basics boolean)
  122. ;; callproc.c
  123. (shell-file-name execute file)
  124. (exec-path execute
  125. (repeat (choice (const :tag "default directory" nil)
  126. (directory :format "%v"))))
  127. ;; charset.c
  128. (charset-map-path installation
  129. (repeat (directory :format "%v")))
  130. ;; coding.c
  131. (inhibit-eol-conversion mule boolean)
  132. (eol-mnemonic-undecided mule string)
  133. (eol-mnemonic-unix mule string)
  134. (eol-mnemonic-dos mule string)
  135. (eol-mnemonic-mac mule string)
  136. (file-coding-system-alist
  137. mule
  138. (alist
  139. :key-type (regexp :tag "File regexp")
  140. :value-type (choice
  141. :value (undecided . undecided)
  142. (cons :tag "Encoding/decoding pair"
  143. :value (undecided . undecided)
  144. (coding-system :tag "Decoding")
  145. (coding-system :tag "Encoding"))
  146. (coding-system
  147. :tag "Single coding system"
  148. :value undecided
  149. :match (lambda (widget value)
  150. (and value (not (functionp value)))))
  151. (function :value ignore))))
  152. ;; dired.c
  153. (completion-ignored-extensions dired
  154. (repeat (string :format "%v")))
  155. ;; dispnew.c
  156. (baud-rate display integer)
  157. (inverse-video display boolean)
  158. (visible-bell display boolean)
  159. (no-redraw-on-reenter display boolean)
  160. ;; editfns.c
  161. (user-full-name mail string)
  162. ;; eval.c
  163. (max-specpdl-size limits integer)
  164. (max-lisp-eval-depth limits integer)
  165. (max-mini-window-height limits
  166. (choice (const :tag "quarter screen" nil)
  167. number) "23.1")
  168. (debug-on-error debug
  169. (choice (const :tag "off")
  170. (repeat :menu-tag "When"
  171. :value (nil)
  172. (symbol :format "%v"))
  173. (const :tag "always" t)))
  174. (debug-ignored-errors debug (repeat (choice symbol regexp)))
  175. (debug-on-quit debug boolean)
  176. ;; fileio.c
  177. (delete-by-moving-to-trash auto-save boolean "23.1")
  178. (auto-save-visited-file-name auto-save boolean)
  179. ;; filelock.c
  180. (temporary-file-directory
  181. ;; Darwin section added 24.1, does not seem worth :version bump.
  182. files directory nil
  183. :standard
  184. (file-name-as-directory
  185. ;; FIXME ? Should there be Ftemporary_file_directory to do this
  186. ;; more robustly (cf set_local_socket in emacsclient.c).
  187. ;; It could be used elsewhere, eg Fcall_process_region,
  188. ;; server-socket-dir. See bug#7135.
  189. (cond ((memq system-type '(ms-dos windows-nt))
  190. (or (getenv "TEMP") (getenv "TMPDIR") (getenv "TMP")
  191. "c:/temp"))
  192. ((eq system-type 'darwin)
  193. (or (getenv "TMPDIR") (getenv "TMP") (getenv "TEMP")
  194. ;; See bug#7135.
  195. (let ((tmp (ignore-errors
  196. (shell-command-to-string
  197. "getconf DARWIN_USER_TEMP_DIR"))))
  198. (and (stringp tmp)
  199. (setq tmp (replace-regexp-in-string
  200. "\n\\'" "" tmp))
  201. ;; Handles "getconf: Unrecognized variable..."
  202. (file-directory-p tmp)
  203. tmp))
  204. "/tmp"))
  205. (t
  206. (or (getenv "TMPDIR") (getenv "TMP") (getenv "TEMP")
  207. "/tmp"))))
  208. :initialize custom-initialize-delay)
  209. ;; fns.c
  210. (use-dialog-box menu boolean "21.1")
  211. (use-file-dialog menu boolean "22.1")
  212. (focus-follows-mouse frames boolean "20.3")
  213. ;; frame.c
  214. (default-frame-alist frames
  215. (repeat (cons :format "%v"
  216. (symbol :tag "Parameter")
  217. (sexp :tag "Value"))))
  218. (mouse-highlight mouse (choice (const :tag "disabled" nil)
  219. (const :tag "always shown" t)
  220. (other :tag "hidden by keypress" 1))
  221. "22.1")
  222. (make-pointer-invisible mouse boolean "23.2")
  223. (menu-bar-mode frames boolean nil
  224. ;; FIXME?
  225. ; :initialize custom-initialize-default
  226. :set custom-set-minor-mode)
  227. (tool-bar-mode (frames mouse) boolean nil
  228. ; :initialize custom-initialize-default
  229. :set custom-set-minor-mode)
  230. ;; fringe.c
  231. (overflow-newline-into-fringe fringe boolean)
  232. ;; image.c
  233. (imagemagick-render-type image integer "24.1")
  234. ;; indent.c
  235. (indent-tabs-mode indent boolean)
  236. ;; keyboard.c
  237. (meta-prefix-char keyboard character)
  238. (auto-save-interval auto-save integer)
  239. (auto-save-timeout auto-save (choice (const :tag "off" nil)
  240. (integer :format "%v")))
  241. (echo-keystrokes minibuffer number)
  242. (polling-period keyboard integer)
  243. (double-click-time mouse (restricted-sexp
  244. :match-alternatives (integerp 'nil 't)))
  245. (double-click-fuzz mouse integer "22.1")
  246. (inhibit-local-menu-bar-menus menu boolean)
  247. (help-char keyboard character)
  248. (help-event-list keyboard (repeat (sexp :format "%v")))
  249. (menu-prompting menu boolean)
  250. (select-active-regions killing
  251. (choice (const :tag "always" t)
  252. (const :tag "only shift-selection or mouse-drag" only)
  253. (const :tag "off" nil))
  254. "24.1")
  255. (suggest-key-bindings keyboard (choice (const :tag "off" nil)
  256. (integer :tag "time" 2)
  257. (other :tag "on")))
  258. (debug-on-event debug
  259. (choice (const :tag "None" nil)
  260. (const :tag "When sent SIGUSR1" sigusr1)
  261. (const :tag "When sent SIGUSR2" sigusr2))
  262. "24.1")
  263. ;; This is not good news because it will use the wrong
  264. ;; version-specific directories when you upgrade. We need
  265. ;; customization of the front of the list, maintaining the standard
  266. ;; value intact at the back.
  267. ;;; (load-path environment
  268. ;;; (repeat (choice :tag "[Current dir?]"
  269. ;;; :format "%[Current dir?%] %v"
  270. ;;; (const :tag " current dir" nil)
  271. ;;; (directory :format "%v"))))
  272. ;; minibuf.c
  273. (enable-recursive-minibuffers minibuffer boolean)
  274. (history-length minibuffer
  275. (choice (const :tag "Infinite" t) integer)
  276. "22.1")
  277. (history-delete-duplicates minibuffer boolean "22.1")
  278. (read-buffer-completion-ignore-case minibuffer boolean "23.1")
  279. (minibuffer-prompt-properties
  280. minibuffer
  281. (list
  282. (checklist :inline t
  283. (const :tag "Read-Only"
  284. :doc "Prevent prompt from being modified"
  285. :format "%t%n%h"
  286. :inline t
  287. (read-only t))
  288. (const :tag "Don't Enter"
  289. :doc "Prevent point from ever entering prompt"
  290. :format "%t%n%h"
  291. :inline t
  292. (point-entered minibuffer-avoid-prompt)))
  293. (repeat :inline t
  294. :tag "Other Properties"
  295. (list :inline t
  296. :format "%v"
  297. (symbol :tag "Property")
  298. (sexp :tag "Value"))))
  299. "21.1")
  300. (minibuffer-auto-raise minibuffer boolean)
  301. ;; options property set at end
  302. (read-buffer-function minibuffer
  303. (choice (const nil)
  304. (function-item iswitchb-read-buffer)
  305. function))
  306. ;; msdos.c
  307. (dos-unsupported-char-glyph display integer)
  308. ;; nsterm.m
  309. (ns-control-modifier
  310. ns
  311. (choice (const :tag "No modifier" nil)
  312. (const control) (const meta)
  313. (const alt) (const hyper)
  314. (const super)) "23.1")
  315. (ns-right-control-modifier
  316. ns
  317. (choice (const :tag "No modifier (work as control)" none)
  318. (const :tag "Use the value of ns-control-modifier"
  319. left)
  320. (const control) (const meta)
  321. (const alt) (const hyper)
  322. (const super)) "24.0")
  323. (ns-command-modifier
  324. ns
  325. (choice (const :tag "No modifier" nil)
  326. (const control) (const meta)
  327. (const alt) (const hyper)
  328. (const super)) "23.1")
  329. (ns-right-command-modifier
  330. ns
  331. (choice (const :tag "No modifier (work as command)" none)
  332. (const :tag "Use the value of ns-command-modifier"
  333. left)
  334. (const control) (const meta)
  335. (const alt) (const hyper)
  336. (const super)) "24.0")
  337. (ns-alternate-modifier
  338. ns
  339. (choice (const :tag "No modifier (work as alternate/option)" none)
  340. (const control) (const meta)
  341. (const alt) (const hyper)
  342. (const super)) "23.1")
  343. (ns-right-alternate-modifier
  344. ns
  345. (choice (const :tag "No modifier (work as alternate/option)" none)
  346. (const :tag "Use the value of ns-alternate-modifier"
  347. left)
  348. (const control) (const meta)
  349. (const alt) (const hyper)
  350. (const super)) "23.3")
  351. (ns-function-modifier
  352. ns
  353. (choice (const :tag "No modifier (work as function)" none)
  354. (const control) (const meta)
  355. (const alt) (const hyper)
  356. (const super)) "23.1")
  357. (ns-antialias-text ns boolean "23.1")
  358. (ns-auto-hide-menu-bar ns boolean "24.0")
  359. ;; process.c
  360. (delete-exited-processes processes-basics boolean)
  361. ;; syntax.c
  362. (parse-sexp-ignore-comments editing-basics boolean)
  363. (words-include-escapes editing-basics boolean)
  364. (open-paren-in-column-0-is-defun-start editing-basics boolean
  365. "21.1")
  366. ;; term.c
  367. (visible-cursor cursor boolean "22.1")
  368. ;; undo.c
  369. (undo-limit undo integer)
  370. (undo-strong-limit undo integer)
  371. (undo-outer-limit undo
  372. (choice integer
  373. (const :tag "No limit"
  374. :format "%t\n%d"
  375. :doc
  376. "With this choice, \
  377. the undo info for the current command never gets discarded.
  378. This should only be chosen under exceptional circumstances,
  379. since it could result in memory overflow and make Emacs crash."
  380. nil))
  381. "22.1")
  382. ;; window.c
  383. (temp-buffer-show-function windows (choice (const nil) function))
  384. (next-screen-context-lines windows integer)
  385. (scroll-preserve-screen-position
  386. windows (choice
  387. (const :tag "Off (nil)" :value nil)
  388. (const :tag "Full screen (t)" :value t)
  389. (other :tag "Always" 1)) "22.1")
  390. (recenter-redisplay
  391. windows (choice
  392. (const :tag "Never (nil)" :value nil)
  393. (const :tag "Only on ttys" :value tty)
  394. (other :tag "Always" t)) "23.1")
  395. (window-combination-resize windows boolean "24.1")
  396. (window-combination-limit windows boolean "24.1")
  397. ;; xdisp.c
  398. (show-trailing-whitespace whitespace-faces boolean nil
  399. :safe booleanp)
  400. (scroll-step windows integer)
  401. (scroll-conservatively windows integer)
  402. (scroll-margin windows integer)
  403. (hscroll-margin windows integer "22.1")
  404. (hscroll-step windows number "22.1")
  405. (truncate-partial-width-windows display boolean "23.1")
  406. (mode-line-inverse-video mode-line boolean)
  407. (mode-line-in-non-selected-windows mode-line boolean "22.1")
  408. (line-number-display-limit display
  409. (choice integer
  410. (const :tag "No limit" nil)))
  411. (line-number-display-limit-width display integer "22.1")
  412. (highlight-nonselected-windows display boolean)
  413. (message-log-max debug (choice (const :tag "Disable" nil)
  414. (integer :menu-tag "lines"
  415. :format "%v")
  416. (other :tag "Unlimited" t)))
  417. (unibyte-display-via-language-environment mule boolean)
  418. (blink-cursor-alist cursor alist "22.1")
  419. (overline-margin display integer "22.1")
  420. (underline-minimum-offset display integer "23.1")
  421. (mouse-autoselect-window
  422. display (choice
  423. (const :tag "Off (nil)" :value nil)
  424. (const :tag "Immediate" :value t)
  425. (number :tag "Delay by secs" :value 0.5)) "22.1")
  426. (tool-bar-style
  427. frames (choice
  428. (const :tag "Images" :value image)
  429. (const :tag "Text" :value text)
  430. (const :tag "Both" :value both)
  431. (const :tag "Both-horiz" :value both-horiz)
  432. (const :tag "Text-image-horiz" :value text-image-horiz)
  433. (const :tag "System default" :value nil)) "23.3")
  434. (tool-bar-max-label-size frames integer "23.3")
  435. (auto-hscroll-mode scrolling boolean "21.1")
  436. (display-hourglass cursor boolean)
  437. (hourglass-delay cursor number)
  438. ;; xfaces.c
  439. (scalable-fonts-allowed display boolean "22.1")
  440. ;; xfns.c
  441. (x-bitmap-file-path installation
  442. (repeat (directory :format "%v")))
  443. (x-gtk-use-old-file-dialog menu boolean "22.1")
  444. (x-gtk-show-hidden-files menu boolean "22.1")
  445. (x-gtk-file-dialog-help-text menu boolean "22.1")
  446. (x-gtk-whole-detached-tool-bar x boolean "22.1")
  447. (x-gtk-use-system-tooltips tooltip boolean "23.3")
  448. ;; xterm.c
  449. (x-use-underline-position-properties display boolean "22.1")
  450. (x-underline-at-descent-line display boolean "22.1")
  451. (x-stretch-cursor display boolean "21.1")
  452. ;; xselect.c
  453. (x-select-enable-clipboard-manager killing boolean "24.1")
  454. ;; xsettings.c
  455. (font-use-system-font font-selection boolean "23.2")))
  456. this symbol group type standard version native-p rest prop propval
  457. ;; This function turns a value
  458. ;; into an expression which produces that value.
  459. (quoter (lambda (sexp)
  460. (if (or (memq sexp '(t nil))
  461. (keywordp sexp)
  462. (and (listp sexp)
  463. (memq (car sexp) '(lambda)))
  464. (stringp sexp)
  465. (numberp sexp))
  466. sexp
  467. (list 'quote sexp)))))
  468. (while all
  469. (setq this (car all)
  470. all (cdr all)
  471. symbol (nth 0 this)
  472. group (nth 1 this)
  473. type (nth 2 this)
  474. version (nth 3 this)
  475. rest (nthcdr 4 this)
  476. ;; If we did not specify any standard value expression above,
  477. ;; use the current value as the standard value.
  478. standard (if (setq prop (memq :standard rest))
  479. (cadr prop)
  480. (if (default-boundp symbol)
  481. (funcall quoter (default-value symbol))))
  482. ;; Don't complain about missing variables which are
  483. ;; irrelevant to this platform.
  484. native-p (save-match-data
  485. (cond
  486. ((string-match "\\`dos-" (symbol-name symbol))
  487. (eq system-type 'ms-dos))
  488. ((string-match "\\`w32-" (symbol-name symbol))
  489. (eq system-type 'windows-nt))
  490. ((string-match "\\`ns-" (symbol-name symbol))
  491. (featurep 'ns))
  492. ((string-match "\\`x-.*gtk" (symbol-name symbol))
  493. (featurep 'gtk))
  494. ((string-match "clipboard-manager" (symbol-name symbol))
  495. (boundp 'x-select-enable-clipboard-manager))
  496. ((string-match "\\`x-" (symbol-name symbol))
  497. (fboundp 'x-create-frame))
  498. ((string-match "selection" (symbol-name symbol))
  499. (fboundp 'x-selection-exists-p))
  500. ((string-match "fringe" (symbol-name symbol))
  501. (fboundp 'define-fringe-bitmap))
  502. ((string-match "\\`imagemagick" (symbol-name symbol))
  503. (fboundp 'imagemagick-types))
  504. ((equal "font-use-system-font" (symbol-name symbol))
  505. (featurep 'system-font-setting))
  506. ;; Conditioned on x-create-frame, because that's
  507. ;; the condition for loadup.el to preload tool-bar.el.
  508. ((string-match "tool-bar-" (symbol-name symbol))
  509. (fboundp 'x-create-frame))
  510. (t t))))
  511. (if (not (boundp symbol))
  512. ;; If variables are removed from C code, give an error here!
  513. (and native-p
  514. (message "Note, built-in variable `%S' not bound" symbol))
  515. ;; Save the standard value, unless we already did.
  516. (or (get symbol 'standard-value)
  517. (put symbol 'standard-value (list standard)))
  518. ;; We need these properties independent of whether cus-start is loaded.
  519. (if (setq prop (memq :safe rest))
  520. (put symbol 'safe-local-variable (cadr prop)))
  521. (if (setq prop (memq :risky rest))
  522. (put symbol 'risky-local-variable (cadr prop)))
  523. (if (setq prop (memq :set rest))
  524. (put symbol 'custom-set (cadr prop)))
  525. ;; Note this is the _only_ initialize property we handle.
  526. (if (eq (cadr (memq :initialize rest)) 'custom-initialize-delay)
  527. (push symbol custom-delayed-init-variables))
  528. ;; If this is NOT while dumping Emacs, set up the rest of the
  529. ;; customization info. This is the stuff that is not needed
  530. ;; until someone does M-x customize etc.
  531. (unless purify-flag
  532. ;; Add it to the right group(s).
  533. (if (listp group)
  534. (dolist (g group)
  535. (custom-add-to-group g symbol 'custom-variable))
  536. (custom-add-to-group group symbol 'custom-variable))
  537. ;; Set the type.
  538. (put symbol 'custom-type type)
  539. (if version (put symbol 'custom-version version))
  540. (while rest
  541. (setq prop (car rest)
  542. propval (cadr rest)
  543. rest (nthcdr 2 rest))
  544. (cond ((memq prop '(:standard :risky :safe :set))) ; handled above
  545. ((eq prop :tag)
  546. (put symbol 'custom-tag propval))))))))
  547. (custom-add-to-group 'iswitchb 'read-buffer-function 'custom-variable)
  548. (custom-add-to-group 'font-lock 'open-paren-in-column-0-is-defun-start
  549. 'custom-variable)
  550. ;; Record cus-start as loaded if we have set up all the info that we can.
  551. ;; Don't record it as loaded if we have only set up the standard values
  552. ;; and safe/risky properties.
  553. (unless purify-flag
  554. (provide 'cus-start))
  555. ;;; cus-start.el ends here