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

309 Commits

Author SHA1 Message Date
Richard M. Stallman
e29e9065b1 (custom-save-all): Error if saving in .emacs and it had an error when loaded. 2006-11-05 15:17:49 +00:00
Juanma Barranquero
10cb6e7b96 (custom-unlispify-menu-entries, custom-unlispify-tag-names,
custom-prompt-variable): Use "non-nil" in docstrings.
2006-11-03 15:06:26 +00:00
Chong Yidong
b0c4ae71dc * wid-edit.el (widget-button-click-moves-point): New variable.
(widget-button-click): If widget-button-click-moves-point is
	non-nil, set point after performing the button action

	* cus-edit.el (custom-mode): Set widget-button-click-moves-point.
2006-09-30 15:45:35 +00:00
Chong Yidong
31b7fa51d6 * cus-edit.el (custom-save-all): Switch to emacs-lisp mode before
saving anything to be sure that `forward-sexp' behaves correctly.
2006-09-29 18:31:33 +00:00
Richard M. Stallman
83ff1415e5 (custom-buffer-create-internal): In `emacs -q',
explain why Save is not available.
2006-09-22 21:47:00 +00:00
Richard M. Stallman
0518917aaa (mode-line): Renamed from modeline. All uses changed. 2006-09-14 23:53:55 +00:00
Richard M. Stallman
809f0c3561 (custom-menu-create): Bind deactivate-mark here
(custom-group-menu-create): Not here.
2006-09-08 11:57:05 +00:00
Chong Yidong
b1674d6103 * cus-edit.el (custom-group-menu-create): Avoid deactivating the
mark after running the menu filter.
2006-09-03 14:13:37 +00:00
Richard M. Stallman
adcc7a37ed (custom-save-variables): Slight cleanup.
(Custom-no-edit): Renamed from custom-no-edit.
(Custom-newline): Renamed from custom-newline.
(custom-mode-map): Use new names.
2006-08-31 23:16:03 +00:00
Richard M. Stallman
19f0515ada (custom-newline): New function.
(custom-mode-map): Bind newline to custom-newline.
2006-08-16 05:05:08 +00:00
Chong Yidong
a8da2abd40 * cus-edit.el (custom-no-edit): Revert 2006-07-27 change, so that
self-insert-command keys don't activate buttons.
	(custom-mode-map): Just don't bind "\C-m" to `custom-no-edit'.
2006-07-28 18:08:11 +00:00
Richard M. Stallman
7eb944cfa0 (customize-package-emacs-version-alist): Doc fix.
(customize-package-emacs-version): Change msg when pkg has no entry.
(custom-no-edit): On a button, do like widget-button-press.
2006-07-28 03:31:44 +00:00
Stefan Monnier
e0a0d9fe5c (custom-variable-state-set): If the variable was originally set outside
custom, but to the same value as the default, consider it to be standard.
2006-07-17 21:24:17 +00:00
Richard M. Stallman
0ce026b1d2 (custom-no-edit): New command.
(custom-mode-map): Remap to custom-no-edit instead of
using suppress-keymap.
2006-07-12 15:56:33 +00:00
Eli Zaretskii
81711dbab8 (customize-apropos): A better error message.
(top level) <debug-ignored-errors>: Extend and update the list of ignored
error messages.
2006-06-23 13:17:44 +00:00
Richard M. Stallman
161c71277e (customize-option, customize-option-other-window): Error if SYMBOL is nil. 2006-06-19 21:46:54 +00:00
Richard M. Stallman
11f0cdf824 (custom-guess-name-alist): Recognize `-flag'. 2006-06-16 15:12:09 +00:00
Luc Teirlinck
dbc1f997bd (custom-documentation): Avoid nil spec in defface. 2006-04-21 23:38:54 +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
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
Luc Teirlinck
2071d18477 (customize-changed-options): Mention explicit version number as
default in prompt.
2006-03-17 23:12:14 +00:00
Eli Zaretskii
33709261ef (custom-quote): Remove function since it has been moved to custom.el. 2006-03-03 12:23:29 +00:00
Chong Yidong
8ed50a66d3 * cus-edit.el (customize-set-variable): Push setting to `user' theme. 2006-02-19 17:27:37 +00:00
Chong Yidong
2d656942f6 * cus-edit.el (custom-save-variables): Allow unthemed values. 2006-02-19 15:50:09 +00:00
Chong Yidong
9ca6610316 * cus-edit.el (custom-mode): Update docstring. 2006-02-15 02:43:55 +00:00
Chong Yidong
bb55f90e4a * wid-edit.el (widget-keymap): Bind down-mouse-1 to
widget-button-click.

	* cus-edit.el (custom-mode-map): Remove mouse-1 binding.
2006-02-15 02:41:02 +00:00
Chong Yidong
e1ec62a596 * wid-edit.el (widget-button-click): Use :pressed-face property
for overlay face, if it exists.

	* cus-edit.el (custom-manual, custom-add-see-also)
	(custom-add-parent-links, custom-group-link): Add :pressed-face
	property to links.
2006-02-14 20:16:04 +00:00
Richard M. Stallman
61e802854e (custom-mode): Doc: Use advertised-widget-backward. 2006-01-26 18:00:29 +00:00
Juri Linkov
192e44fc8e (custom-buffer-create-internal): Use widget type
`custom-manual' instead of `info-link' and don't set properties
`button-face' and `mouse-face' explicitly.
(custom-browse-group-tag, custom-browse-variable-tag)
(custom-browse-face-tag): Inherit from widget class
`custom-group-link' instead of `push-button'.
(custom-button-unraised): Inherit from `underline' face.
(custom-link): Inherit from `link' face.  Fix doc and group.
(custom-add-parent-links, custom-group-value-create): Don't set
properties `button-face' and `mouse-face' explicitly for
`custom-group-link' widget.
(custom-group-link): Add properties `button-face' and `mouse-face'
to widget definition.
(custom-field-keymap): New variable.  Put `custom-field-keymap' to
editable-field's :keymap property.
(custom-mode): Fix docstring: substitute keybindings for
`widget-forward' and `widget-backward' from `widget-keymap',
`widget-complete' from `custom-field-keymap', replace old
`Custom-move-and-invoke' with `widget-move-and-invoke'.  Untabify.
2006-01-23 01:21:24 +00:00
Luc Teirlinck
633bb8a9b1 (custom-buffer-create-internal): State in the text above
the whole buffer buttons that they do not operate on hidden items.
(custom-face-menu): Use `custom-face-save' instead of
`custom-face-save-command'.
(custom-face-save-command): Make it an alias for `custom-face-save'
and declare it obsolete.
(custom-face-save): Doc fix.
2006-01-19 23:26:04 +00:00
Luc Teirlinck
c111d7aedc (customize-rogue): Minor doc fix. 2006-01-17 04:28:42 +00:00
Luc Teirlinck
025fddd4ed (Custom-set, Custom-save, Custom-reset-current, Custom-reset-saved):
Do not ask for confirmation in single option buffers.
2006-01-15 03:15:25 +00:00
Eli Zaretskii
83dc149dec (custom-add-see-also, custom-add-parent-links): Make sure the links use
the `custom-link' face.
2006-01-13 19:50:10 +00:00
Luc Teirlinck
70482877f5 (custom-reset-menu, custom-buffer-create-internal)
(custom-variable-menu, custom-face-menu, custom-group-menu)
(Custom-mode-menu): Change names of menu items.  (As discussed on emacs-devel.)
(custom-face-menu): Add "Undo Edits" item.
2006-01-12 02:25:59 +00:00
John Paul Wallington
ee5137b3ae (custom-comment) <defface>: Add TTY definitions. 2006-01-09 23:14:26 +00:00
Richard M. Stallman
671779752f (Custom-set, Custom-save): Doc fix.
(Custom-reset-current, Custom-reset-saved): Change question text.
(Custom-reset-standard): Likewise.
(custom-variable-reset-saved): Doc fix.
2006-01-08 03:55:27 +00:00
Chong Yidong
eaa9920556 (custom-reset-menu, Custom-mode-menu)
(custom-variable-menu, custom-face-menu, custom-group-menu):
	Move back to previous ordering.
2006-01-04 21:23:20 +00:00
Chong Yidong
b76747af07 * cus-edit.el (custom-face-save): Push to theme-face before
setting face spec.
2006-01-04 20:16:50 +00:00
Chong Yidong
0c7310460c * cus-edit.el (custom-reset-menu, Custom-mode-menu)
(custom-variable-menu, custom-face-menu, custom-group-menu):
	Undo last change.
	(Custom-reset-current, Custom-reset-saved)
	(Custom-reset-standard): Fix y-or-n-p messages.
2006-01-04 17: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
Luc Teirlinck
4b1e820dc0 (custom-buffer-create-internal): Move whole buffer "Erase Customization"
button back to same position it occupies in the individual State menus.
2006-01-04 02:52:41 +00:00
Chong Yidong
3ee073674a * cus-edit.el (custom-guess-name-alist, custom-guess-doc-alist):
Move to `custom-buffer' group.
2006-01-02 22:27: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
Richard M. Stallman
b8919739a6 Fix previous change. 2006-01-02 03:43:35 +00:00
Richard M. Stallman
107736a270 (Custom-set, Custom-save): Ask for confirmation.
(Custom-reset-current, Custom-reset-saved): Likewise.
(Custom-reset-standard): Likewise.
(custom-mode): Doc fix, describing those commands.
2006-01-02 03:38:43 +00:00
Chong Yidong
85a5eb0eb0 * cus-edit.el (custom-button-mouse): New variable.
(custom-button-mouse): New face.
	(custom-raised-buttons, custom-mode): Use it.

	* cus-theme.el (custom-new-theme-mode): Use custom-button-mouse.
2005-12-31 16:26:01 +00:00
Richard M. Stallman
a8d6ee3c53 (custom-save-loaded-themes): Function deleted.
(custom-save-all): Don't call custom-save-loaded-themes.
2005-12-30 22:57:07 +00:00
Richard M. Stallman
16ecd4c5b1 (custom-save-loaded-themes): Call custom-save-delete.
(custom-save-all): Call custom-save-loaded-themes.
(custom-save-variables): Don't delete or add custom-load-themes call.
2005-12-30 22:44:36 +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