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: Problem with emacs -nw under OS X 10.3.5 using latest CVS Date: Thu, 04 Nov 2004 19:21:28 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <0AFA7E6B-2DE9-11D9-9EB1-000A95A6AB66@bio.ri.ccf.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1099563887 15886 80.91.229.6 (4 Nov 2004 10:24:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 4 Nov 2004 10:24:47 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 04 11:24:36 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CPenD-0000U5-00 for ; Thu, 04 Nov 2004 11:24:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CPevM-0002s7-Lu for ged-emacs-devel@m.gmane.org; Thu, 04 Nov 2004 05:33:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CPess-0002C0-IK for emacs-devel@gnu.org; Thu, 04 Nov 2004 05:30:26 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CPesr-0002Bl-Or for emacs-devel@gnu.org; Thu, 04 Nov 2004 05:30:26 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CPesr-0002Bd-9W for emacs-devel@gnu.org; Thu, 04 Nov 2004 05:30:25 -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 1CPekG-0007Ft-4V for emacs-devel@gnu.org; Thu, 04 Nov 2004 05:21:32 -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 7A1D81A6383; Thu, 4 Nov 2004 19:21:28 +0900 (JST) Original-To: John Barnard In-Reply-To: <0AFA7E6B-2DE9-11D9-9EB1-000A95A6AB66@bio.ri.ccf.org> User-Agent: Wanderlust/2.10.1 (Watching The Wheels) SEMI/1.14.5 (Awara-Onsen) FLIM/1.14.5 (Demachiyanagi) 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:29426 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:29426 >>>>> On Wed, 3 Nov 2004 17:38:11 -0500, John Barnard said: > I'm seeing some odd behavior when running emacs in terminal mode > (i.e., emacs -nw) built from the latest CVS (as of yesterday) under > 10.3.5 and latest released dev. tools. Basically there's no output > shown from any command, prompt is not responsive, and the process > loads spikes to 100%. I could reproduce the problem using a Carbon build by setting LANG to C. Does the following patch work for you? YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp Index: src/keyboard.c =================================================================== RCS file: /cvsroot/emacs/emacs/src/keyboard.c,v retrieving revision 1.792 diff -c -r1.792 keyboard.c *** src/keyboard.c 9 Oct 2004 23:24:49 -0000 1.792 --- src/keyboard.c 4 Nov 2004 10:11:05 -0000 *************** *** 607,613 **** /* We are unable to use interrupts if FIONREAD is not available, so flush SIGIO so we won't try. */ ! #if !defined (FIONREAD) || defined(HAVE_CARBON) #ifdef SIGIO #undef SIGIO #endif --- 607,613 ---- /* We are unable to use interrupts if FIONREAD is not available, so flush SIGIO so we won't try. */ ! #ifndef FIONREAD #ifdef SIGIO #undef SIGIO #endif Index: src/s/darwin.h =================================================================== RCS file: /cvsroot/emacs/emacs/src/s/darwin.h,v retrieving revision 1.16 diff -c -r1.16 darwin.h *** src/s/darwin.h 2 Sep 2004 17:02:11 -0000 1.16 --- src/s/darwin.h 4 Nov 2004 10:11:07 -0000 *************** *** 217,222 **** --- 217,229 ---- /* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */ #define HAVE_SOCKETS + /* In Carbon, asynchronous I/O (using SIGIO) can't be used for window + events because they don't come from sockets, even though it works + fine on tty's. */ + #ifdef HAVE_CARBON + #define NO_SOCK_SIGIO + #endif + /* Extra initialization calls in main for Mac OS X system type. */ #ifdef HAVE_CARBON #define SYMS_SYSTEM syms_of_mac()