all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ivan Andrus <darthandrus@gmail.com>
To: "Jan Djärv" <jan.h.d@swipnet.se>
Cc: "12834@debbugs.gnu.org" <12834@debbugs.gnu.org>
Subject: bug#12834: 24.3.50; OS X selecting a font can lock Emacs
Date: Sat, 17 Nov 2012 21:37:31 +0100	[thread overview]
Message-ID: <D4EDA25D-3C68-4168-8FFB-34FEA526A0FA@gmail.com> (raw)
In-Reply-To: <F3FFBD55-ED1F-4461-A331-07328FD52379@swipnet.se>

Well it went from being 100% reproducible to only about 10%.  Although I haven't tested it exhaustively, it seems to only be a problem when I type in some ridiculously large font size e.g. 7000.  So I think it's probably not really an issue.

-Ivan

On Nov 17, 2012, at 4:29 PM, Jan Djärv <jan.h.d@swipnet.se> wrote:

> Hello.
> 
> I can reproduce it sometimes, but not most of the times.  Anyway, I made another checkin in the emacs-24 branch.  Please try it.
> 
> 	Jan D.
> 
> 14 nov 2012 kl. 10:39 skrev Ivan Andrus <darthandrus@gmail.com>:
> 
>> On Nov 14, 2012, at 7:08 AM, Jan Djärv <jan.h.d@swipnet.se> wrote:
>> 
>>> Hello.
>>> 
>>> 13 nov 2012 kl. 19:40 skrev Ivan Andrus <darthandrus@gmail.com>:
>>> On Nov 13, 2012, at 4:19 PM, Jan Djärv <jan.h.d@swipnet.se> wrote:
>>>>> Which version did you build? Are you sure you built the emacs-24 branch, not trunk?
>>>> 
>>>> To be honest I'm not entirely sure how to figure that out.  Every time I think I understand bzr it doesn't do what I think.  Anyway, updating on the branch I get
>>>> 
>>>> $ bzr pull
>>>> Using saved parent location: bzr://bzr.savannah.gnu.org/emacs/emacs-24/                                                                                                             
>>>> No revisions or tags to pull.                                                                                                                                                       
>>>> 
>>>> In src/nsterm.m I see
>>>> 
>>>> 303  static void
>>>> 304  hold_event (struct input_event *event)
>>>> 305  {
>>>> 306    if (hold_event_q.nr == hold_event_q.cap)
>>>> 307      {
>>>> 308        if (hold_event_q.cap == 0) hold_event_q.cap = 10;
>>>> 309        else hold_event_q.cap *= 2;
>>>> 310        hold_event_q.q = (struct input_event *)
>>>> 311          xrealloc (hold_event_q.q, hold_event_q.cap * sizeof (*hold_event_q.q));
>>>> 312      }
>>>> 313  
>>>> 314    hold_event_q.q[hold_event_q.nr++] = *event;
>>>> 315    /* Make sure ns_read_socket is called, i.e. we have input.  */
>>>> 316    kill (0, SIGIO);
>>>> 317  }
>>>> 
>>>> which I think is the required change.  I still see the problem.  When I run under gdb I am unable to interrupt the process with Ctrl-C once it has stopped responding.  I'm afraid I'm not sure how to help debug it otherwise.  Sending SIGIO manually doesn't cause it to become responsive.
>>> 
>>> That is the fix.  Sending SIGIO manually is pointless.  I can not reproduce the error anymore, so make sure you did make install, and give the exact steps you did to encounter the bug, starting from -Q.
>> 
>> I ran make install to be sure.
>> 
>> ./nextstep/Emacs.app/Contents/MacOS/Emacs -Q
>> 
>> Interestingly this opens ~/.emacs.d/abbref_defs which had an error on my machine.  Is this expected with -Q?  Anyway, it's probably not relevant to the discussion at hand since I see the same behaviour if I move .emacs.d entirely.
>> 
>> Then I run `menu-set-font', either from the menu or with C-x C-e.  I can change the font and the size freely.  Then I click in the "Size" text box.  A few times this hasn't caused problems, but usually it causes Emacs to stop responding.  The font panel still responds, but nothing changes in terms of the font displayed and it doesn't register typing etc.  FWIW, I added a printf to hold_event and it gets called 3 times when I click on anything other than the text box, but only twice when I click on the text box. 
>> 
>> Thanks for looking into this.  I'm running 10.8.2 with home brew installed with the latest XCode installed.  I recently upgraded from 10.6.8.  I'm not sure what else might be at play.
>> 
>> -Ivan
> 






  reply	other threads:[~2012-11-17 20:37 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-08 13:28 bug#12834: 24.3.50; OS X selecting a font can lock Emacs Ivan Andrus
2012-11-13  8:01 ` Jan Djärv
     [not found]   ` <A12226BD-9C58-42A3-BA46-2CD741F1890E@gmail.com>
2012-11-13 15:19     ` Jan Djärv
2012-11-13 18:40       ` Ivan Andrus
2012-11-13 19:07         ` Eli Zaretskii
2012-11-14  6:08         ` Jan Djärv
2012-11-14  9:39           ` Ivan Andrus
2012-11-17 15:29             ` Jan Djärv
2012-11-17 20:37               ` Ivan Andrus [this message]
2012-11-18 15:15                 ` Jan Djärv

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

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

  git send-email \
    --in-reply-to=D4EDA25D-3C68-4168-8FFB-34FEA526A0FA@gmail.com \
    --to=darthandrus@gmail.com \
    --cc=12834@debbugs.gnu.org \
    --cc=jan.h.d@swipnet.se \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.