unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: emacs-devel@gnu.org
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	[thread overview]
Message-ID: <m2bqca7go9.fsf@lifelogs.com> (raw)
In-Reply-To: m2ir6nnqgh.fsf@lifelogs.com

On Thu, 06 Sep 2007 21:45:34 -0500 Ted Zlatanov <tzz@lifelogs.com> wrote: 

TZ> On Thu, 06 Sep 2007 13:16:32 -0700 Dan Nicolaescu <dann@ics.uci.edu> wrote: 
DN> Ted Zlatanov <tzz@lifelogs.com> writes:
>>> On Thu, 06 Sep 2007 11:43:15 -0700 Dan Nicolaescu <dann@ics.uci.edu> 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

  reply	other threads:[~2007-09-10 14:12 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-06 10:02 23.0.50; MacOS X 10.4: very slow visuals, multi-tty patch suspected Ted Zlatanov
2007-09-06 10:15 ` Ted Zlatanov
2007-09-06 10:44   ` Nick Roberts
2007-09-06 14:14 ` Dan Nicolaescu
2007-09-06 15:45   ` Ted Zlatanov
2007-09-06 16:10     ` Dan Nicolaescu
2007-09-06 16:38       ` Ted Zlatanov
2007-09-06 17:15         ` Dan Nicolaescu
2007-09-06 17:33           ` Ted Zlatanov
2007-09-06 18:43             ` Dan Nicolaescu
2007-09-06 19:24               ` Ted Zlatanov
2007-09-06 20:02                 ` David Kastrup
2007-09-06 20:16                 ` Dan Nicolaescu
2007-09-07  2:45                   ` Ted Zlatanov
2007-09-10 14:12                     ` Ted Zlatanov [this message]
2007-09-25 14:36                       ` Ted Zlatanov
2007-09-25 15:03                         ` Jason Rumney
2007-09-25 16:53                           ` Ted Zlatanov
2007-09-25 16:58                             ` Ted Zlatanov
2007-09-25 20:43                             ` Jason Rumney
2007-09-25 20:58                               ` Ted Zlatanov
2007-09-25 23:50                                 ` YAMAMOTO Mitsuharu
2007-09-26 11:48                                   ` Ted Zlatanov
2007-09-26  5:44                               ` Dan Nicolaescu
2007-09-26  7:35                                 ` Jason Rumney
2007-09-26  7:44                                   ` Jason Rumney
2007-09-26  9:19                                     ` Eli Zaretskii
2007-09-26 11:52                                       ` Ted Zlatanov
2007-09-26  5:42                             ` Dan Nicolaescu
2007-09-06 21:08                 ` Jason Rumney
2007-09-07  6:32     ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2bqca7go9.fsf@lifelogs.com \
    --to=tzz@lifelogs.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).