From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.devel Subject: Re: UI input unresponsive on macOS Date: Fri, 17 Nov 2017 10:05:33 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <72DF4592-73FE-452D-9CF3-C892E73BD36E@play-bow.org> <20170103143621.GA41725@breton.holly.idiocy.org> <20170103174900.GA49916@breton.holly.idiocy.org> <83zij6esyt.fsf@gnu.org> <83d1g1ecvh.fsf@gnu.org> <20171116193343.GA18478@breton.holly.idiocy.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1510880753 31074 195.159.176.226 (17 Nov 2017 01:05:53 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 17 Nov 2017 01:05:53 +0000 (UTC) User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) Cc: Gong-Yi Liao =?ISO-2022-JP?B?GyRCVyE1XDUjGyhC?= , halley@play-bow.org, Eli Zaretskii , emacs-devel@gnu.org To: Alan Third Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 17 02:05:47 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eFV6H-0007W3-JN for ged-emacs-devel@m.gmane.org; Fri, 17 Nov 2017 02:05:45 +0100 Original-Received: from localhost ([::1]:43448 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eFV6N-0007UC-7p for ged-emacs-devel@m.gmane.org; Thu, 16 Nov 2017 20:05:51 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47133) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eFV6H-0007U6-8S for emacs-devel@gnu.org; Thu, 16 Nov 2017 20:05:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eFV6G-0005LS-4K for emacs-devel@gnu.org; Thu, 16 Nov 2017 20:05:45 -0500 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]:60359) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eFV6C-0005JI-5k; Thu, 16 Nov 2017 20:05:40 -0500 Original-Received: from fermat1.math.s.chiba-u.ac.jp (fermat [192.168.32.10]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 276C7F08C6; Fri, 17 Nov 2017 10:05:33 +0900 (JST) (envelope-from mituharu@math.s.chiba-u.ac.jp) In-Reply-To: <20171116193343.GA18478@breton.holly.idiocy.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 133.82.132.2 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:220237 Archived-At: >>>>> On Thu, 16 Nov 2017 19:33:43 +0000, Alan Third said: >> The following recipe seems to behave differently depending on the >> toolkit. >>=20 >> (make-thread >> (lambda () >> (let (last-nonmenu-event) >> (setq test (y-or-n-p-with-timeout "test" 2 'timeout))))) >>=20 >> Athena: Works. >> GTK+2: Timeout works, but buttons are not displayed. >> GTK+3: Hangs. >> NS: Crashes. > I=E2=80=99m not sure how we could handle that on NS. Perhaps just refuse = to > display the dialogue at all, and return nil? With Xcode 9, you can catch several problematic cases on NS such as (make-thread 'make-frame) using the Main Thread Checker mentioned in http://lists.gnu.org/archive/html/emacs-devel/2017-10/msg00418.html . YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp