From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: 23.0.50; MacOS X 10.4: very slow visuals, multi-tty patch suspected Date: Mon, 10 Sep 2007 09:12:38 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: References: <200709061414.l86EEwQE013656@oogie-boogie.ics.uci.edu> <200709061610.l86GAA2D017210@oogie-boogie.ics.uci.edu> <200709061715.l86HFHXx020325@oogie-boogie.ics.uci.edu> <200709061843.l86IhFrJ023998@oogie-boogie.ics.uci.edu> <200709062016.l86KGW4i027628@oogie-boogie.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1189478455 3685 80.91.229.12 (11 Sep 2007 02:40:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 11 Sep 2007 02:40:55 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 11 12:40:42 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IV2k7-0001W2-M8 for ged-emacs-devel@m.gmane.org; Tue, 11 Sep 2007 12:13:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IUvFk-0004oU-Oh for ged-emacs-devel@m.gmane.org; Mon, 10 Sep 2007 22:13:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IUvFh-0004oF-3v for emacs-devel@gnu.org; Mon, 10 Sep 2007 22:13:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IUvFg-0004o3-1M for emacs-devel@gnu.org; Mon, 10 Sep 2007 22:13:20 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IUvFf-0004o0-T1 for emacs-devel@gnu.org; Mon, 10 Sep 2007 22:13:19 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IUvFf-0002XL-Ba for emacs-devel@gnu.org; Mon, 10 Sep 2007 22:13:19 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IUuJY-0000u9-8B for emacs-devel@gnu.org; Tue, 11 Sep 2007 03:14:21 +0200 Original-Received: from c-24-14-57-89.hsd1.il.comcast.net ([24.14.57.89]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 11 Sep 2007 03:13:14 +0200 Original-Received: from tzz by c-24-14-57-89.hsd1.il.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 11 Sep 2007 03:13:14 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 46 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: c-24-14-57-89.hsd1.il.comcast.net X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (darwin) Cancel-Lock: sha1:nfC90+eOPAmq5rp/TkLtnZbo+GY= X-UiO-SPF-Received: Received-SPF: pass (mail-mx9.uio.no: domain of sea.gmane.org designates 80.91.229.5 as permitted sender) client-ip=80.91.229.5; envelope-from=news@sea.gmane.org; helo=sea.gmane.org; X-UiO-Spam-info: not spam, SpamAssassin (score=-3.0, required=12.0, autolearn=disabled, UIO_RECEIVED_FROM_NORWAY=-3) X-UiO-Scanned: 155C351BE776F59B58A1008EC30362C676D8888B X-UiO-SPAM-Test: remote_host: 80.91.229.5 spam_score: -29 maxlevel 200 minaction 2 bait 0 mail/h: 16 total 396 max/h 30 blacklist 0 greylist 0 ratelimit 0 X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) 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: news.gmane.org gmane.emacs.devel:78552 Archived-At: On Thu, 06 Sep 2007 21:45:34 -0500 Ted Zlatanov wrote: TZ> On Thu, 06 Sep 2007 13:16:32 -0700 Dan Nicolaescu wrote: DN> Ted Zlatanov writes: >>> On Thu, 06 Sep 2007 11:43:15 -0700 Dan Nicolaescu wrote: >>> DN> Look for a long thread in the past few weeks with the subject DN> "CVS HEAD fails to build on OSX 10.4" >>> >>> I looked at the thread more carefully. Chad Brown reported a very >>> specific issue exactly like the one I experienced, with the symptom >>> being that keypresses are handled very slowly, but he couldn't debug it >>> further because Emacs crashed. Mitsuharu commented in the thread: >>> >>> > As multi-tty no longer does `FD_SET (0, &input_wait_mask)' in >>> > process.c, if no `add_keyboard_wait_descriptor' calls are made, then >>> > Carbon Emacs reads events from the window system only rarely via >>> > polling with SIGALRM and becomes very unresponsive as reported. >>> >>> Mitsuharu, can you tell us if you think this problem can be solved >>> easily? Regardless of the state of the Carbon/Cocoa/etc ports, I'd like >>> to have something that works in the CVS Emacs for MacOS users. Can we >>> just reintroduce that FD_SET call, or will that break other things? >>> Should we increase the frequency of the SIGALRM polling instead? DN> Can you try to do what the comment in the code says: add a call to DN> add_keyboard_wait_descriptor? Probably mac_term_init is the place to DN> do that. TZ> I added: TZ> int desc = 0; TZ> printf("Setting up FD %d\n", desc); TZ> /* replacing the call FD_SET (0, &input_wait_mask) from process.c */ TZ> add_keyboard_wait_descriptor(desc); TZ> before, during, and after the BLOCK_INPUT/UNBLOCK_INPUT portion, and it TZ> didn't help. Input was still very slow. I put in the printf to be sure TZ> the function was running. If I'm missing something, let me know please. Anyone with new suggestions? Am I doing add_keyboard_wait_descriptor() in the right place? Should I do multiple calls? Can we look at increasing the SIGALRM frequency as a workaround? Thanks Ted