aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDan Nicolaescu2007-06-04 02:16:32 +0000
committerDan Nicolaescu2007-06-04 02:16:32 +0000
commit88acaaf20b2fd0af64eea1b5d4f8fa8227c32e86 (patch)
treec87acbf5ad6c808ce999cb4cf0c576b0a0318376 /src
parent34c6724464237db4bfd5b3fa57e8b0f66a92f618 (diff)
downloademacs-88acaaf20b2fd0af64eea1b5d4f8fa8227c32e86.tar.gz
emacs-88acaaf20b2fd0af64eea1b5d4f8fa8227c32e86.zip
* term.c (init_tty): Use terminal specific mouse_position_hook.
* macterm.c (mac_create_terminal): Indent and rearrange to be more similar to the X11 version. * config.in: Disable multi-keyboard support on a mac. * loadup.el: Use a better feature test on a mac.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog.multi-tty9
-rw-r--r--src/config.in14
-rw-r--r--src/macterm.c14
-rw-r--r--src/term.c2
4 files changed, 26 insertions, 13 deletions
diff --git a/src/ChangeLog.multi-tty b/src/ChangeLog.multi-tty
index dd349cf9b24..fc23d818ba5 100644
--- a/src/ChangeLog.multi-tty
+++ b/src/ChangeLog.multi-tty
@@ -1,3 +1,12 @@
12007-06-03 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * term.c (init_tty): Use terminal specific mouse_position_hook.
4
5 * macterm.c (mac_create_terminal): Indent and rearrange to be more
6 similar to the X11 version.
7
8 * config.in: Disable multi-keyboard support on a mac.
9
12007-05-26 Dan Nicolaescu <dann@ics.uci.edu> 102007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
2 11
3 * sysdep.c: Comment out text after #endif. 12 * sysdep.c: Comment out text after #endif.
diff --git a/src/config.in b/src/config.in
index 6d945d4bfdc..f57e889cc44 100644
--- a/src/config.in
+++ b/src/config.in
@@ -922,17 +922,19 @@ Boston, MA 02110-1301, USA. */
922#define HAVE_MOUSE 922#define HAVE_MOUSE
923#endif 923#endif
924 924
925/* Multi-tty support relies on MULTI_KBOARD. It seems safe to turn it
926 on unconditionally. */
927#ifndef MULTI_KBOARD
928#define MULTI_KBOARD
929#endif
930
925/* If we're using the Carbon API on Mac OS X, define a few more 931/* If we're using the Carbon API on Mac OS X, define a few more
926 variables as well. */ 932 variables as well. */
927#ifdef HAVE_CARBON 933#ifdef HAVE_CARBON
928#define HAVE_WINDOW_SYSTEM 934#define HAVE_WINDOW_SYSTEM
929#define HAVE_MOUSE 935#define HAVE_MOUSE
930#endif 936/* XXX The MULTI_KBOARD support does not work yet on this platform. */
931 937#undef MULTI_KBOARD
932/* Multi-tty support relies on MULTI_KBOARD. It seems safe to turn it
933 on unconditionally. */
934#ifndef MULTI_KBOARD
935#define MULTI_KBOARD
936#endif 938#endif
937 939
938/* Define USER_FULL_NAME to return a string 940/* Define USER_FULL_NAME to return a string
diff --git a/src/macterm.c b/src/macterm.c
index 1faf72485ce..0b8fec3a089 100644
--- a/src/macterm.c
+++ b/src/macterm.c
@@ -11870,7 +11870,6 @@ mac_create_terminal (struct mac_display_info *dpyinfo)
11870 terminal->display_info.mac = dpyinfo; 11870 terminal->display_info.mac = dpyinfo;
11871 dpyinfo->terminal = terminal; 11871 dpyinfo->terminal = terminal;
11872 11872
11873 terminal->rif = &x_redisplay_interface;
11874 terminal->clear_frame_hook = x_clear_frame; 11873 terminal->clear_frame_hook = x_clear_frame;
11875 terminal->ins_del_lines_hook = x_ins_del_lines; 11874 terminal->ins_del_lines_hook = x_ins_del_lines;
11876 terminal->delete_glyphs_hook = x_delete_glyphs; 11875 terminal->delete_glyphs_hook = x_delete_glyphs;
@@ -11885,12 +11884,15 @@ mac_create_terminal (struct mac_display_info *dpyinfo)
11885 terminal->mouse_position_hook = XTmouse_position; 11884 terminal->mouse_position_hook = XTmouse_position;
11886 terminal->frame_rehighlight_hook = XTframe_rehighlight; 11885 terminal->frame_rehighlight_hook = XTframe_rehighlight;
11887 terminal->frame_raise_lower_hook = XTframe_raise_lower; 11886 terminal->frame_raise_lower_hook = XTframe_raise_lower;
11887 /* terminal->fullscreen_hook = XTfullscreen_hook; */
11888 terminal->set_vertical_scroll_bar_hook = XTset_vertical_scroll_bar;
11889 terminal->condemn_scroll_bars_hook = XTcondemn_scroll_bars;
11890 terminal->redeem_scroll_bar_hook = XTredeem_scroll_bar;
11891 terminal->judge_scroll_bars_hook = XTjudge_scroll_bars;
11892 terminal->delete_frame_hook = x_destroy_window;
11893 /* terminal->delete_terminal_hook = x_delete_terminal; */
11888 11894
11889 terminal->set_vertical_scroll_bar_hook = XTset_vertical_scroll_bar; 11895 terminal->rif = &x_redisplay_interface;
11890 terminal->condemn_scroll_bars_hook = XTcondemn_scroll_bars;
11891 terminal->redeem_scroll_bar_hook = XTredeem_scroll_bar;
11892 terminal->judge_scroll_bars_hook = XTjudge_scroll_bars;
11893
11894#if 0 11896#if 0
11895 TTY_SCROLL_REGION_OK (CURTTY ()) = 1; /* we'll scroll partial frames */ 11897 TTY_SCROLL_REGION_OK (CURTTY ()) = 1; /* we'll scroll partial frames */
11896 TTY_CHAR_INS_DEL_OK (CURTTY ()) = 1; 11898 TTY_CHAR_INS_DEL_OK (CURTTY ()) = 1;
diff --git a/src/term.c b/src/term.c
index f6b9306dc6b..3a7490a2a30 100644
--- a/src/term.c
+++ b/src/term.c
@@ -3269,7 +3269,7 @@ init_tty (char *name, char *terminal_type, int must_succeed)
3269 encode_terminal_bufsize = 0; 3269 encode_terminal_bufsize = 0;
3270 3270
3271#ifdef HAVE_GPM 3271#ifdef HAVE_GPM
3272 mouse_position_hook = term_mouse_position; 3272 terminal->mouse_position_hook = term_mouse_position;
3273 Qmouse_face_window = Qnil; 3273 Qmouse_face_window = Qnil;
3274#endif 3274#endif
3275 3275