summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDan Nicolaescu <dann@ics.uci.edu>2007-06-04 02:16:32 +0000
committerDan Nicolaescu <dann@ics.uci.edu>2007-06-04 02:16:32 +0000
commit88acaaf20b2fd0af64eea1b5d4f8fa8227c32e86 (patch)
treec87acbf5ad6c808ce999cb4cf0c576b0a0318376 /src
parent34c6724464237db4bfd5b3fa57e8b0f66a92f618 (diff)
downloademacs-88acaaf20b2fd0af64eea1b5d4f8fa8227c32e86.tar.gz
emacs-88acaaf20b2fd0af64eea1b5d4f8fa8227c32e86.tar.bz2
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 @@
+2007-06-03 Dan Nicolaescu <dann@ics.uci.edu>
+
+ * 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.
+
2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
* 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. */
#define HAVE_MOUSE
#endif
+/* Multi-tty support relies on MULTI_KBOARD. It seems safe to turn it
+ on unconditionally. */
+#ifndef MULTI_KBOARD
+#define MULTI_KBOARD
+#endif
+
/* If we're using the Carbon API on Mac OS X, define a few more
variables as well. */
#ifdef HAVE_CARBON
#define HAVE_WINDOW_SYSTEM
#define HAVE_MOUSE
-#endif
-
-/* Multi-tty support relies on MULTI_KBOARD. It seems safe to turn it
- on unconditionally. */
-#ifndef MULTI_KBOARD
-#define MULTI_KBOARD
+/* XXX The MULTI_KBOARD support does not work yet on this platform. */
+#undef MULTI_KBOARD
#endif
/* 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)
terminal->display_info.mac = dpyinfo;
dpyinfo->terminal = terminal;
- terminal->rif = &x_redisplay_interface;
terminal->clear_frame_hook = x_clear_frame;
terminal->ins_del_lines_hook = x_ins_del_lines;
terminal->delete_glyphs_hook = x_delete_glyphs;
@@ -11885,12 +11884,15 @@ mac_create_terminal (struct mac_display_info *dpyinfo)
terminal->mouse_position_hook = XTmouse_position;
terminal->frame_rehighlight_hook = XTframe_rehighlight;
terminal->frame_raise_lower_hook = XTframe_raise_lower;
+ /* terminal->fullscreen_hook = XTfullscreen_hook; */
+ terminal->set_vertical_scroll_bar_hook = XTset_vertical_scroll_bar;
+ terminal->condemn_scroll_bars_hook = XTcondemn_scroll_bars;
+ terminal->redeem_scroll_bar_hook = XTredeem_scroll_bar;
+ terminal->judge_scroll_bars_hook = XTjudge_scroll_bars;
+ terminal->delete_frame_hook = x_destroy_window;
+ /* terminal->delete_terminal_hook = x_delete_terminal; */
- terminal->set_vertical_scroll_bar_hook = XTset_vertical_scroll_bar;
- terminal->condemn_scroll_bars_hook = XTcondemn_scroll_bars;
- terminal->redeem_scroll_bar_hook = XTredeem_scroll_bar;
- terminal->judge_scroll_bars_hook = XTjudge_scroll_bars;
-
+ terminal->rif = &x_redisplay_interface;
#if 0
TTY_SCROLL_REGION_OK (CURTTY ()) = 1; /* we'll scroll partial frames */
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)
encode_terminal_bufsize = 0;
#ifdef HAVE_GPM
- mouse_position_hook = term_mouse_position;
+ terminal->mouse_position_hook = term_mouse_position;
Qmouse_face_window = Qnil;
#endif