Karoly Lorentey
b58cb6144c
Merged from miles@gnu.org--gnu-2005 (patch 682)
...
Patches applied:
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-682
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-490
2006-01-03 02:15:28 +00:00
Stefan Monnier
b515436461
The Linux console doesn't support the same escape codes, it seems.
2005-12-30 04:10:29 +00:00
Karoly Lorentey
6ed8eeffb3
Rename struct device' to
struct terminal'. Rename some terminal-related functions similarly.
...
* src/termhooks.h (struct device): Rename to `terminal'. Rename member
`next_device' to `next_terminal'.
(device_list): Rename to `terminal_list'.
(FRAME_DEVICE): Rename to `FRAME_TERMINAL'.
(DEVICE_TERMINAL_CODING): Rename to `TERMINAL_TERMINAL_CODING'.
(TERMINAL_KEYBOARD_CODING): Rename to `TERMINAL_KEYBOARD_CODING'.
(DEVICE_ACTIVE_P): Rename to `TERMINAL_ACTIVE_P'.
Update declarations and macro definitions.
* src/termchar.h (tty_display_info): Rename member `device' to `terminal'.
(FRAME_TTY): Update for renames.
* src/xterm.h (x_display_info): Rename member `device' to `terminal'.
* src/frame.h (frame): Rename `device' member to `terminal'.
(FRAME_KBOARD, FRAME_LIVE_P, Qdevice, Qdisplay_live_p):
Update for renames.
* src/lisp.h (set_process_environment): Rename to `set_global_environment'.
(device): Rename to `terminal'.
* src/dispextern.h: Update declarations and macro definitions.
* src/terminal.c (device_list): Rename to `terminal_list'.
(next_device_id): Rename to `next_terminal_id'.
(initial_device): Rename to `initial_terminal'.
(get_device): Rename to `get_terminal'.
(create_device): Rename to `create_terminal'.
(mark_devices): Rename to `mark_terminals'.
(delete_device): Rename to `delete_terminal'.
(Fdelete_display): Rename to `Fdelete_terminal'.
(Fframe_terminal): Move here from frame.c.
(Fdisplay_live_p): Rename to `Fterminal_live_p'.
(Fdisplay_list): Rename to `Fterminal_list'.
(Fdisplay_name): Rename to `Fterminal_name'.
(init_initial_device): Rename to `init_initial_terminal'.
(delete_initial_device): Rename to `delete_initial_terminal'.
(ring_bell, update_begin, update_end, set_terminal_window)
(cursor_to, raw_cursor_to, clear_to_end, clear_frame)
(clear_end_of_line, write_glyphs, insert_glyphs, delete_glyphs)
(ins_del_lines, get_terminal_param, store_terminal_param)
(Fterminal_parameters, Fterminal_parameter)
(Fmodify_terminal_parameters, Fset_terminal_parameter)
(syms_of_terminal): Update for renames.
* src/term.c (get_tty_device): Rename to `get_tty_terminal'. Update.
(Fdisplay_tty_type): Rename to `Ftty_type'.
(Fdisplay_controlling_tty_p): Rename to `Fcontrolling_tty_p'.
(delete_tty, tty_set_terminal_modes, tty_reset_terminal_modes)
(Ftty_display_color_p, Ftty_display_color_cells, get_named_tty)
(Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
(init_tty, maybe_fatal, delete_tty, syms_of_term): Update for rename.
* src/frame.c (Qdevice): Rename to `Qterminal'.
(Qdisplay_live_p): Rename to `Qterminal_live_p'.
(terminal_frame_count): Rename to `tty_frame_count'.
(Fframe_display): Move to terminal.c, rename to `Fframe_terminal'.
(make_frame_without_minibuffer, make_initial_frame)
(make_terminal_frame, Fmodify_frame_parameters)
(do_switch_frame, Fdelete_frame, Fmouse_position)
(Fmouse_pixel_position, Fraise_frame, Flower_frame)
(Fredirect_frame_focus, set_term_frame_name, syms_of_frame):
Update for renames.
* src/xdisp.c (message2_nolog, message3_nolog, redisplay_internal)
(set_vertical_scroll_bar, redisplay_window, check_x_display_info)
(x_set_scroll_bar_foreground, x_set_scroll_bar_background)
(Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
(Fx_display_pixel_width, Fx_display_pixel_height)
(Fx_display_planes, Fx_display_color_cells)
(Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
(Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
(Fx_display_backing_store, Fx_display_visual_class)
(Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
Update for renames.
* xterm.c (handle_one_xevent): Initialize `f' to NULL.
(x_delete_device): Rename to `x_delete_terminal'.
(x_create_device): Rename to `x_create_terminal'.
(XTset_terminal_modes, XTreset_terminal_modes)
(XTread_socket, x_connection_closed, x_term_init)
(x_term_init, x_delete_display): Update for renames.
* src/dispnew.c (Fredraw_frame, Fsend_string_to_terminal)
(Fsend_string_to_terminal, init_display): Update for renames.
* src/keyboard.c (push_frame_kboard, pop_kboard, pop_kboard)
(kbd_buffer_get_event, read_avail_input, tty_read_avail_input)
(interrupt_signal, Fset_output_flow_control)
(Fset_input_meta_mode, Fset_quit_char, delete_kboard)
(syms_of_keyboard): Update for renames.
* src/alloc.c (mark_devices): Update declaration.
(Fgarbage_collect): Update for renames.
* src/coding.c (Fset_terminal_coding_system_internal)
(Fterminal_coding_system4)
(Fset_keyboard_coding_system_internal)
(Fkeyboard_coding_system): Update for renames.
* src/data.c (Fterminal_local_value, Fset_terminal_local_value):
Update for renames.
* src/minibuf.c (read_minibuf): Update for renames.
* src/sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
* xselect.c (x_handle_selection_clear): Update for renames.
* lisp/files.el (save-buffers-kill-display): Rename to `save-buffers-kill-terminal'.
(save-buffers-kill-terminal, ctl-x-map): Update for renames.
* frame.el (make-frame): Rename 'device frame parameter to 'terminal. Update.
(frames-on-display-list, framep-on-display, suspend-frame): Update for renames.
(selected-display): Rename to `selected-terminal'.
* server.el (server-save-buffers-kill-display): Rename to
`server-save-buffers-kill-terminal'.
(server-delete-client, server-handle-delete-frame)
(server-handle-suspend-tty, server-process-filter)
(server-switch-buffer): Update for renames.
* startup.el (normal-splash-screen, normal-splash-screen): Update for renames.
* talk.el (talk): Update for renames.
* termdev.el (terminal-id): Update for renames.
* xt-mouse.el (turn-on-xterm-mouse-tracking-on-terminal)
(turn-off-xterm-mouse-tracking-on-terminal)
(xterm-mouse-handle-delete-frame): Update for renames.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-471
2005-12-29 18:20:26 +00:00
Karoly Lorentey
9ef706664e
Merged from miles@gnu.org--gnu-2005 (patch 659-663)
...
Patches applied:
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-659
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-660
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-661
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-662
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-663
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-445
2005-12-03 14:25:50 +00:00
Nick Roberts
cb666f2dd7
(xterm-mouse-event): Set last-input-event so
...
that (list last-input-event) works as in interactive spec.
2005-11-28 05:38:49 +00:00
Karoly Lorentey
6bac161607
Make xt-mouse.el multi-tty-compatible.
...
* lisp/xt-mouse.el (xterm-mouse-x, xterm-mouse-y): Convert to terminal parameters.
(xterm-mouse-position-function, xterm-mouse-event): Update.
(xterm-mouse-mode): Don't depend on current value of window-system.
(turn-on-xterm-mouse-tracking, turn-off-xterm-mouse-tracking): Update
for multi-tty.
(turn-on-xterm-mouse-tracking-on-terminal)
(turn-off-xterm-mouse-tracking-on-terminal)
(xterm-mouse-handle-delete-frame): New functions.
(delete-frame-functions, after-make-frame-functions)
(suspend-tty-functions, resume-tty-functions): Install extra hooks for multi-tty.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-409
2005-09-11 03:06:33 +00:00
Karoly Lorentey
fbf3497344
Merged in changes from CVS trunk. Plus added lisp/term tweaks.
...
Patches applied:
* lorentey@elte.hu--2004/emacs--cvs-trunk--0--base-0
tag of miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-474
* lorentey@elte.hu--2004/emacs--cvs-trunk--0--patch-1
Add CVS metadata files.
* lorentey@elte.hu--2004/emacs--cvs-trunk--0--patch-2
Update from CVS.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-393
2005-09-04 03:48:17 +00:00
Thien-Thi Nguyen
0d30b33766
Update years in copyright notice; nfc.
2005-08-06 22:13:43 +00:00
Karoly Lorentey
ac09dc1ec3
Rename function-key-map to local-function-key-map, and global-function-key-map to function-key-map. Same for key-translation-map.
...
* src/keyboard.h (struct kboard): Rename member 'Vfunction_key_map' to
'Vlocal_function_key_map', and 'Vkey_translation_map' to
'Vlocal_key_translation_map'.
(Vfunction_key_map, Vkey_translation_map): New declarations.
* src/keyboard.c (Vfunction_key_map): New variable.
(Vglobal_key_translation_map): Rename to Vglobal_key_translation_map.
(read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards): Update.
* src/keymap.c (Fdescribe_buffer_bindings): Update.
* src/term.c (term_get_fkeys_1): Update.
* lisp/double.el (double-setup): Replace global-key-translation-map with key-translation-map.
* lisp/international/encoded-kb.el (encoded-kbd-setup-display): Ditto.
* lisp/international/iso-transl.el: Ditto.
* lisp/obsolete/iso-acc.el (iso-accents-customize): Ditto.
* lisp/edmacro.el (edmacro-format-keys): Use terminal-local binding of
local-function-key-map instead of function-key-map.
* lisp/emulation/cua-base.el (cua--pre-command-handler): Ditto.
* lisp/isearch.el (isearch-other-meta-char): Ditto.
* lisp/subr.el (read-quoted-char): Ditto.
* lisp/term/vt200.el: Ditto.
* lisp/term/vt201.el: Ditto.
* lisp/term/vt220.el: Ditto.
* lisp/term/vt240.el: Ditto.
* lisp/term/vt300.el: Ditto.
* lisp/term/vt320.el: Ditto.
* lisp/term/vt400.el: Ditto.
* lisp/term/vt420.el: Ditto.
* lisp/simple.el (normal-erase-is-backspace-mode): Add todo note.
* lisp/xt-mouse.el: Ditto.
* lisp/term/AT386.el: Adapt for renaming of function-key-map to local-function-key-map.
* lisp/term/internal.el: Ditto.
* lisp/term/iris-ansi.el: Ditto.
* lisp/term/lk201.el: Ditto.
* lisp/term/mac-win.el: Ditto.
* lisp/term/news.el: Ditto.
* lisp/term/rxvt.el: Ditto.
* lisp/term/sun.el: Ditto.
* lisp/term/tvi970.el: Ditto.
* lisp/term/wyse50.el: Ditto.
* lisp/term/x-win.el (x-setup-function-keys): Ditto.
* lisp/term/xterm.el: Ditto.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-386
2005-07-12 10:55:24 +00:00
Lute Kamstra
086add1519
Update FSF's address.
2005-07-04 23:32:44 +00:00
Luc Teirlinck
2f530b587d
(xterm-mouse-mode): Set init value back to nil.
2005-04-18 00:52:57 +00:00
Luc Teirlinck
dc6ed0370d
(xterm-mouse-mode): Change :init value.
2005-04-13 22:22:40 +00:00
Luc Teirlinck
9001354f95
(xterm-mouse-mode): Provide correct standard value for Custom. No
...
longer show "Mouse" in mode line when enabled. Doc fix.
2005-04-12 23:05:22 +00:00
Luc Teirlinck
e742657f9f
(xterm-mouse-mode): Add explicit Custom group (mouse). Doc fix.
2005-04-04 01:13:59 +00:00
Nick Roberts
30598da5fb
(xterm-mouse-event): Set new optional fourth arg in
...
posn-x-y to t to access left-margin.
2005-01-17 09:54:56 +00:00
Nick Roberts
fcd9df1bf0
(xterm-mouse-event): Compute window co-ordinates
...
more carefully.
2005-01-14 07:36:50 +00:00
Nick Roberts
bf31a09320
(xterm-mouse-translate, xterm-mouse-event): Enable
...
mouse clicks on mode-line, header-line and margin.
(event-type): Give mouse event symbols an 'event-kind property
with value 'mouse-click.
2005-01-12 06:13:08 +00:00
Nick Roberts
21fa4a775b
(xterm-mouse-event): Correct cursor position in a
...
buffer with a display margin.
2004-12-09 23:05:36 +00:00
Miles Bader
ab5796a9f9
Add arch taglines
2003-09-01 15:45:59 +00:00
Francesco Potortì
a9772fb413
(xterm-mouse-event-read): New function.
...
(xterm-mouse-event): Use it to get xterm sequences above #x7f.
Suggested by Aman Bhargava <emacs-bug@amanb.net>.
2003-04-07 14:04:51 +00:00
Juanma Barranquero
f1180544bb
Trailing whitespace deleted.
2003-02-04 12:29:42 +00:00
John Paul Wallington
62c32edf07
* xt-mouse.el (xterm-mouse-mode): Make it a global mode.
...
* wid-browse.el (widget-minor-mode): Fix doc typo.
2002-08-07 21:46:49 +00:00
Stefan Monnier
c6005bf36e
(xterm-mouse-mode): Use define-minor-mode.
2002-04-12 03:33:20 +00:00
Andreas Schwab
90e742e08f
(turn-off-xterm-mouse-tracking): Doc fix.
2001-12-04 16:13:04 +00:00
Gerd Moellmann
4b09e331fa
(xterm-mouse-event): Recognize control sequences
...
for buttons > 3.
(xterm-mouse-translate): Handle the case that we don't get a
down-event.
2001-07-25 17:42:56 +00:00
Pavel Janík
e8af40eed4
Some fixes to follow coding conventions.
2001-07-16 12:23:00 +00:00
Eli Zaretskii
9501b9867c
(xterm-mouse-event): If the buffer displayed in the
...
window where they clicked the mouse has a header line, adjust
vertical movement by one.
2001-06-25 10:39:06 +00:00
Dave Love
47da5efad1
(xterm-mouse-mode): Typo.
2000-02-22 12:02:10 +00:00
Dave Love
b2497d2e51
Doc fixes.
...
(xterm-mouse-position-function): New function, replacing advice of
mouse-position.
(xterm-mouse-mode): Use it.
2000-02-22 11:57:31 +00:00
Markus Rost
54eba3537b
(xterm-mouse-mode): Pacify the byte compiler.
1998-12-05 18:23:14 +00:00
Andreas Schwab
ebc4ab7cf8
(xterm-mouse-translate, xterm-mouse-event): Replace
...
obsolete `concat with integer' by format.
1998-03-23 13:26:00 +00:00
Per Abrahamsen
3efc86effb
Updated address.
1997-05-27 21:26:13 +00:00
Richard M. Stallman
c27f1e0119
(xterm-mouse-event): Adjust for minibuffer prompt width.
1996-06-04 21:51:59 +00:00
Richard M. Stallman
387a23452a
Comment change.
1996-03-04 21:24:28 +00:00
Erik Naggum
b578f267af
Update FSF's address.
1996-01-14 07:34:30 +00:00
Richard M. Stallman
599431abfb
(xterm-mouse-translate, xterm-mouse-event):
...
Variable `last' renamed to `xterm-mouse-last'.
(xterm-mouse-last): Add defvar.
1996-01-02 16:35:13 +00:00
Richard M. Stallman
cec01ccbd1
(global-map): Removed bindings of down events to ignore.
...
(xterm-mouse-translate): Only generate down event when bound.
Cleanup. Support for mode line and vertical bar dragging, and
menu-bar events.
(xterm-mouse-x): New variable.
(xterm-mouse-y): New variable.
(mouse-position): Advice to use above variables.
(xterm-mouse-event): Support menu-bar. Set xterm-mouse-x and xterm-mouse-y.
1995-11-11 04:07:39 +00:00
Richard M. Stallman
fe3acbd4fd
Initial revision
1995-10-09 17:08:20 +00:00