emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs 21.3.50.1 (CVS sources) MacOS X tex-mode bug


From: Steven Tamm
Subject: Re: Emacs 21.3.50.1 (CVS sources) MacOS X tex-mode bug
Date: Tue, 18 Jan 2005 09:31:24 -0800

Darn. I forgot that 10.2 and 10.3 are still binary compatible (unlike 10.1). Are pty's still broken on 10.2.8? In any case it makes sense to have it be #ifdef DARWIN.

I'd also suggest that we have a "darwin-kernel-release" variable defined only with system-type darwin and place it someplace like sysdep.c or editfns.c. Should this, perhaps be a built-in variable across all *nix platforms? Something similar to get_emacs_configuration in w32.c?

-Steven

On Jan 18, 2005, at 3:14 AM, YAMAMOTO Mitsuharu wrote:

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]