all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Jan Djärv" <jan.h.d@swipnet.se>
To: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Cc: Carsten Mattner <carstenmattner@googlemail.com>,
	Emacs developers <emacs-devel@gnu.org>
Subject: Re: C-g crash in C-x C-f (OSX Lion)
Date: Mon, 26 Dec 2011 16:31:12 +0100	[thread overview]
Message-ID: <61A2186E-2D7D-419B-8813-D8ACB733DE70@swipnet.se> (raw)
In-Reply-To: <wlaa6i68g1.wl%mituharu@math.s.chiba-u.ac.jp>


24 dec 2011 kl. 02:54 skrev YAMAMOTO Mitsuharu:

>>>>>> On Fri, 23 Dec 2011 09:09:56 +0100, Jan Djärv <jan.h.d@swipnet.se> said:
> 
>>>>>> Most of the uses of the Carbon framework in the Mac port are for
>>>>>> Apple Events and Carbon Events.
>>>>> 
>>>>> The main purpose of the use of them is to avoid Lisp evaluation
>>>>> inside read_socket_hook.
> 
>> Are you saying the Cocoa port runs lisp inside read_socket_hook?
>> Can you show where that is done?
> 
> I wrote about that in
> http://lists.gnu.org/archive/html/emacs-devel/2009-01/msg00952.html :
> 
>  In the platforms other than the Cocoa/GNUstep port, menu bar is
>  uniformly activated by the x_activate_menubar call in
>  kbd_buffer_get_event, which is called from read_char.  However, the
>  Cocoa/GNUstep port activates the menu bar and starts mouse tracking
>  in the context of read_socket_hook, which is supposed to be called
>  from fairly random states of the Lisp interpreter.
> 
> The current NS port is trying to minimize the problem by disallowing
> Lisp evaluations from QUIT and UNBLOCK_INPUT (grep `handling_signal'
> in the NS specific code including those enclosed with #ifdef HAVE_NS).
> I don't know if that could avoid all the problems, or some of unsolved
> problems on the NS port are caused by this.  Anyway, I would choose
> keeping the fundamental design principle and did so in the Mac port.
> 
> Allowing menu bar activation while disallowing Lisp evaluations in
> read_socket_hook from QUIT/UNBLOCK_INPUT also causes a bogus menu bar
> problem: one can start menu bar tracking even during the evaluation of
> (while t), whereas the contents of the `Buffers' menu would possibly
> be outdated.

This can be fixed in Cocoa, but OSX 10.5 or later is required (AFAIK anyway).

>  (BTW, I found that the position of the `Buffers' menu is
> strange on the NS port.)
> 

This must be a bug.

>>>> No way to make that work similarly without Carbon?
>>> 
>>> As far as I know.  I actually tried that at the very early stage of
>>> the development of the predecessor of the Mac port.
> 
>> I'm not sure what the problem is, but couldn't Core Foundation be
>> used?
> 
> I don't think so.  But maybe you have some (rough) idea?  It doesn't
> make sense to avoid 64-bit Carbon for the Mac port, but it might be
> useful for the NS port.  (I'm not sure whether Core Foundation is also
> available on GNUstep.)

There are some nice things (like CFFileDescriptor) in CoreFoundation that isn't available at the Cocoa level.  It just occured to me that something useful could be found here.  CoreFoundation is not available for GnuStep.

	Jan D.




  reply	other threads:[~2011-12-26 15:31 UTC|newest]

Thread overview: 156+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-12 13:11 C-g crash in C-x C-f (OSX Lion) Carsten Mattner
2011-12-14 17:56 ` chad
2011-12-14 20:50 ` Jan Djärv
2011-12-14 21:45   ` Carsten Mattner
2011-12-15  6:08     ` Eli Zaretskii
2011-12-15 20:42       ` Carsten Mattner
2011-12-15 20:47         ` Eli Zaretskii
2011-12-15 21:22           ` Carsten Mattner
2011-12-15 21:24       ` Carsten Mattner
2011-12-16 12:46         ` Carsten Mattner
2011-12-16 13:33           ` Jan D.
2011-12-16 14:21             ` Carsten Mattner
2011-12-16 14:32               ` Eli Zaretskii
2011-12-16 19:00                 ` Carsten Mattner
2011-12-16 19:02                   ` Carsten Mattner
2011-12-16 20:11                     ` Carsten Mattner
2011-12-16 20:14                       ` Carsten Mattner
2011-12-16 20:19                         ` Carsten Mattner
2011-12-16 20:21                           ` Carsten Mattner
2011-12-16 21:12                             ` Eli Zaretskii
2011-12-16 21:21                               ` Carsten Mattner
2011-12-16 21:11                           ` Eli Zaretskii
2011-12-16 21:22                             ` Carsten Mattner
2011-12-17  8:33                               ` Eli Zaretskii
2011-12-16 21:24                             ` Andreas Schwab
2011-12-17  3:41                               ` Stephen J. Turnbull
2011-12-17  4:36                                 ` Óscar Fuentes
2011-12-17  8:32                               ` Eli Zaretskii
2011-12-17  9:46                                 ` Jan Djärv
2011-12-17 12:03                                   ` Eli Zaretskii
2011-12-17 13:50                                     ` Jan Djärv
2011-12-17 15:39                                 ` Carsten Mattner
2011-12-17 15:49                                   ` Carsten Mattner
2011-12-17 16:08                                   ` Eli Zaretskii
2011-12-17 16:09                                   ` Jan Djärv
2011-12-17 16:20                                     ` Carsten Mattner
2011-12-17 16:47                                       ` Carsten Mattner
2011-12-17 17:15                                         ` Jan Djärv
2011-12-17 17:19                                           ` Carsten Mattner
2011-12-17 17:46                                             ` Jan Djärv
2011-12-17 18:06                                               ` Carsten Mattner
2011-12-17 18:18                                                 ` Jan Djärv
2011-12-17 18:20                                                   ` Carsten Mattner
2011-12-19  8:40                                     ` Stephen J. Turnbull
2011-12-19 10:59                                       ` Carsten Mattner
2011-12-19 11:20                                         ` Eli Zaretskii
2011-12-19 11:51                                           ` Carsten Mattner
2011-12-19 14:04                                             ` Eli Zaretskii
2011-12-19 11:53                                         ` Stephen J. Turnbull
2011-12-17  9:27                               ` Jan Djärv
2011-12-16 21:49                             ` Carsten Mattner
2011-12-17  8:13                               ` Eli Zaretskii
2011-12-17  0:22                             ` Paul Eggert
2011-12-17  9:14                               ` Jan Djärv
2011-12-17 17:30                                 ` Adrian Robert
2011-12-17 17:53                                   ` Jan Djärv
2011-12-17 18:19                                 ` Paul Eggert
2011-12-19 18:18                                   ` Jan Djärv
2011-12-19 21:31                                     ` Paul Eggert
2011-12-19  9:00                               ` René Kyllingstad
2011-12-19 11:00                                 ` Carsten Mattner
2011-12-19 15:53                                   ` Jan D.
2011-12-19 16:52                                     ` Carsten Mattner
2011-12-19 17:04                                       ` chad
2011-12-19 17:25                                       ` René Kyllingstad
2011-12-19 17:47                                         ` Carsten Mattner
2011-12-19 22:27                                         ` Dan Nicolaescu
2011-12-19 22:29                                           ` Carsten Mattner
2011-12-19 23:42                                             ` chad
2011-12-20  0:03                                         ` chad
2011-12-20  1:12                                           ` YAMAMOTO Mitsuharu
2011-12-20  1:28                                             ` YAMAMOTO Mitsuharu
2011-12-20  1:40                                             ` chad
2011-12-20  2:14                                               ` Glenn Morris
2011-12-20  2:32                                               ` YAMAMOTO Mitsuharu
2011-12-20  9:24                                                 ` YAMAMOTO Mitsuharu
2011-12-20 18:33                                                   ` Carsten Mattner
2011-12-21  0:38                                                     ` YAMAMOTO Mitsuharu
2011-12-21 10:42                                                       ` Carsten Mattner
2011-12-22  0:34                                                         ` YAMAMOTO Mitsuharu
2011-12-22 11:23                                                           ` Carsten Mattner
2011-12-22  0:42                                                   ` YAMAMOTO Mitsuharu
2011-12-22 11:28                                                     ` Carsten Mattner
2011-12-23  1:28                                                       ` YAMAMOTO Mitsuharu
2011-12-23  8:09                                                         ` Jan Djärv
2011-12-24  1:54                                                           ` YAMAMOTO Mitsuharu
2011-12-26 15:31                                                             ` Jan Djärv [this message]
2011-12-26 15:46                                                               ` David Reitter
2011-12-26 16:26                                                               ` Carsten Mattner
2011-12-26 16:41                                                               ` Stephen J. Turnbull
2011-12-27  1:28                                                                 ` YAMAMOTO Mitsuharu
2011-12-27  1:14                                                               ` YAMAMOTO Mitsuharu
2011-12-23 13:26                                                         ` Ted Zlatanov
2011-12-23 15:05                                                           ` Stephen J. Turnbull
2011-12-27 15:52                                                             ` Ted Zlatanov
2011-12-28  4:50                                                               ` Stephen J. Turnbull
2011-12-28  7:36                                                               ` YAMAMOTO Mitsuharu
2011-12-28 10:42                                                                 ` Stefan Monnier
2011-12-28 13:44                                                                   ` Jan Djärv
2011-12-29  0:18                                                                 ` Ted Zlatanov
2011-12-29  0:57                                                                   ` YAMAMOTO Mitsuharu
2011-12-29 15:15                                                                     ` Ted Zlatanov
2011-12-30  0:34                                                                       ` YAMAMOTO Mitsuharu
2011-12-30 14:52                                                                         ` Ted Zlatanov
2011-12-30 22:12                                                                           ` YAMAMOTO Mitsuharu
2011-12-31 13:22                                                                             ` Mac OS-compatible ports (was: C-g crash in C-x C-f (OSX Lion)) Ted Zlatanov
2011-12-31 14:27                                                                               ` Mac OS-compatible ports Jan D.
2012-01-01  1:54                                                                                 ` YAMAMOTO Mitsuharu
2012-01-01 10:48                                                                                   ` Jan Djärv
2012-01-01 15:31                                                                                     ` Adrian Robert
2012-01-02  0:13                                                                                       ` YAMAMOTO Mitsuharu
2012-01-01  1:47                                                                               ` Mac OS-compatible ports (was: C-g crash in C-x C-f (OSX Lion)) YAMAMOTO Mitsuharu
2012-01-01  7:02                                                                                 ` YAMAMOTO Mitsuharu
2012-01-01 21:18                                                                                   ` Mac OS-compatible ports David De La Harpe Golden
2012-01-02  6:04                                                                                     ` YAMAMOTO Mitsuharu
2012-01-01 10:50                                                                                 ` Mac OS-compatible ports (was: C-g crash in C-x C-f (OSX Lion)) Carsten Mattner
2012-01-01 14:06                                                                                 ` Mac OS-compatible ports Ted Zlatanov
2012-01-02  0:43                                                                                   ` YAMAMOTO Mitsuharu
2012-01-01  6:26                                                                               ` Leo
2012-01-01 10:36                                                                                 ` Jan Djärv
2012-01-01 10:48                                                                                   ` Carsten Mattner
2012-01-02 10:08                                                                                   ` Christian Lynbech
2012-01-07 13:09                                                                                     ` Dimitri Fontaine
2012-01-08  1:07                                                                                       ` Dave Abrahams
2012-01-08  1:10                                                                                       ` Dave Abrahams
2012-01-08  1:28                                                                                       ` chad
2012-01-08  8:37                                                                                         ` Dimitri Fontaine
2012-01-01 13:24                                                                                 ` Ted Zlatanov
2012-01-01 19:22                                                                                 ` chad
2011-12-20  1:57                                             ` C-g crash in C-x C-f (OSX Lion) Leo
2011-12-20  7:29                                             ` YAMAMOTO Mitsuharu
2011-12-19 18:15                                       ` Harald Hanche-Olsen
2011-12-19 18:50                                         ` Carsten Mattner
2011-12-19 19:40                                           ` Harald Hanche-Olsen
2011-12-19 20:16                                             ` Jan Djärv
2011-12-19 20:46                                               ` Carsten Mattner
2011-12-20 17:34                                                 ` Adrian Robert
2011-12-17 18:26             ` Richard Stallman
2011-12-17 18:30               ` Carsten Mattner
     [not found]                 ` <CACY+HvrywuKjP8-TtONhaX-D6hK7WPKFhe2gqWA9BkjkpZ_uAg@mail.gmail.com>
2011-12-18 10:22                   ` Carsten Mattner
2011-12-18 13:52                     ` Jan Djärv
2011-12-18 14:35                       ` Carsten Mattner
2011-12-18 15:09                         ` Jan Djärv
2011-12-18 17:58                       ` Carsten Mattner
2011-12-19  6:32                         ` Jan Djärv
2011-12-19 11:04                           ` Carsten Mattner
2011-12-19 13:33                             ` Carsten Mattner
2011-12-19 15:55                             ` Jan D.
2011-12-19 16:53                               ` Carsten Mattner
2011-12-19 17:48                                 ` Jan Djärv
2011-12-19 18:51                                   ` Carsten Mattner
2011-12-19 20:16                                     ` Jan Djärv
2011-12-18 16:54                     ` Eli Zaretskii
2011-12-18 17:11                       ` Carsten Mattner
2011-12-19  2:51                 ` Richard Stallman
2011-12-19 11:10                   ` Carsten Mattner

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=61A2186E-2D7D-419B-8813-D8ACB733DE70@swipnet.se \
    --to=jan.h.d@swipnet.se \
    --cc=carstenmattner@googlemail.com \
    --cc=emacs-devel@gnu.org \
    --cc=mituharu@math.s.chiba-u.ac.jp \
    /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.