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

472 Commits

Author SHA1 Message Date
Kenichi Handa
be25dab0a1 Setup the fontset "fontset-mac" correctly. 2003-01-15 05:33:18 +00:00
Richard M. Stallman
be28f1a745 Require fontset conditionally again. 2003-01-13 08:01:54 +00:00
Dave Love
cf07d2bdf6 Remove some ancient compatibility code. Populate
x-keysym-table.
2002-10-30 19:26:23 +00:00
Steven Tamm
e989b9bcaf Switching return to be treated like an X keysym 2002-10-04 15:03:02 +00:00
Juanma Barranquero
0a10297a06 Add "no-byte-compile: t" in first line. 2002-10-01 17:06:54 +00:00
Richard M. Stallman
8f96b49bc7 (function-key-map): Define S-iso-lefttab. 2002-09-02 00:09:27 +00:00
Andrew Choi
742fbed75b In src:
2002-08-03  Andrew Choi  <akochoi@shaw.ca>

        * macterm.c (USE_CARBON_EVENTS): New macro.
        (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
        (x_iconify_frame): Call CollapseWindow.
        (Vmac_reverse_ctrl_meta): New variable.
        (Vmac_wheel_button_is_mouse_2): New variable.
        (init_mac_drag_n_drop): New function.
        (mac_do_receive_drag): New function.
        (mac_handle_service_event): New function.
        (init_service_handler): New function.
        (mac_to_emacs_modifiers): New function.
        (mac_event_to_emacs_modifiers): New function.
        (mac_get_mouse_btn): New function.
        (mac_convert_event_ref): New function.
        (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
        SendEventToEventTarget, mac_event_to_emacs_modifiers, and
        mac_get_mouse_btn.
        (mac_initialize): Call init_mac_drag_n_drop and
        init_service_handler.

        * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
        lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
        (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
        TOOL_BAR_EVENT for MAC_OS as well.
        (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
        as for WINDOWS_NT.
        (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.

        * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for
        MAC_OSX.

In lisp:

2002-08-03  Andrew Choi  <akochoi@shaw.ca>

        * term/mac-win.el: Set keys to enable mouse wheel support.
2002-08-03 22:21:09 +00:00
Andreas Schwab
525fdbc9c8 * files.el (directory-free-space-args): Don't use -P on Darwin.
* term/mac-win.el: Don't set it here.
2002-06-30 14:42:19 +00:00
Andreas Schwab
eb14066a0b Use directory-free-space-program instead of
obsolete variable dired-free-space-program.  On Darwin, don't set
directory-free-space-program, shell-file-name and
process-connection-type; set directory-free-space-args to not
include `-P' and use utf-8 for file name coding system.
2002-06-29 19:01:46 +00:00
Stefan Monnier
b8b1b15e9a (function-key-map): Add some bindings. 2002-06-27 21:38:52 +00:00
Andrew Choi
f00691a3e4 In src/:
2002-06-16  Andrew Choi  <akochoi@shaw.ca>

        * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
        Vdefault_fontset to Monaco with mac-roman coding.

        * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
        init_process before and after inclusion of Carbon/Carbon.h, resp.

        * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
        cursor_gc.
        (add_font_name_table_entry): New function.
        (init_font_name_table): Use add_font_name_table_entry; add italic,
        bold, and bold-italic entries for truetype fonts.

        * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
        for Mac too.
        (try_font_list) [MAC_OS]: If no font matches given registry, try
        fonts with any registry matching face_family.
        (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font
        here.

        * s/darwin.h: If autoconf detects the Ncurses library, define
        LIBS_TERMCAP to -lncurses to use it.

In lisp/:

2002-06-16  Andrew Choi  <akochoi@shaw.ca>

        * term/mac-win.el (scalable-fonts-allowed): Set to t.
2002-06-16 23:08:57 +00:00
Juanma Barranquero
1823c9d2e1 (x-handle-switch): Fix handling of x-invocation-args for switches with
arguments.
2002-06-12 17:20:05 +00:00
Miles Bader
39ed191f8f (color-name-rgb-alist): Use 16-bit RGB values instead of 8-bit, for
consistency with the rest of emacs.
(tty-color-canonicalize): Only copy COLOR if we need to change it.
(tty-color-approximate): Scale values from `color-name-rgb-alist'
appropriately.  Return the whole color description, rather than just the
RGB values.
(tty-color-standard-values): New function.  Code mostly taken from
`tty-color-translate'.
(tty-color-translate, tty-color-values): Use `tty-color-desc' to do all
the work.
(tty-color-desc): Do color lookup here instead of calling
`tty-color-translate' and `tty-color-by-index'; this is now the main
place to do it.
2002-06-09 12:53:53 +00:00
Juanma Barranquero
aa87aafcde Fix typo. 2002-05-16 12:00:33 +00:00
Jason Rumney
e596f2a24b (mouse-wheel-scroll-line)
(mouse-wheel-scroll-screen): Removed.
([mouse-wheel], [C-mouse-wheel], [S-mouse-wheel]): Use mwheel-scroll.
2002-05-04 22:17:07 +00:00
Andrew Choi
e0f712ba55 Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
lisp/ChangeLog, and src/ChangeLog for list of changes.
2002-04-26 23:39:06 +00:00
Pavel Janík
ae10d59731 (x-select-text, x-cut-buffer-or-selection-value): Check if any of the
available selection sources has new content and if so it will return that
content.
2002-04-24 13:18:27 +00:00
Jan Djärv
3842fde117 (emacs-session-save): Add comment that return t means cancel shutdown 2002-03-12 21:15:07 +00:00
Jan Djärv
1e4f6cec82 (emacs-session-restore): Take previous id as an argument. 2002-03-12 19:15:06 +00:00
Jan Djärv
941a391a0b (x-handle-smid): New function.
(emacs-session-filename): New function.
(emacs-session-save): New function.
(emacs-save-session-functions): New variable.
(emacs-session-restore): New function.
2002-03-10 16:27:26 +00:00
Jason Rumney
ed81ee80f5 (mouse-wheel-scroll-line): Use car of
mouse-wheel-scroll-amount.
2002-02-25 23:26:38 +00:00
Jason Rumney
3d27abc47b (x-option-alist, x-long-option-alist)
(x-switch-definitions): Remove, use command-line-x-option-alist
instead to be consistent with X.
(x-handle-initial-switch): New function.
2002-02-17 23:08:14 +00:00
Eli Zaretskii
e47cd3c4e2 Fix a typo in a comment. 2002-01-25 14:35:42 +00:00
Eli Zaretskii
68fe2e0f61 (tty-standard-colors): Reverse the order of colors.
(tty-register-default-colors): New function;
code moved from startup.el's command-line.
2002-01-25 13:16:23 +00:00
Eli Zaretskii
1400df92a7 (msdos-color-values): Reverse the order of the
colors, since tty-color-define now preserves the registration
order.
2002-01-25 13:13:02 +00:00
Eli Zaretskii
63e9afde34 (xterm-standard-colors): New variable.
(xterm-rgb-convert-to-16bit, xterm-register-default-colors)
(xterm-rxvt-set-background-mode): New functions.
(toplevel): Call xterm-register-default-colors,
xterm-rxvt-set-background-mode, and tty-set-up-initial-frame-faces.
Add support for more keys from xterm's terminfo entry.
2002-01-25 13:10:46 +00:00
Eli Zaretskii
5ea6e06823 New file. 2002-01-25 13:07:35 +00:00
Richard M. Stallman
bfabe8828e (x-handle-geometry): Put sizes on both
initial-frame-alist and default-frame-alist.
2002-01-24 19:20:21 +00:00
Jason Rumney
78887b5a76 Move user variables to w32-vars.el and make them defcustoms.
Use w32-list-proportional-fonts.
2002-01-20 15:34:00 +00:00
Jason Rumney
b05f815e1c Add comments to avoid future deletion of conditionals that seem
unnecessary on w32.
2002-01-17 19:33:03 +00:00
Jason Rumney
64f41d64a9 Only require fontset when new-fontset is bound. 2002-01-17 19:29:24 +00:00
Eli Zaretskii
9da8545ad8 (tty-color-mode-alist): New variable. 2002-01-14 13:50:06 +00:00
Eli Zaretskii
2f9b363a15 (x-handle-initial-switch): New function. 2002-01-13 11:44:14 +00:00
Pavel Janík
110c171f4d Fix typo. 2002-01-13 10:09:20 +00:00
Jason Rumney
15f18b8933 Require fontset unconditionally.
(w32-handle-scroll-bar-event): Remove, since default scroll bar
behaviour is now the same as what Windows users expect.
2002-01-05 00:23:42 +00:00
Eli Zaretskii
a9a9b2e3c3 (dos-cpNNN-setup, dos-codepage-setup):
Call IT-setup-unicode-display here instead of adding it to
dos-codepage-setup-hook, so that Unicode display tables are set
before dos-codepage-setup-hook runs.
2001-12-24 16:52:50 +00:00
Richard M. Stallman
ea8d306137 (x-handle-geometry): Put height and width on default-frame-alist,
left and top on initial-frame-alist.
2001-12-24 04:52:54 +00:00
Eli Zaretskii
209695b9c7 (IT-character-translations): Add entries for more points. 2001-12-07 17:55:42 +00:00
Sam Steingold
8a9463543d Converted backquote to the new style. 2001-11-27 15:52:52 +00:00
Pavel Janík
b9001ed392 (sun-yank-selection): Use insert instead of insert-string. 2001-11-26 16:18:14 +00:00
Pavel Janík
039f4cdaaf (bg-insert-moused-sexp): Use insert instead of insert-string. 2001-11-26 16:17:44 +00:00
Eli Zaretskii
051a608df8 (term-setup-hook): Add IT-setup-unicode-display. 2001-11-04 18:52:30 +00:00
Stefan Monnier
9c01e54549 (function-key-map): Add entry for `ESC [ 3 ~' -> <delete>
Add entries `ESC O 5 [ABCD]' -> C-{up,down,right,left}.
Use inheritance so that .emacs and terminfo take precedence.
2001-11-04 02:03:05 +00:00
Eli Zaretskii
aa32689c0c (x-frob-font-slant, x-frob-font-weight): Add
make-obsolete cookies, to follow faces.el.
2001-10-26 21:27:19 +00:00
Jason Rumney
1a0b615ab5 (redisplay-dont-pause): Don't set. 2001-10-21 17:15:18 +00:00
Eli Zaretskii
feeb94f7cc Update Stephen Gildea's mail address. 2001-09-23 17:48:31 +00:00
Gerd Moellmann
75377eba1c (sup-pos-to-window): Use
get-window-with-predicate.
2001-09-07 11:34:17 +00:00
Gerd Moellmann
4f3d7805a2 (bg-window-from-x-y): Use
get-window-with-predicate.
2001-09-07 11:33:32 +00:00
Andrew Choi
ae355fa64a 2001-09-04 Andrew Choi <akochoi@cse.cuhk.edu.hk>
* term/mac-win.el (mac-drag-n-drop): Decode file name by
	consulting the value of file-name-coding-system.
2001-09-04 03:43:23 +00:00
Eli Zaretskii
cf8f0b68f2 (IT-character-translations) <hebrew-iso8859-8>:
Replace some of the undefined characters with emulations of bidi
formatting characters and Niqud as per SI 1311-1.
(IT-unicode-translations): Ditto.
(IT-display-table-setup, IT-setup-unicode-display): Fill
characters without translations with dos-unsupported-char-glyph.
2001-08-25 12:31:18 +00:00
Andrew Choi
fa05f6ac1b 2001-08-24 Andrew Choi <akochoi@cse.cuhk.edu.hk>
* term/mac-win.el: Require scroll-bar.
2001-08-24 07:16:37 +00:00
Eli Zaretskii
be8cf99e91 (IT-unicode-translations): Fix the appearance of "6`". 2001-07-23 15:29:46 +00:00
Stefan Monnier
acd9f40c0d (ignore-key, sun-esc-bracket, meta-flag): Remove.
(sun-raw-prefix): Replace t3, t4, t6, and t7 with f3, f4, f6 and f7.
Complete bindings for F<1..12> keys.
(global-map): Remove `undo' binding (already in the default).
Replace `t<n>' bindings with `f<n>' bindings.
2001-07-17 18:37:47 +00:00
Pavel Janík
e8af40eed4 Some fixes to follow coding conventions. 2001-07-16 12:23:00 +00:00
Pavel Janík
6a05d05faf Fixes to follow coding conventions. 2001-07-16 11:39:42 +00:00
Stefan Monnier
3e209d8da8 *** empty log message *** 2001-07-16 01:51:19 +00:00
Pavel Janík
60370d4073 Some fixes to follow coding conventions. 2001-07-15 19:53:53 +00:00
Pavel Janík
5553563924 Some fixes to follow coding conventions in files maintained by FSF. 2001-07-15 16:15:35 +00:00
Eli Zaretskii
8184a578cd Fix the header line and the copyright years. 2001-07-10 08:14:32 +00:00
Eli Zaretskii
027a15c160 (x-colors): Add colors from the recent rgb.txt file. 2001-06-29 18:26:53 +00:00
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
Eli Zaretskii
f53c8bb28d (IT-display-table-setup): Do not remap \222 to
the ASCII apostrophe, as most DOS codepages have some other glyph
there.
1999-06-14 15:10:14 +00:00
Andrew Innes
d76d245657 Change the x-charset-registry property for the
Japanese charsets that are supported by Japanese Windows fonts.
1999-05-03 22:19:43 +00:00
Andrew Innes
81af6e72e2 (mouse-set-font): Ensure constructed fontset
matches the font selected in the dialog.
1999-05-02 20:39:19 +00:00
Andrew Innes
c8316112bb (w32-drag-n-drop): Select file in window where
it is dropped, rather than current window.
1999-05-02 09:52:17 +00:00
Eli Zaretskii
08baac3d70 (dos-cpNNN-setup): New function, with the guts
of dos-codepage-setup.
(cjk-codepages-alist): New variable, an alist of Far-Eastern
codepages for which there's no need to set up cpNNN coding
systems.
(dos-codepage-setup): Support Far-Eastern DOS terminals.
1999-04-05 14:59:21 +00:00
Eli Zaretskii
e1b674a138 (dos-codepage-setup): Compute the unibyte
syntax table and bind unibyte-display-via-language-environment
here, rather than at top level, so that resetting to unibyte in
.emacs works as expected.
1999-03-16 14:14:55 +00:00
Eli Zaretskii
296addb270 (top level): Display character 255 as 8bit as well. 1999-03-07 13:27:35 +00:00
Karl Heuer
e6e9c5160d (vt100-wide-mode): Use defvar, not defconst. 1999-02-23 22:22:50 +00:00
Eli Zaretskii
4de8f97e38 (dos-codepage-setup): Set selection coding system to cpNNN-dos. 1999-02-04 15:57:23 +00:00
Geoff Voelker
9d0b248831 term/w32-win.el (w32-create-initial-fontsets): Back out previous
change, invoke from before-init-hook.
1999-02-02 02:57:50 +00:00
Eli Zaretskii
a13b5fad5d (msdos-approximate-color): New function.
(msdos-color-translate): Call it to find a DOS color that best
approximates an X-style "#NNNNNN" color specification.
1999-02-01 13:25:12 +00:00
Geoff Voelker
e7a8ad1fdb (w32-standard-fontset-spec): Remove wildcard
from FAMILY field.
(w32-create-initial-fontsets): Do not use before-init-hook.
(mouse-set-font): Document.  Automatically create and use
fontsets.
1999-01-28 04:46:42 +00:00
Eli Zaretskii
3e9c24f68b (dos-codepage-setup): Call prefer-coding-system
to set the appropriate cpNNN-dos coding system as the
highest-priority coding system.
1999-01-24 14:13:32 +00:00
Geoff Voelker
9cc98b8283 (w32-standard-fontset-spec): Simplified. 1999-01-22 19:57:38 +00:00
Geoff Voelker
fea0d7fa5f (w32-standard-fontspec-spec): Change
iso8859-5 to koi8-r.  Add iso8859-9.
1999-01-19 22:27:59 +00:00
Eli Zaretskii
0064ab85ad (IT-character-translations): New variable, an
alist used to display characters for which there's no glyphs in
the current codepage.
(IT-display-table-setup): New function, sets up the DOS terminal
for a given codepage.
(dos-codepage-setup): New function, sets up the MULE environment
for the current value of dos-codepage.
(top-level if): In the multibyte mode, turn on
unibyte-display-via-language-environment.  In the unibyte mode,
set up the special syntax tables to map lower- to upper case and
back.
1998-12-20 15:07:03 +00:00
Karl Heuer
1be7f9b0a5 (x-cut-buffer-or-selection-value):
If clipboard is enabled, try it before PRIMARY selection.
1998-12-16 06:41:52 +00:00
Karl Heuer
3e9103768f Update comment. 1998-12-14 03:22:44 +00:00
Eli Zaretskii
43ce80a12b Remove code that sets syntax table for non-ASCII characters. 1998-12-03 09:29:14 +00:00
Kenichi Handa
c879698564 If a resolved ASCII font name doesn't conform to
full XLFD, don't try get information of WEIGHT and SLANT from that
font name.
1998-11-11 03:36:15 +00:00
Geoff Voelker
a73c80a31d ([language-change]): For now ignore
keyboard language-change events.
1998-11-10 20:49:04 +00:00
Geoff Voelker
4664455c17 (x-get-selection-value): Alias to
x-cut-buffer-or-selection-value.
(w32-standard-fontset-spec): New variable.
(w32-create-initial-fontsets, mouse-set-font): Check whether
new-fontset is available.
(w32-use-w32-font-dialog): Enable use of set-variable.
1998-11-04 23:23:57 +00:00
Geoff Voelker
51099b4521 Require fontset. 1998-11-04 01:28:04 +00:00
Geoff Voelker
cf14c2b4c3 (w32-use-w32-font-dialog, w32-fixed-font-alist):
New variables.
(mouse-set-font): Use font menus instead of dialog according to
w32-use-w32-font-dialog.
1998-10-27 23:46:26 +00:00
Eli Zaretskii
a0c712aea8 (msdos-color-values): New variable.
(x-color-values): New function, emulates its namesake from src/xfns.c.
(msdos-bg-mode): Add all dark colors to those which return "dark".
1998-10-14 15:11:12 +00:00
Dan Nicolaescu
912120061d Initial revision 1998-10-02 18:09:44 +00:00
Kenichi Handa
68404bed20 Fill weight and slant fields of a fontset
generted from the specified ASCII font by values got from the
resolved ASCII font name.
1998-07-03 04:39:22 +00:00
Andrew Innes
3ce36200dd (internal-face-interactive): Handle case where BOOL is `color'. 1998-06-22 17:21:56 +00:00
Kenichi Handa
1ca074258e When creating a fontset from a specified ASCII
font, don't use the resolved fon tname for the new fontset name.
1998-06-20 01:38:52 +00:00
Kenichi Handa
12755bafbf While creating fontsets of style variants, pay
attention to X resources XXX.attributeFont.
1998-06-12 07:10:59 +00:00
Kenichi Handa
25c343b25c Generate style variants fontset for
standard-fontset-spec.  Generate a fontset based on resolved font
name of a font specified by X resource or -fn command line arg.
1998-05-21 01:47:32 +00:00
Richard M. Stallman
33b307f8fc (w32-drag-n-drop-debug, w32-drag-n-drop)
(w32-drag-n-drop-other-frame): New functions.
Bind them to the drag-n-drop events.
1998-05-01 04:24:43 +00:00
Eli Zaretskii
8254b6b485 (x-select-text, x-get-selection-value): Replace win16 with w16. 1998-04-22 13:45:00 +00:00
Karl Heuer
dcaa592563 Don't call set-terminal-coding-system
if it was already set.
1997-12-19 14:57:14 +00:00
Karl Heuer
952e6ec21a Use set-input-mode to make Latin-1 chars work. 1997-11-15 20:52:06 +00:00
Eli Zaretskii
c8a6e3b923 (x-long-option-alist): New variable.
(msdos-handle-args): Handle and complete long options with
attached arguments.  Support "-name", "-T" and "-rv" options.
1997-10-13 16:05:32 +00:00
Richard M. Stallman
c6a6499f7d Switch to raw-text as coding system. 1997-09-11 17:51:36 +00:00
Geoff Voelker
d66be5718b (w32-handle-scroll-bar-event): On up and
down events, place point at window start position.
Bind f10 to menubar.
Move keypad key definitions to w32-fns.el.
(mouse-wheel-scroll-amount): New variable.
(mouse-wheel-scroll-line, mouse-wheel-scroll-screen): New functions.
Bind mouse-wheel events to mouse-wheel functions.
1997-09-02 23:53:22 +00:00
Eli Zaretskii
9de91fc5aa (msdos-color-aliases): Add missing colors.
(msdos-color-translate): Handle "deep" and "pale" color
varieties.
1997-08-27 12:22:35 +00:00
Eli Zaretskii
d00e55129d Add the coding: tag to prevent Emacs from thinking this is encoded in SJIS. 1997-08-27 07:12:29 +00:00