From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.devel Subject: Re: Emacs 21.3.50.1 (CVS sources) MacOS X tex-mode bug Date: Tue, 18 Jan 2005 20:14:23 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1106047430 26539 80.91.229.6 (18 Jan 2005 11:23:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 18 Jan 2005 11:23:50 +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 12:23:42 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 1CqrSY-0003K3-00 for ; Tue, 18 Jan 2005 12:23:42 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CqrbJ-0007zB-Ar for ged-emacs-devel@m.gmane.org; Tue, 18 Jan 2005 06:32:45 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CqrXO-000780-BC for emacs-devel@gnu.org; Tue, 18 Jan 2005 06:28:43 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CqrXH-000760-Gn for emacs-devel@gnu.org; Tue, 18 Jan 2005 06:28:35 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CqrXG-000754-Tn for emacs-devel@gnu.org; Tue, 18 Jan 2005 06:28:35 -0500 Original-Received: from [133.82.132.2] (helo=mathmail.math.s.chiba-u.ac.jp) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CqrJb-0006es-Vy for emacs-devel@gnu.org; Tue, 18 Jan 2005 06:14:28 -0500 Original-Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id E70631A62FF; Tue, 18 Jan 2005 20:14:23 +0900 (JST) Original-To: Steven Tamm In-Reply-To: User-Agent: Wanderlust/2.12.0 (Your Wildest Dreams) SEMI/1.14.6 (Maruoka) FLIM/1.14.6 (Marutamachi) APEL/10.6 Emacs/21.3.50 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) 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:32325 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:32325 >>>>> On Mon, 17 Jan 2005 20:08:50 -0800, Steven Tamm 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 =================================================================== 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 #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) == 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