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

161 Commits

Author SHA1 Message Date
Glenn Morris
ae940284fa Add 2009 to copyright years. 2009-01-05 03:18:22 +00:00
Glenn Morris
eb3fa2cfcf Switch to recommended form of GPLv3 permissions notice. 2008-05-06 08:06:51 +00:00
Miles Bader
b03f96dc5a Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1074
2008-02-24 10:09:07 +00:00
Glenn Morris
3d0c2a29ef (custom-theme-set-variables): Sort symbols that are
dependencies before symbols that depend on them.
(custom-enabled-themes): Set after custom-theme-directory.
2008-02-08 07:59:31 +00:00
Glenn Morris
1e281896cf (custom-theme-set-variables): Sort symbols that are
dependencies before symbols that depend on them.
(custom-enabled-themes): Set after custom-theme-directory.
2008-02-08 05:00:46 +00:00
Glenn Morris
279c44082a Richard M. Stallman <rms at gnu.org>
(custom-theme-recalc-face): Use face-spec-set rather than
face-spec-recalc.
2008-01-18 05:41:09 +00:00
Miles Bader
59ce725a3b Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
2008-01-08 20:46:54 +00:00
Glenn Morris
409cc4a3ea Add 2008 to copyright years. 2008-01-07 02:45:14 +00:00
Richard M. Stallman
12c29dba8b (custom-theme-recalc-face): Simply call `face-spec-recalc'. 2007-12-30 03:33:21 +00:00
Juri Linkov
06f5c483ca (custom-note-var-changed): Remove the `interactive'
spec from this new non-interactive function.
2007-11-10 23:03:57 +00:00
Richard M. Stallman
400b960e67 (custom-note-var-changed): New function. 2007-10-26 03:50:56 +00:00
Glenn Morris
fd045a341b (custom-declare-variable): Add :risky and :safe keywords.
(defcustom): Doc fix.
2007-10-25 03:51:50 +00:00
Miles Bader
37cc095b6a Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-851
2007-08-13 13:41:28 +00:00
Glenn Morris
4837b516ea Replace `iff' in doc-strings and comments. 2007-08-08 07:40:09 +00:00
Miles Bader
9aecacd08a Merge from emacs--rel--22
Patches applied:

 * emacs--rel--22  (patch 70-73)

   - Update from CVS

2007-07-25  Glenn Morris  <rgm@gnu.org>

   * Relicense all FSF files to GPLv3 or later.

Revision: emacs@sv.gnu.org/emacs--devo--0--patch-828
2007-07-26 05:28:10 +00:00
Glenn Morris
b4aa60262c Switch license to GPLv3 or later. 2007-07-25 04:50:21 +00:00
Chong Yidong
63212d45a1 (custom-theme-directory): Use user-emacs-directory. 2007-06-13 00:04:16 +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
ebdaed17f4 Johan Bockg� <bojohan at dd.chalmers.se>:
(defface): Doc fix.
2007-04-25 04:44:28 +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