aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDan Nicolaescu2007-05-19 23:12:46 +0000
committerDan Nicolaescu2007-05-19 23:12:46 +0000
commitcaf49fb0438e9493456b59cf9eab845e0e568e2a (patch)
treec9979007c35f2c096b6e96632d8f79d4c2e0c2e2 /src
parent80ca7302d820bd3460a06db39165bbc35144c684 (diff)
downloademacs-caf49fb0438e9493456b59cf9eab845e0e568e2a.tar.gz
emacs-caf49fb0438e9493456b59cf9eab845e0e568e2a.zip
* loadup.el: Load mac-win on a Mac. Avoid loading both x-win and
mac-win. * term/mac-win.el: (mac-initialize-window-system): New function. Move global setup here. * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here. (SYSTEM_PURESIZE_EXTRA): Only define on Carbon. * emacsclient.c (decode_options): Don't use a tty on mac carbon.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog.multi-tty4
-rw-r--r--src/frame.c4
-rw-r--r--src/macfns.c2
-rw-r--r--src/s/darwin.h6
4 files changed, 10 insertions, 6 deletions
diff --git a/src/ChangeLog.multi-tty b/src/ChangeLog.multi-tty
index 4f173a3962d..8a1a1dbd1db 100644
--- a/src/ChangeLog.multi-tty
+++ b/src/ChangeLog.multi-tty
@@ -1,6 +1,9 @@
12007-05-19 Dan Nicolaescu <dann@ics.uci.edu> 12007-05-19 Dan Nicolaescu <dann@ics.uci.edu>
2 2
3 * frame.c (Fmake_terminal_frame): Disable output method test.
4
3 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here. 5 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
6 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
4 7
5 * termhooks.h (union display_info): Add mac_display_info. 8 * termhooks.h (union display_info): Add mac_display_info.
6 9
@@ -32,6 +35,7 @@
32 (Fx_open_connection): Remove window-system check. 35 (Fx_open_connection): Remove window-system check.
33 (start_hourglass): Likewise. 36 (start_hourglass): Likewise.
34 (x_create_tip_frame): Get the keyboard from the terminal. 37 (x_create_tip_frame): Get the keyboard from the terminal.
38 (Fx_create_frame): Don't use FRAME_MAC_DISPLAY_INFO.
35 39
36 * w32fns.c (Fx_create_frame): Use kboard from the terminal. 40 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
37 41
diff --git a/src/frame.c b/src/frame.c
index 859802995af..5b8f9acaf0c 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -702,7 +702,9 @@ affects all frames on the same terminal device. */)
702 abort (); 702 abort ();
703#else /* not MSDOS */ 703#else /* not MSDOS */
704 704
705#ifdef MAC_OS 705#if 0 /* #ifdef MAC_OS */
706 /* This can happen for multi-tty when using both terminal frames and
707 Carbon frames. */
706 if (sf->output_method != output_mac) 708 if (sf->output_method != output_mac)
707 error ("Not running on a Macintosh screen; cannot make a new Macintosh frame"); 709 error ("Not running on a Macintosh screen; cannot make a new Macintosh frame");
708#else 710#else
diff --git a/src/macfns.c b/src/macfns.c
index 382259e2fce..4c454399afb 100644
--- a/src/macfns.c
+++ b/src/macfns.c
@@ -2590,7 +2590,7 @@ This function is an internal primitive--use `make-frame' instead. */)
2590 f->icon_name = Qnil; 2590 f->icon_name = Qnil;
2591 2591
2592 /* XXX Is this needed? */ 2592 /* XXX Is this needed? */
2593 FRAME_MAC_DISPLAY_INFO (f) = dpyinfo; 2593 /*FRAME_MAC_DISPLAY_INFO (f) = dpyinfo;*/
2594 2594
2595 /* With FRAME_MAC_DISPLAY_INFO set up, this unwind-protect is safe. */ 2595 /* With FRAME_MAC_DISPLAY_INFO set up, this unwind-protect is safe. */
2596#if GLYPH_DEBUG 2596#if GLYPH_DEBUG
diff --git a/src/s/darwin.h b/src/s/darwin.h
index 72ed8964a7d..2cc6ef1cdf1 100644
--- a/src/s/darwin.h
+++ b/src/s/darwin.h
@@ -50,12 +50,10 @@ Boston, MA 02110-1301, USA. */
50#ifdef MAC_OSX 50#ifdef MAC_OSX
51#ifdef HAVE_CARBON 51#ifdef HAVE_CARBON
52#define MAC_OS 52#define MAC_OS
53#endif
54#endif
55
56/* We need a little extra space, see ../../lisp/loadup.el. */ 53/* We need a little extra space, see ../../lisp/loadup.el. */
57#define SYSTEM_PURESIZE_EXTRA 30000 54#define SYSTEM_PURESIZE_EXTRA 30000
58 55#endif
56#endif
59 57
60/* SYSTEM_TYPE should indicate the kind of system you are using. 58/* SYSTEM_TYPE should indicate the kind of system you are using.
61 It sets the Lisp variable system-type. */ 59 It sets the Lisp variable system-type. */