Commit graph

107 commits

Author SHA1 Message Date
Dave Love
01651f075f Don't require cl or easymenu.
(custom-variable-prompt): Test standard-value property, not
user-variable-p.
2000-05-16 15:03:49 +00:00
Stefan Monnier
23c0fb21e7 (custom-face): Fix parenthesis. 2000-04-26 17:12:34 +00:00
Dave Love
fadbdfeafe (Custom-set, Custom-save, Custom-reset-current)
(Custom-reset-saved, Custom-reset-standard)
(custom-group-value-create, custom-group-set, custom-group-save)
(custom-group-reset-current, custom-group-reset-saved)
(custom-group-reset-standard): Use mapc.
(custom-buffer-create-internal): Disable undo when creating items.
Use mapc.
(custom-face): Avoid superfluous lambda.
2000-04-24 20:11:27 +00:00
Stefan Monnier
8cfd634fbe (custom-face, face): Unquote the lambda. 2000-04-17 10:35:10 +00:00
Dave Love
359476e0f0 (custom-sort-items): Avoid symbol-name with new
string-lessp.
2000-04-13 19:05:10 +00:00
Stefan Monnier
d488166820 (hook): Use dolist' instead of CL's mapc'. 2000-03-26 00:12:35 +00:00
Jason Rumney
731d16f169 (custom-button-face) [w32]: Use same face as x.
(custom-button-pressed-face) [w32]: Likewise.
2000-03-21 21:58:32 +00:00
Gerd Moellmann
16b20ed921 (custom-variable-tag-face): Handle case that
default face's height is not a number.
(custom-face-tag-face, custom-group-tag-face-1)
(custom-group-tag-face): Ditto.
(custom-group-tag-face-1): Add :group.
2000-03-16 22:15:26 +00:00
Dave Love
2365594bb1 Doc fixes.
(customize-set-variable, customize-save-variable): Rename args for
doc.
(custom-variable-tag-face, custom-face-tag-face)
(custom-group-tag-face-1, custom-group-tag-face): Modify from
style which user identify as hyperlink.
(hook): Don't add undefined functions to the hook.
(debug-ignored-errors): Transfer message from bindings.el.
2000-03-12 18:50:49 +00:00
Gerd Moellmann
3c708e9898 (custom-hook-convert-widget): Fix comment. 2000-01-09 17:05:34 +00:00
Richard M. Stallman
a34511a1eb (custom-save-delete): Delete all occurrences,
leave point where the first occurrence was.
(custom-save-faces): Insert a newline at the end of the comment.
Avoid a double newline there.
If final closeparen is at bol, put a space before it.
(custom-save-variables): Likewise.
(custom-file): Doc fix.
1999-12-10 19:59:42 +00:00
Dave Love
aec2bb6375 (custom-save-variables, custom-save-faces): Write a
comment warning about editing.
1999-11-29 23:03:09 +00:00
Richard M. Stallman
19d63704de (Custom-reset-standard): Doc fix.
(custom-variable-reset-standard): Doc fix.
(custom-face-reset-standard): Doc fix.
(custom-face-menu): "Reset to Standard" => "Erase Customization".
(custom-variable-menu): Likewise.
(custom-reset-menu): Likewise.
(custom-buffer-create-internal): Likewise.
1999-11-26 19:47:26 +00:00
Dave Love
8d8ca350e7 (customize-face, customize-face-other-window): Require match from
completing-read.
(custom-buffer-done-function): Default to custom-bury-buffer, not
bury-buffer.
1999-11-15 12:36:02 +00:00
Dave Love
6171a94539 (custom-comment-create): Fill :from and :to slots 1999-10-01 22:04:30 +00:00
Dave Love
62633a5f53 (custom-bury-buffer): New function.
(custom-buffer-done-function): Use it.
1999-09-30 16:53:27 +00:00
Dave Love
164cfaeb57 (custom-comment): Change widget definition.
(custom-comment-create, custom-comment-show)
(custom-comment-invisible-p): Don't use :comment-overlay.
(custom-comment-hide): New function.
(custom-variable-set, custom-variable-save)
(custom-variable-reset-standard, custom-face-set)
(custom-face-save): Use it.
1999-09-28 22:09:42 +00:00
Dave Love
d3d4df42e4 Don't define-widget-keywords.
(multimedia): New group.
(custom-last): Function removed.
(custom-quote): Add vectorp case, comment out characterp case.
(custom-buffer-done-function, custom-raised-buttons): New option.
(Custom-buffer-done): New function.
(custom-buffer-create-internal): Obey custom-raised-buttons,
Custom-buffer-done.
(custom-button-face): Make it `released-button'.
(custom-button-pressed-face): Make it `pressed-button'
(custom-mode-map): Bind "q" to Custom-buffer-done.
(custom-mode): Deal with raised/pressed buttons.

Changes from Didier Verna:
(custom-prompt-variable): Optional third arg makes prompt for a comment
string.
(customize-set-value, customize-set-variable, customize-save-variable):
Optional prefix makes function handle variable comments.
(customize-customized, customize-saved, custom-variable-state-set)
(custom-variable-set, custom-variable-save, custom-face-state-set)
(custom-variable-reset-saved, custom-variable-reset-standard)
(custom-face-set, custom-face-save, custom-face-reset-saved)
(custom-face-reset-standard, customize-save-customized): Handle custom
comments.
(custom-comment-face, custom-comment-tag-face): New face.
(custom-comment): New widget.
(custom-comment-create, custom-comment-delete)
(custom-comment-value-set, custom-comment-show)
()custom-comment-invisible-p): New functions.
(custom-variable-value-create, custom-face-value-create): Create a
comment field widget.
(custom-variable-menu, custom-face-menu): New entry for custom comment.
(custom-face-value-create): Remove compatibility code.
(custom-save-variables, custom-save-faces): Possibly save custom comments.
1999-09-13 13:44:41 +00:00
Markus Rost
d151422c72 (custom-save-variables, custom-save-faces): Sort
the entries to make custom-file more readable.
1999-07-25 14:29:22 +00:00
Karl Heuer
cbe8bb8e18 (custom-save-delete): Avoid error for empty .emacs. 1999-07-25 05:50:42 +00:00
Karl Heuer
fa08de9625 (custom-variable-prompt): Allow customization of
autoloaded symbols.
1999-03-23 00:58:50 +00:00
Markus Rost
9a3f3bf439 (custom-save-delete): First scan the custom-file. Thus exit with an
error in case the custom-file contains a non-closed open parenthesis.
1999-01-10 06:17:49 +00:00
Richard M. Stallman
d089be69dc (custom-save-delete): Don't delete whitespace
and comments before the sexp that is replaced.
1999-01-06 08:40:50 +00:00
Karl Heuer
3e36b84953 (custom-save-delete): Save point before
reading a sexp, rather than backing up.
1998-12-02 18:15:26 +00:00
Karl Heuer
2a1c4b9034 (Custom-mode-menu): Fix info node name.
(customize group): Fix info node name.
1998-09-30 19:20:04 +00:00
Karl Heuer
dbd7a811cc (Custom-save, Custom-reset-current, Custom-reset-saved)
(Custom-reset-standard): Fix menu inconsistency.
1998-09-10 15:43:50 +00:00
Karl Heuer
41b3e67c3f (customize-option): Refuse to customize
a variable that has no defcustom.  But if variable is autoloaded,
first try to load the library that defines it.
1998-09-04 20:48:11 +00:00
Karl Heuer
e418be2696 (customize-version-lessp): Handle a number as VERSION2.
(customize-changed-options-previous-release): New variable.
(customize-changed-options): Use that variable as default arg.
1998-08-26 20:08:30 +00:00
Richard M. Stallman
65f64d008a (customize-changed-options): Clean up previous change. 1998-07-02 22:29:15 +00:00
Andreas Schwab
c992338c72 (custom-magic-show): Use `other' widget type. 1998-06-24 09:36:08 +00:00
Dan Nicolaescu
1e484d64bd *** empty log message *** 1998-06-22 02:10:41 +00:00
Karl Heuer
09da65202e (customize-group-other-window): Fix previous change. 1998-06-04 06:07:39 +00:00
Karl Heuer
b4854a2383 (customize-group, customize-group-other-window)
(custom-buffer-create, custom-buffer-create-other-window)
(customize-browse): Use pop-to-buffer.
(same-window-regexps): Add autoload to add regexp to match custom bfrs.
1998-06-02 06:56:44 +00:00
Richard M. Stallman
4599e8cd59 (convenience): New group. 1998-05-15 05:02:29 +00:00
Richard M. Stallman
fd88fe732d (customize-group-other-window): Handle groups not
yet loaded.  If buffer exists, use it unchanged.  Rename parameter
and update doc string.
1998-05-09 04:59:22 +00:00
Dan Nicolaescu
cd32a7baa4 *** empty log message *** 1998-04-20 02:34:53 +00:00
Dan Nicolaescu
a55d9b3b13 *** empty log message *** 1998-04-18 18:20:15 +00:00
Karl Heuer
176eb8cb50 (custom-file): New function.
(custom-save-delete): Use it.
(custom-save-all): Use it.
1998-02-25 22:46:28 +00:00
Andreas Schwab
1edec9cfea (custom-browse-visibility): Doc fix. 1998-01-07 10:45:56 +00:00
Richard M. Stallman
39a10fc6e8 (customize-changed-options): Doc fix. 1998-01-02 21:17:27 +00:00
Karl Heuer
f50dc5d269 (customize-changed-options): New function.
(customize-version-lessp): New function.
1997-12-09 21:41:33 +00:00
Karl Heuer
d64478da0b (custom-unlispify-remove-prefixes): Reference to
related variables added.
(custom-variable-default-form): New variable controlling default
display form for customization of variables.
(custom-variable): widget `:form' is nil before initialization.
(custom-variable-value-create): Initialize `:form' to
`custom-variable-default-form'.
(custom-face-default-form): New variable controlling default
display form for customization of faces.
(custom-face): widget `:form' is nil before initialization.
(custom-face-value-create): Initialize `:form' to
`custom-face-default-form'.
1997-12-04 05:49:21 +00:00
Karl Heuer
fc4d62fe1b (custom-save-delete, custom-save-all):
Bind default-major-mode around visiting custom-file.
1997-12-04 04:30:59 +00:00
Karl Heuer
db9d97e1f5 (custom-variable-prompt): Ensure valid variable name
is selected.
1997-12-04 04:29:45 +00:00
Karl Heuer
6321bdddfb (custom-face-save): Save the face. 1997-11-15 20:56:41 +00:00
Karl Heuer
4743fc911e (hook): Use `widget-group-match' instead of
`widget-editable-list-match'.
1997-10-24 19:33:49 +00:00
Karl Heuer
98d5aafec1 (custom-group-value-create): Use
`custom-group-visibility' instead of `group-visibility'.
1997-10-21 03:04:39 +00:00
Richard M. Stallman
5aa3f181e5 (customize-group): Handle groups not yet loaded.
(hook) [:value-to-internal]: Use a nil value unchanged.
1997-09-12 19:43:45 +00:00
Richard M. Stallman
896a6a5d6e (custom-face-menu): Use custom-face-save-command. not custom-face-save.
(custom-face-save-command): New function.
(custom-variable-save): Fix error message.
1997-09-12 07:04:41 +00:00
Richard M. Stallman
0db1ff2312 (custom-variable-save): Fixed doc string.
(custom-variable-menu): Make it clear that `Lisp
mode' edit the initial lisp expression.
1997-09-09 00:21:07 +00:00