1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-14 09:39:42 +00:00
Commit Graph

312 Commits

Author SHA1 Message Date
Eli Zaretskii
8a3d1f8b94 (IT-unicode-translations): New variable.
(IT-setup-unicode-display): New function.
2001-06-01 12:18:39 +00:00
Eli Zaretskii
e2f599e95b (tty-color-define, tty-color-off-gray-diag)
(tty-color-translate, tty-color-by-index, tty-color-values)
(tty-color-desc): Doc fix.
2001-04-29 10:11:11 +00:00
Gerd Moellmann
2025ddca15 (x-handle-xrm-switch): Accept more than one -xrm
switch, like xterm, and concat resource strings, with a newline
between them.
2001-03-06 14:02:02 +00:00
Eli Zaretskii
1bd6203653 Update copyright notice. 2001-03-04 07:12:41 +00:00
Eli Zaretskii
c88c89a03a (msdos-handle-reverse-video): Look for reverse in
default-frame-alist as well.
2001-03-02 13:34:48 +00:00
Gerd Moellmann
2991b258b6 (mouse-set-font): Doc fix. 2001-01-31 14:07:48 +00:00
Eli Zaretskii
8f289accc6 (redisplay-dont-pause): Set to t to alleviate display problems. 2001-01-31 07:49:43 +00:00
Eli Zaretskii
6d435deb17 ([M-delete]): Remap to M-d. 2000-12-14 16:53:25 +00:00
Andrew Choi
591b63b424 * term/mac-win.el: Remove load for ls-lisp.
* loadup.el: Load ls-lisp for system-type macos.
2000-12-12 05:04:07 +00:00
Andrew Innes
30cd075d94 Remove stuff about selection timeout, which is
irrelevant on Windows.  Move clipboard support to w32-fns.el, so
it is accessible in -nw mode.
2000-12-08 14:34:15 +00:00
Jason Rumney
dc55849498 (x-select-enable-clipboard): Customize (as per the Emacs Lisp manual) 2000-12-02 14:47:35 +00:00
Eli Zaretskii
8c7178105c (x-select-enable-clipboard): Customize (as per the Emacs Lisp manual). 2000-12-02 11:21:44 +00:00
Dave Love
d14518d852 (x-select-enable-clipboard): Customize (per lispref). 2000-11-27 17:10:15 +00:00
Kenichi Handa
dfc064f2b5 (decode-mac-roman, encode-mac-roman, mac-roman): Moved to european.el.
(ccl-encode-mac-roman-font, fontset-mac): Modified for
mule-unicode-2500-33ff and mule-unicode-e000-ffff.
(mac-roman-kbd-insert, mac-roman-kbd-mode): These functions deleted.
(mac-roman-kbd-mode, mac-roman-kbd-mode-map): These variables deleted.
2000-10-31 04:17:17 +00:00
Eli Zaretskii
f30846b1a8 (x-long-option-alist, msdos-handle-args): Remove;
startup.el now does that for all character-terminal frames.
2000-10-28 17:19:36 +00:00
Andrew Choi
8f47302e25 Andrew Choi <akochoi@i-cable.com>
* international/mule-conf.el (mac-roman-lower, mac-roman-upper):
        New charsets.

        * term/mac-win.el: Remove definitions of mac-roman-lower and
        mac-roman-upper, require dired, and define instead of set
        mac-ready-for-drag-n-drop to avoid compilation error.

        * src/macterm.c (XTread_socket): check whether Lisp variable
        mac-ready-for-drag-n-drop is bound rather than non-nil value.
2000-10-23 17:49:59 +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
Eli Zaretskii
c8ad9e9564 (color-name-rgb-alist): Add a comment explaining why some "light*"
colors are deliberately absent from the alist.
2000-10-19 07:18:06 +00:00
Eli Zaretskii
8fcacf13ee (msdos-handle-reverse-video): Don't remove
reverse from the frame parameters, and don't invert foreground and
background colors.
2000-10-16 19:17:35 +00:00
Stefan Monnier
399ede1371 (bg-mouse-report): screen-height -> frame-height. 2000-08-16 20:29:14 +00:00
Eli Zaretskii
1418556591 Fix a typo in a comment. Reported by Michel de Ruiter <Michel@smr.nl>. 2000-07-31 10:27:45 +00:00
Jason Rumney
8322784013 Make FONTNAME arg to set-fontset-font a cons. 2000-07-15 11:49:36 +00:00
Gerd Moellmann
d8aa822b22 (bg-window-from-x-y): Use some-window instead
of cycling through windows with next-window.
2000-07-03 09:11:33 +00:00
Gerd Moellmann
a74b0a725a (sup-pos-to-window): Use some-window instead
of cycling through windows with next-window.
2000-07-03 09:11:03 +00:00
Sam Steingold
3a8e2ba917 ignore *.elc 2000-06-19 16:16:01 +00:00
Gerd Moellmann
38fb1ad4a7 (x-colors): Add colors from recent rgb.txt. 2000-06-11 12:14:57 +00:00
Jason Rumney
de0c7b5d2c Doc changes to reduce diffs with x-win.el.
Reenable code to create initial fontsets.
Use set-fontset-font in place of put-charset-property.
2000-05-30 22:34:26 +00:00
Eli Zaretskii
bb8aea8629 (IT-character-translations): More updates of
latin-iso8859-14 and latin-iso8859-15 from the latest ISO/IEC
documents.
2000-05-15 15:17:19 +00:00
Eli Zaretskii
f3a3ea9a0a Fix last change. 2000-05-09 09:27:16 +00:00
Eli Zaretskii
c35ba278a4 (IT-character-translations): Update ASCII
simulations for greek-iso8859-7, add latin-iso8859-14 and
latin-iso8859-15.
2000-05-08 13:58:53 +00:00
Eli Zaretskii
7b081c7882 (cjk-codepages-alist): Add associations for
Chinese and Korean codepages.
2000-05-04 16:12:32 +00:00
Kenichi Handa
9111d4b571 Fontsets related initialization is simplified. 2000-03-21 00:34:45 +00:00
Jason Rumney
f9de6f69e9 (mouse-set-font): Do not build fontset from chosen font. 2000-02-27 21:11:51 +00:00
Dave Love
3247de96ce (internal-face-interactive): Update prompt for new read-face-name. 2000-02-23 20:44:04 +00:00
Andrew Innes
90abecd329 (x-handle-args): Comment out call to message. 2000-02-06 23:37:19 +00:00
Eli Zaretskii
26b09289ed Don't count colors without RGB values as gray shades. 2000-02-02 11:34:25 +00:00
Eli Zaretskii
c527e60052 (tty-color-gray-shades): New function. 2000-02-02 11:33:01 +00:00
Jason Rumney
7ed4e9a732 (w32_create_initial_fontsets): Disabled as it conflicts with new face support. 2000-01-23 03:28:57 +00:00
Eli Zaretskii
79b24da30b (xw-defined-colors): Call color-supported-p,
the new name of face-color-supported-p.
2000-01-03 11:58:12 +00:00
Eli Zaretskii
20de726ede (tty-defined-color-alist): Renamed from tty-color-alist.
(tty-color-alist, tty-modify-color-alist): New functions.
(tty-color-define,  tty-color-clear, tty-color-approximate)
(tty-color-translate, tty-color-by-index, tty-color-desc): Accept
an optional parameter FRAME.
2000-01-02 14:11:02 +00:00
Eli Zaretskii
f795f63364 Changes for automatic remapping of X colors on terminal frames:
* term/pc-win.el (msdos-setup-initial-frame): New function, run by
	term-setup-hook.  Call msdos-remember-default-colors and
	msdos-handle-reverse-video.
	(msdos-face-setup): Parts of code moved to
	msdos-setup-initial-frame.
	(msdos-handle-reverse-video): New function, modeled after
	x-handle-reverse-video.
	(make-msdos-frame): Don't use initial-frame-alist and
	default-frame-alist.  Call msdos-handle-reverse-video.
	(msdos-color-aliases): Remove.
	(msdos-color-translate, msdos-approximate-color): Remove.
	(msdos-color-values): Use 16-bit RGB values.  RGB values updated
	for better approximation of X colors.
	(msdos-face-setup): Call tty-color-clear.  Remove code that sets
	up tty-color-alist (it is now on startup.el).
	(x-display-color-p, x-color-defined-p, x-color-values,
	x-defined-colors, face-color-supported-p, face-color-gray-p):
	Remove.

	* facemenu.el (facemenu-read-color, list-colors-display): Use
	defined-colors for all frame types.
	(facemenu-color-equal): Use color-values for all frame types.

	* faces.el (read-face-attribute): For :foreground and :background
	attributes and frames on character terminals, translate the color
	to the closest supported one before looking it up in the list of
	valid values.
	(face-valid-attribute-values): Call defined-colors for all types
	of frames.
	(defined-colors, color-defined-p, color-values, display-color-p):
	New finctions.
	(x-defined-colors, x-color-defined-p, x-color-values,
	x-display-color-p): Aliases for the above.

	* startup.el (command-line): Register terminal colors for frame
	types other than x and w32, but only if the terminal supports
	colors.  Call tty-color-define instead of face-register-tty-color.

	* term/x-win.el (xw-defined-colors): Renamed from
	x-defined-colors.
	* term/w32-win.el (xw-defined-colors): Likewise.

	* term/tty-colors.el: New file.
	* loadup.el: Load term/tty-colors.
1999-12-06 17:55:00 +00:00
Gerd Moellmann
35a8911d39 (w32-drag-n-drop): Load files in current window, if
drop coords aren't over a specific window.
1999-11-24 14:37:53 +00:00
Eli Zaretskii
a88d2801b8 term/internal.el (IT-display-table-setup): Don't overstep
character code 255.
1999-11-21 11:29:25 +00:00
Dave Love
8cc3881faf # 1999-09-30 18:06:17 +00:00
Dave Love
1c003668a4 Provide term/sun-mouse. 1999-08-17 14:03:58 +00:00
Eli Zaretskii
c0e2e77f8f (x-list-fonts): Return "ms-dos", not "default".
Do that if width is nil as well.
(x-display-mm-height, x-display-mm-width): Update values.
(x-colors): Compute the list from msdos-color-values.
(x-select-enable-clipboard): Doc fix.
(x-frob-font-weight, x-font-family-list): New functions.
1999-08-15 11:42:08 +00:00
Karl Heuer
2af602a19d (sun-mouse): Provide sun-mouse', not term/sun-mouse'. 1999-08-10 17:08:41 +00:00
Eli Zaretskii
68a89a250a (msdos-bg-mode): Remove. Call
frame-set-background-mode instead.  All callers changed.
(msdos-face-setup): Don't force color display parameter, it is set
by frame-set-background-mode.
(make-msdos-frame): Call x-handle-reverse-video and
face-set-after-frame-default.  Delete frame if creation failed.
1999-08-10 10:21:18 +00:00
Eli Zaretskii
c4d6496936 (msdos-face-setup): Register standard colors in
Vface_tty_color_alist.
(face-color-supported-p, face_color_gray_p): New functions.
1999-07-30 08:51:19 +00:00
Karl Heuer
efaec94ebd (mouse-set-font): If user uses w32 dialog but
selects no font, treat that as zero selections, not one.
1999-07-20 00:49:54 +00:00