1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-27 07:37:33 +00:00
Commit Graph

144 Commits

Author SHA1 Message Date
Per Abrahamsen
4f9b906041 2002-02-11 Per Abrahamsen <abraham@dina.kvl.dk>
* toolbar/tool-bar.el (tool-bar-mode): Removed standard value.
	* menu-bar.el (menu-bar-mode): Ditto.
	* cus-edit.el (customize-mark-to-save): Always save variables
	without a standard value.

	* menu-bar.el (menu-bar-make-toggle): Made it aware of customize.
	(menu-bar-options-save): Ditto.
	(menu-bar-showhide-menu): Ditto.
	(menu-bar-options-menu): Ditto.
	(menu-bar-scroll-bar-right, menu-bar-scroll-bar-left,
	menu-bar-scroll-bar-none): Removed.
	(menu-bar-showhide-scroll-bar-menu): Use customize aware lambda
	expressions instead.

	* cus-edit.el (customize-set-value): Return value.
	(customize-set-variable): Ditto.
	(customize-save-variable): Ditto.
	(customize-set-variable): Load dependencies before setting value.
        (custom-load-symbol): Autoload it.
	(customize-mark-as-set): New function.
2002-02-11 16:47:55 +00:00
Per Abrahamsen
414fd7021a 2002-02-05 Per Abrahamsen <abraham@dina.kvl.dk>
* cus-edit.el (customize-mark-to-save): New function.
	* menu-bar.el (menu-bar-options-save): Rewrote.
2002-02-07 17:32:18 +00:00
Pavel Janík
901cd78b4a Fix typo in prompt. 2002-02-02 15:52:36 +00:00
Richard M. Stallman
82d3d6946e (custom-save-all): Bind file-precious-flag to t for saving .emacs. 2002-01-24 18:56:45 +00:00
Richard M. Stallman
b5555381f2 (custom-face-edit-fix-value): Delete `assert' call.
(various face definitions): Use :weight and :slant.
2001-12-31 20:22:27 +00:00
Richard M. Stallman
d75fa08f60 (custom-face-edit-fix-value): New function.
(custom-face-edit): Use it, to convert :italic and :bold to new forms.
2001-12-31 20:13:54 +00:00
Richard M. Stallman
c6aedc9284 (custom-load-symbol): Don't always load locate-library. 2001-11-27 05:26:27 +00:00
Per Abrahamsen
61763509f2 2001-11-07 Per Abrahamsen <abraham@dina.kvl.dk>
* cus-edit.el (custom-face-value-create): Don't ignore the
	`customized-face' attribute when finding the current face spec.
2001-11-08 09:57:20 +00:00
Per Abrahamsen
a84ff57ae1 Backed out last change. 2001-11-07 08:03:55 +00:00
Per Abrahamsen
5519ece6d2 2001-11-07 Per Abrahamsen <abraham@dina.kvl.dk>
* cus-edit.el (custom-face-menu): Clarify menu entry.
2001-11-07 07:56:02 +00:00
Miles Bader
3ea051cb61 (custom-face-edit-convert-widget)
(custom-face-edit-deactivate, custom-face-edit-activate)
(custom-face-edit-delete, custom-face-edit-attribute-tag):
New functions.
(custom-face-edit): Specify a custom :convert-widget.
(custom-pre-filter-face-spec, custom-post-filter-face-spec):
Don't pass in default filters that map between `nil' and `off' and
`unspecified' and `nil'.
2001-10-05 13:03:57 +00:00
Eli Zaretskii
a9bcbf3f60 (custom-buffer-create-internal): Remove "100%" from
the message "Creating customization items...done".
2001-09-06 08:25:31 +00:00
Pavel Janík
e8af40eed4 Some fixes to follow coding conventions. 2001-07-16 12:23:00 +00:00
Eli Zaretskii
558771ba0d (custom-file): Fix last change. 2001-05-28 07:13:32 +00:00
Eli Zaretskii
71261a01d3 (custom-file): Don't assume we were invoked with -q unless ~/.emacs exists. 2001-05-27 10:38:51 +00:00
Gerd Moellmann
f1f65349f4 (custom-comment-show): Remove debug code. 2001-05-22 09:46:32 +00:00
Gerd Moellmann
6a239292f7 (custom-file): Signal an error if user-init-file is
nil (running -q).
2001-05-07 14:02:56 +00:00
Gerd Moellmann
189638d565 (custom-save-delete): Move in front of local
variables, otherwise long Custom entries would make them
ineffective.
2001-03-07 15:21:35 +00:00
Miles Bader
e475612a27 (custom-face-save): Do post-processing on the face's new value like
`custom-face-set' does.
2001-01-20 01:24:15 +00:00
Dave Love
1751c874dc (customize-menu-create): Fix the :filter. 2001-01-12 12:59:53 +00:00
Gerd Moellmann
fda514f7b6 (custom-save-variables, custom-save-faces):
Comment fix.
2000-12-11 10:42:44 +00:00
Gerd Moellmann
c069a9d325 (custom-face-value-create): Always emphasize tag. 2000-11-30 13:01:40 +00:00
Dave Love
9c6a4107e4 (face): Fix :format. 2000-11-29 11:17:47 +00:00
Miles Bader
f5b50baad3 (custom-filter-face-spec, custom-pre-filter-face-spec)
(custom-post-filter-face-spec): New functions.
(custom-face-set, custom-face-value-create): Filter the face spec
before and after customization.
(custom-face-set): If VALUE specifies a null face, pass a
non-null-but-otherwise-ignored face-spec instead to `face-spec-set'.
2000-11-24 09:09:55 +00:00
Dave Love
6b29231253 (custom-buffer-create-internal): Save some consing.
(custom-variable-set): Improve validation error mesage.
2000-11-22 17:52:24 +00:00
Stefan Monnier
b92aaee07c (custom-mode-map): Switch back to a sparse keymap. 2000-10-31 21:06:51 +00:00
Miles Bader
a62ebc520c (custom-face-value-create): If face name doesn't end with "face", add
such here (similar to custom group widgets).
2000-10-29 14:49:01 +00:00
Stefan Monnier
e8d4d4dadb (custom-mode-map): Use a sparse map.
(custom-mode): Don't bother with make-local-hook.
2000-10-27 00:55:09 +00:00
Dave Love
7f352f861c (custom-mode): Add `special' mode-class property. 2000-10-26 09:32:19 +00:00
Jason Rumney
3060662ffb (custom-button-face, custom-button-pressed-face): Merge x w32 and mac
definitions.
2000-10-25 18:45:11 +00:00
Andrew Choi
1a578e9be2 Initial check-in: changes for building Emacs under Mac OS.
2000-10-23  Andrew Choi  <akochoi@i-cable.com>

	* dispextern.h [macintosh]: Include macgui.h instead of macterm.h.

	* dispnew.c [macintosh]: Include macterm.h.
	(init_display) [macintosh]: initialization for window system.

	* emacs.c (main) [macintosh]: Call syms_of_textprop,
	syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
	syms_of_search, x_term_init, and init_keyboard before calling
	init_window_once.  Also, call syms_of_xmenu.

	* fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
	default fontset to Monaco.

	* frame.c [macintosh]: Include macterm.h.  Remove declarations of
	NewMacWindow and DisposeMacWindow.
	(make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
	instead of calling NewMacWindow and setting fields of
	f->output_data.mac directly.  Call init_frame_faces.
	(Fdelete_frame) [macintosh]: Remove unused code.
	(Fmodify_frame_parameters) [macintosh]: Call
	x_set_frame_parameters instead of mac_set_frame_parameters.

	* frame.h [macintosh]: Define menu_bar_lines field in struct
	frame.  Define FRAME_EXTERNAL_MENU_BAR macro.

	* keyboard.c [macintosh]: Include macterm.h.
	(kbd_buffer_get_event) [macintosh]: Generate delete_window_event
	and menu_bar_activate_event type events as for X and NT.
	(make_lispy_event) [macintosh]: Construct lisp events of type
	MENU_BAR_EVENT as for X and NT.

	* sysdep.c [macintosh]: Remove declaration for sys_signal.
	Include stdlib.h.  Remove definition of Vx_bitmap_file_path.
	(sys_subshell) [macintosh]: Remove definition entirely.
	(init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
	Vwindow_system_version here.  Remove initialization of
	Vx_bitmap_file_path.
	(read_input_waiting): Correct the number of parameters passed to
	read_socket_hook.
	Move all Macintosh functions to mac/mac.c.

	* term.c [macintosh]: Include macterm.h.

	* window.c [macintosh]: Include macterm.h.

	* xdisp.c [macintosh]: Include macterm.h.  Declare
	set_frame_menubar and pending_menu_activation.
	(echo_area_display) [macintosh]: Do not return if terminal frame
	is the selected frame.
	(update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
	Allow only the selected frame to set menu bar.
	(redisplay_window) [macintosh]: Obtain menu bar to redisplay by
	calling FRAME_EXTERNAL_MENU_BAR (f).
	(display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).

	* xfaces.c [macintosh]: Include macterm.h.  Define x_display_info
	and check_x.  Declare XCreateGC.  Define x_create_gc and
	x_free_gc.  Initialize font_sort_order.
	(x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
	but call x_list_fonts instead of w32_list_fonts.
	(Finternal_face_x_get_resource) [macintosh]: Do not call
	display_x_get_resource.
	(prepare_face_for_display) [macintosh]: Set xgcv.font.
	(realize_x_face) [macintosh]: Load the font if it is specified in
	ATTRS.
	(syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed
	to Qt.

	* cus-edit.el (custom-button-face): Use 3D look for mac.
	(custom-button-pressed-face): Likewise.

	* faces.el (set-face-attributes-from-resources): Handle mac frames
	in the same way as x and w32 frames.
	(face-valid-attribute-values): Likewise.
	(read-face-attribute): Likewise.
	(defined-colors): Likewise.
	(color-defined-p): Likewise.
	(color-values): Likewise.
	(display-grayscale-p): Likewise.
	(face-set-after-frame-default): Likewise.
	(mode-line): Same default face as for x and w32.
	(tool-bar): Likewise.

	* frame.el: Remove call to frame-notice-user-settings at end of
	the file.

	* info.el (Info-fontify-node): make underlines invisible for mac
	as for x, pc, and w32 frame types.

	* term/mac-win.el: New file.
2000-10-22 16:50:16 +00:00
Miles Bader
61fb10d04e (custom-face-tag-face, custom-group-tag-face-1)
(custom-group-tag-face, custom-variable-tag-face):
  Use relative :height and inherit from `variable-pitch' face instead of
  hardwiring :family.
2000-09-20 02:06:45 +00:00
Dave Love
ba8cb52d56 (custom-variable-reset-saved, custom-variable-reset-standard): Remove
unused bindings.
2000-07-18 12:52:25 +00:00
Dave Love
91a38db1dd (custom-buffer-create-internal): Use a help-echo function to be more
specific.
2000-07-16 15:31:10 +00:00
Dave Love
d04a3972bf (custom-group-menu-create, customize-menu-create): Use :filter, per old
XEmacs code.
2000-07-13 17:06:15 +00:00
Gerd Moellmann
83e7159c66 (custom-button-face, custom-button-pressed-face):
Specify foreground color.
2000-06-23 05:56:08 +00:00
Dave Love
26c67de87d (customize-changed-options): Check arg.
(customize-version-lessp): Don't require decimal point.
2000-06-20 09:48:09 +00:00
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