comparison lisp/custom.el @ 111017:9506df1b7b65

Allow hiding of modified custom widgets. * cus-edit.el (custom-variable, custom-face): Combine the :inhibit-magic and :display-style properties into a single :custom-style property. (custom-toggle-hide-variable, custom-toggle-hide-face): New functions. If hiding an edited value, save it to :shown-value. (custom-variable-value-create, custom-face-value-create): Use them. (custom-magic-reset): Allow magic property to be unset. * cus-theme.el (custom-theme-add-var-1) (custom-theme-add-face-1): Use the :custom-style property. * custom.el: (custom-theme-load-path): Doc fix.
author Chong Yidong <cyd@stupidchicken.com>
date Sat, 16 Oct 2010 16:36:20 -0400
parents fedd4f6fa7e5
children de901820e0bc
comparison
equal deleted inserted replaced
111016:fedd4f6fa7e5 111017:9506df1b7b65
1064 (defcustom custom-theme-load-path (list 'custom-theme-directory t) 1064 (defcustom custom-theme-load-path (list 'custom-theme-directory t)
1065 "List of directories to search for custom theme files. 1065 "List of directories to search for custom theme files.
1066 Emacs commands for loading custom themes (e.g. `customize-themes' 1066 Emacs commands for loading custom themes (e.g. `customize-themes'
1067 and `load-theme') search for custom theme files in the specified 1067 and `load-theme') search for custom theme files in the specified
1068 order. Each element in the list should be one of the following: 1068 order. Each element in the list should be one of the following:
1069 \(i) the symbol `custom-theme-directory', which means the value 1069 - the symbol `custom-theme-directory', meaning the value of
1070 of that variable; (ii) the symbol t (the built-in Emacs theme 1070 `custom-theme-directory'.
1071 directory, named \"themes\" in `data-directory'); or \(iii) a 1071 - the symbol t, meaning the built-in theme directory (a directory
1072 directory name (a string)." 1072 named \"themes\" in `data-directory').
1073 - a directory name (a string)."
1073 :type '(repeat (choice (const :tag "custom-theme-directory" 1074 :type '(repeat (choice (const :tag "custom-theme-directory"
1074 custom-theme-directory) 1075 custom-theme-directory)
1075 (const :tag "Built-in theme directory" t) 1076 (const :tag "Built-in theme directory" t)
1076 directory)) 1077 directory))
1077 :group 'customize 1078 :group 'customize