From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Steven Tamm Newsgroups: gmane.emacs.devel Subject: Re: Emacs 21.3.50.1 (CVS sources) MacOS X tex-mode bug Date: Tue, 18 Jan 2005 09:31:24 -0800 Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1106070990 9936 80.91.229.6 (18 Jan 2005 17:56:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 18 Jan 2005 17:56:30 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 18 18:56:22 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CqxaY-0002Ii-00 for ; Tue, 18 Jan 2005 18:56:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CqxmS-0007Qv-Qj for ged-emacs-devel@m.gmane.org; Tue, 18 Jan 2005 13:08:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Cqxlp-0007GL-7M for emacs-devel@gnu.org; Tue, 18 Jan 2005 13:08:02 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CqxeG-0006Mo-3Z for emacs-devel@gnu.org; Tue, 18 Jan 2005 13:00:24 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CqxeC-0006Dh-4r for emacs-devel@gnu.org; Tue, 18 Jan 2005 13:00:08 -0500 Original-Received: from [17.250.248.85] (helo=smtpout.mac.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CqxCS-0005xD-0M for emacs-devel@gnu.org; Tue, 18 Jan 2005 12:31:28 -0500 Original-Received: from mac.com (smtpin08-en2 [10.13.10.153]) by smtpout.mac.com (Xserve/MantshX 2.0) with ESMTP id j0IHVQ6B029212; Tue, 18 Jan 2005 09:31:26 -0800 (PST) Original-Received: from [10.0.1.201] (c-24-4-203-197.client.comcast.net [24.4.203.197]) (authenticated bits=0) by mac.com (Xserve/smtpin08/MantshX 4.0) with ESMTP id j0IHVP9V019732; Tue, 18 Jan 2005 09:31:25 -0800 (PST) In-Reply-To: Original-To: YAMAMOTO Mitsuharu X-Mailer: Apple Mail (2.619) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:32342 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:32342 Darn. I forgot that 10.2 and 10.3 are still binary compatible (unlike=20= 10.1). Are pty's still broken on 10.2.8? In any case it makes sense=20 to have it be #ifdef DARWIN. I'd also suggest that we have a "darwin-kernel-release" variable=20 defined only with system-type darwin and place it someplace like=20 sysdep.c or editfns.c. Should this, perhaps be a built-in variable=20 across all *nix platforms? Something similar to=20 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=20 >>>>>> 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 > mituharu@math.s.chiba-u.ac.jp > > Index: lisp/term/mac-win.el > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 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=3D 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=20 > 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 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 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 > #endif > > + #ifdef MAC_OSX > + #include > + #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) =3D=3D 0) > + return atoi (uts.release); > + else > + return -1; > + } > + #endif > =0C > 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 =3D Qnil; > + #endif > } > > void > > > _______________________________________________ > Emacs-devel mailing list > Emacs-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-devel