1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-15 09:47:20 +00:00
Commit Graph

145 Commits

Author SHA1 Message Date
Glenn Morris
4837b516ea Replace `iff' in doc-strings and comments. 2007-08-08 07:40:09 +00:00
Glenn Morris
b4aa60262c Switch license to GPLv3 or later. 2007-07-25 04:50:21 +00:00
Glenn Morris
5cdd251c3d Johan Bockg� <bojohan at dd.chalmers.se>:
(defface): Doc fix.
2007-04-25 04:45:59 +00:00
Glenn Morris
d7a0267c8d Add 2007 to copyright years. 2007-01-21 03:53:13 +00:00
Chong Yidong
467064a42d (custom-add-frequent-value): Alias for custom-add-option. 2006-12-24 00:25:03 +00:00
Glenn Morris
f2276b6985 (defcustom): Doc fix. 2006-09-30 00:45:32 +00:00
Stefan Monnier
9277ee6cd2 (custom-theme-set-variables): Autoload packages before sorting the variables. 2006-08-31 17:10:34 +00:00
Stefan Monnier
d54fbdfd31 (custom-autoload): Add `noset' argument.
(custom-push-theme): Don't autoload the variable, let callers do it.
(custom-theme-set-variables): Autoload the variable if necessary.
2006-07-17 21:26:32 +00:00
Chong Yidong
e58d8ef513 * custom.el (custom-push-theme): Load the variable before checking
its `standard-value'.
2006-05-13 16:16:43 +00:00
Bill Wohler
994019dfac * cus-edit.el (customize-package-emacs-version-alist): Update
docstring.
(customize-package-emacs-version): Use cdr instead of cadr now that
alists use dotted pairs.

* custom.el (defcustom): Fix docstring for :package-version.
2006-04-14 00:46:39 +00:00
Bill Wohler
81117bddbd (defcustom): Create Common Keywords section in docstring.
(defface, defgroup): Replace definitions of a select few keywords with
a reference to the Common Keywords in defcustom.
(defcustom, defface, defgroup): Replace reference to Customization
chapter in manual with hyperlink.
2006-04-11 00:08:56 +00:00
Bill Wohler
4e9c705e50 * custom.el (defcustom, custom-handle-keyword): Add :package-version
keyword.
(custom-add-package-version): New function. Sets value of new property
'custom-package-version from :package-version keyword.

* cus-edit.el (customize-package-emacs-version-alist): New variable.
(customize-changed-options): Add check for custom-package-version.
(customize-package-emacs-version): New function to look up Emacs
version corresponding to the given package version.
2006-04-10 23:43:34 +00:00
Chong Yidong
e02577b7d8 * cus-edit.el (custom-face-set): Call custom-push-theme before
face-spec set so that `changed' theme is correctly saved.
	(custom-face-reset-standard): Reset to recalculated face rather
	than defface spec.

	* custom.el (custom-push-theme): Only save `changed' theme if the
	current face does not match the defface specs.
2006-03-21 16:44:10 +00:00
Chong Yidong
ec9f0a62bf * custom.el (customize-mark-to-save, customize-mark-as-set): Load
the symbol first.
2006-02-20 15:59:51 +00:00
Chong Yidong
fccf278488 * custom.el (customize-mark-as-set): Push to `user' theme. 2006-02-19 17:26:44 +00:00
Chong Yidong
4a9ceb4e9d * custom.el (customize-mark-to-save): Load the symbol's
dependencies, so that `standard-value' will be present.
2006-02-19 16:20:21 +00:00
Thien-Thi Nguyen
aaef169dc6 Update years in copyright notice; nfc. 2006-02-06 15:23:23 +00:00
Chong Yidong
73e60f534c * cus-edit.el (custom-reset-menu, custom-reset, Custom-mode-menu)
(custom-variable-menu, custom-face-menu, custom-group-menu)
	(custom-buffer-create-internal): Change "Reset" to "Show".
	Reorder menu items.
	(custom-link): New face for Info links.
	(custom-buffer-create-internal, custom-manual): Use it.

	* wid-edit.el (widget-default-mouse-face-get): New function.
	(widget-specify-button): Handle mouse-face like button-face.

	* custom.el (load-theme): Clear old theme settings if reloading.
2006-01-04 15:56:08 +00:00
Chong Yidong
7e8b9dc3cc Doc fix. 2006-01-02 15:41:56 +00:00
Chong Yidong
fb61efe61d Doc fix. 2006-01-02 15:29:32 +00:00
Chong Yidong
c2e2f9be2c Change ordering so all the Custom Themes code is in one place.
Fix docstring for custom-theme-set-variables.
2006-01-02 15:18:08 +00:00
Chong Yidong
d358aa106d * custom.el: Move Custom Themes commentary to start of theme code.
(custom-known-themes): Rename `standard' theme to `changed'.
	(custom-push-theme): Caller no longer specifies what theme to use
	when doing `reset'---the setting is simply removed from the theme.
	Delete MODE from `theme-value' and `theme-settings' properties.
	(custom-declare-theme): Ignore &rest args since we don't use them.

	(custom-loaded-themes): Delete variable.
	(custom-theme-load-themes, custom-theme-loaded-p)
	(custom-theme-value): Delete functions.

	(custom-declare-theme): Signal error on invalid theme names.
	(provide-theme): custom-loaded-themes was deleted.
	(load-theme): Load the file unconditionally.
	(enable-theme): Call `load-theme' if theme is undefined.
	(custom-enabled-themes): Only update value for successful loads.
	(disable-theme): Complete from enabled themes when interactive.
	(custom-variable-theme-value): Calculate theme value directly.

	(custom-theme-reset-variables, custom-reset-variables): Mark as
	XEmacs compatibility functions.  We don't actually use these.

	* cus-edit.el (custom-variable-state-set): Use
	custom-variable-theme-value instead of custom-theme-value.
	(custom-face-state-set): Rename `standard' theme to `changed'.
	(custom-save-variables, custom-save-faces): Delete unneeded
	references to custom-reset-variables.
	(custom-save-resets): Delete function.
	(custom-save-variables, custom-save-faces): MODE argument deleted.
	(custom-save-variables, custom-save-faces): Ignore theme values.

	* cus-face.el (custom-theme-reset-faces): Mark as XEmacs
	compatibility function.
2006-01-02 15:11:14 +00:00
Chong Yidong
b2a41d1250 * custom.el (provide-theme): Ban `user' theme name.
(custom-enabling-themes): New variable.
	(enable-theme): Don't enable user if custom-enabling-themes is t.
	(custom-enabled-themes): Make it a defcustom.
	(custom-theme-recalc-face): No-op if face is undefined.
2005-12-31 20:49:22 +00:00
Richard M. Stallman
8913f945ec (custom-load-themes): Function deleted. 2005-12-30 22:58:31 +00:00
Chong Yidong
6aab19aa50 * custom.el (custom-push-theme): Fix docstring. 2005-12-24 15:22:47 +00:00
Chong Yidong
c5d290fb3b * custom.el (custom-push-theme): Fix docstring.
* cus-edit.el (custom-variable-set, custom-variable-save,
	custom-variable-save): Custom-quote widget values.
	(customize-save-variable): Fix custom-push-theme call.
2005-12-24 15:21:45 +00:00
Chong Yidong
d820f1fbfe 2005-12-23 Chong Yidong <cyd@stupidchicken.com>
* custom.el (custom-push-theme): Clarify docstring.  VALUE nil for
	reset means to remove setting from theme entirely.  Don't keep
	expanding theme-settings list; delete old entries if necessary.

	* cus-edit.el (custom-buffer-create-internal): Move "Erase
	customization" button one line up.
	(custom-themed): New face.
	(custom-magic-alist): New value, THEMED, for theme settings.
	(custom-variable-state-set): Check theme-value.
	(custom-variable-reset-standard, custom-face-reset-standard):
	Remove theme setting entirely.
2005-12-24 01:26:54 +00:00
Chong Yidong
e335f09e0e * custom.el (enable-theme): Signal error if argument is not a
theme.  Don't recalculate a face if it's not loaded yet.

	* cus-face.el (custom-theme-set-faces): Don't change saved-face if
	the `user' theme is in effect.
2005-11-25 18:00:10 +00:00
Juri Linkov
11ee7d4e70 (defcustom): Update link types in docstring. 2005-11-21 07:56:50 +00:00
Stefan Monnier
45aacac640 (defgroup): Add doc-string-elt info. 2005-11-21 00:01:06 +00:00
Stefan Monnier
67a60caa35 (defface, defcustom): Add `doc-string' declaration. 2005-10-24 16:17:11 +00:00
Chong Yidong
d5c16b0523 * custom.el (custom-push-theme): Handle the case where a symbol is
bound but face properties have not yet been assigned.
2005-09-12 22:05:17 +00:00
Chong Yidong
f4885d8137 Fix last change to custom-push-theme. 2005-09-06 03:14:46 +00:00
Chong Yidong
79a0aa1174 Custom Theme bugfixes. 2005-09-05 19:50:02 +00:00
Chong Yidong
87d737aed0 *** empty log message *** 2005-09-04 18:00:43 +00:00
Stefan Monnier
b6790c3eec (custom-theme-set-variables): Sort minor modes last. 2005-08-24 11:49:07 +00:00
Thien-Thi Nguyen
0d30b33766 Update years in copyright notice; nfc. 2005-08-06 22:13:43 +00:00
Juri Linkov
9b05fb2280 (custom-known-themes): Delete duplicate words. 2005-07-18 15:17:30 +00:00
Luc Teirlinck
c94112bff8 Whitespace changes. 2005-07-14 01:19:10 +00:00
Luc Teirlinck
f0856b6f49 (custom-initialize-safe-set, custom-initialize-safe-default): Further doc fixes. 2005-07-14 01:17:35 +00:00
Luc Teirlinck
a042b6ae07 (custom-initialize-safe-set, custom-initialize-safe-default): Doc fixes. 2005-07-14 01:01:37 +00:00
Luc Teirlinck
051268946f (custom-reevaluate-setting): Doc fix. 2005-07-11 23:41:11 +00:00
Juanma Barranquero
ba2c4279e0 (custom-enable-theme): Don't add theme to custom-enabled-themes' with push'
because there is no setf-method for `delq'.
2005-07-11 06:12:55 +00:00
Richard M. Stallman
8989771d60 (custom-declare-variable): Doc fix. 2005-07-11 05:41:57 +00:00
Richard M. Stallman
d2dafb85a5 Fix previous change. 2005-07-11 01:05:17 +00:00
Richard M. Stallman
46ce5febbd (custom-push-theme): Maintain list of the settings
of a given theme in its theme-settings property.
Maintain position of old settings in the theme-value or theme-face property.
(custom-enabled-themes): New variable.
(custom-theme-enabled-p): New function.
(provide-theme): Update custom-enabled-themes.
Disable and reenable the `user' theme.
(require-theme): Doc fix.
(custom-do-theme-reset, custom-remove-theme): Functions deleted.
(custom-theme-value, custom-theme-variable-value): Likewise.
(custom-theme-reset-internal): Likewise.
(custom-theme-load-themes): Fix bugs and use custom-disable-theme.
(custom-enable-theme, custom-disable-theme): New functions.
(custom-variable-theme-value, custom-face-theme-value): Likewise.
(custom-theme-recalc-variable, custom-theme-recalc-face): Likewise.
(custom-theme-reset-variables): Simplify.
(deftheme, custom-declare-theme, custom-make-theme-feature):
Definitions moved.
2005-07-11 00:57:23 +00:00
Luc Teirlinck
ff48d7e6f0 (custom-initialize-safe-set, custom-initialize-safe-default): New functions. 2005-07-10 16:32:59 +00:00
Luc Teirlinck
289e1999ce (custom-variable-p): Make it recursively follow aliases. Mention that
in the docstring.
2005-07-07 23:12:43 +00:00
Lute Kamstra
086add1519 Update FSF's address. 2005-07-04 23:32:44 +00:00
Richard M. Stallman
a4842ffa6e (custom-add-option): Doc fix. 2005-07-03 16:09:07 +00:00