On Mon, 17 Jan 2005 20:08:50 -0800, Steven Tamm
<address@hidden> said:
The problem only applied to the carbon build, I believe. The pty's
weren't setup correctly when launching from a bundle. My
recollection is fuzzy, so it could be something else.
How about this? I used uname(3) because the variable
system-configuration corresponds to the build environment, not the
execution environment.
I guess Darwin x86 also has the same kind of problem. Does anyone
know about that? Should we define and use DARWIN instead of MAC_OSX?
YAMAMOTO Mitsuharu
address@hidden
Index: lisp/term/mac-win.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/term/mac-win.el,v
retrieving revision 1.30
diff -c -r1.30 mac-win.el
*** lisp/term/mac-win.el 30 Dec 2004 02:04:31 -0000 1.30
--- lisp/term/mac-win.el 18 Jan 2005 10:43:11 -0000
***************
*** 1694,1704 ****
(if (string= default-directory "/")
(cd "~"))
- ;; Tell Emacs to use pipes instead of pty's for processes because the
- ;; latter sometimes lose characters. Pty support is compiled in
since
- ;; ange-ftp will not work without it.
- (setq process-connection-type nil)
-
;; Assume that fonts are always scalable on the Mac. This sometimes
;; results in characters with jagged edges. However, without it,
;; fonts with both truetype and bitmap representations but no italic
--- 1692,1697 ----
Index: src/process.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/process.c,v
retrieving revision 1.447
diff -c -r1.447 process.c
*** src/process.c 27 Dec 2004 16:06:43 -0000 1.447
--- src/process.c 18 Jan 2005 10:43:12 -0000
***************
*** 117,122 ****
--- 117,126 ----
#include <sys/wait.h>
#endif
+ #ifdef MAC_OSX
+ #include <sys/utsname.h>
+ #endif
+
#include "systime.h"
#include "systty.h"
***************
*** 6632,6637 ****
--- 6636,6656 ----
return 0;
}
+
+ #ifdef MAC_OSX
+ /* Return the major release number of Darwin. */
+
+ static int
+ darwin_major_release ()
+ {
+ struct utsname uts;
+
+ if (uname (&uts) == 0)
+ return atoi (uts.release);
+ else
+ return -1;
+ }
+ #endif
void
init_process ()
***************
*** 6704,6709 ****
--- 6723,6733 ----
Fprovide (intern ("make-network-process"), subfeatures);
}
#endif /* HAVE_SOCKETS */
+ #ifdef MAC_OSX
+ /* Darwin version < 7 has a problem in pty handling. */
+ if (darwin_major_release () < 7)
+ Vprocess_connection_type = Qnil;
+ #endif
}
void
_______________________________________________
Emacs-devel mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-devel