From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: interactive closure =?utf-8?Q?=E2=80=94?= variables not bound Date: Wed, 28 Sep 2016 20:07:03 -0400 Message-ID: References: <87y42ch7e1.fsf@elephly.net> <87eg43u3tj.fsf@elephly.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1475107670 12182 195.159.176.226 (29 Sep 2016 00:07:50 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 29 Sep 2016 00:07:50 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Ricardo Wurmus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 29 02:07:46 2016 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 1bpOsx-0001Sv-0H for ged-emacs-devel@m.gmane.org; Thu, 29 Sep 2016 02:07:35 +0200 Original-Received: from localhost ([::1]:33906 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpOsv-0005hG-Hi for ged-emacs-devel@m.gmane.org; Wed, 28 Sep 2016 20:07:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58080) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpOsO-0005hA-Th for emacs-devel@gnu.org; Wed, 28 Sep 2016 20:07:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bpOsJ-0000Cm-U4 for emacs-devel@gnu.org; Wed, 28 Sep 2016 20:06:59 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:53327) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpOsJ-0000Cg-Pu for emacs-devel@gnu.org; Wed, 28 Sep 2016 20:06:55 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0DeBQALW9BX/4Pjr2xdGwEBAQMBAQGDLQEBAQEBHoRNhVCvdoIDhhYEAgKBaTsSAQIBAQEBAQEBXieEYgEBAwEjMyMFCwsODAIYDgICFBgNJIhVCLA1jCABCyWBBYl4hECDAoJaAQSZWZEVFodiMYVajw2BPiUEK4RsIIYKAQEB X-IPAS-Result: A0DeBQALW9BX/4Pjr2xdGwEBAQMBAQGDLQEBAQEBHoRNhVCvdoIDhhYEAgKBaTsSAQIBAQEBAQEBXieEYgEBAwEjMyMFCwsODAIYDgICFBgNJIhVCLA1jCABCyWBBYl4hECDAoJaAQSZWZEVFodiMYVajw2BPiUEK4RsIIYKAQEB X-IronPort-AV: E=Sophos;i="5.30,296,1470715200"; d="scan'208";a="273935570" Original-Received: from 108-175-227-131.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([108.175.227.131]) by smtp.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 28 Sep 2016 20:06:55 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 43097AE8B2; Wed, 28 Sep 2016 20:07:03 -0400 (EDT) In-Reply-To: <87eg43u3tj.fsf@elephly.net> (Ricardo Wurmus's message of "Wed, 28 Sep 2016 23:12:08 +0200") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:207886 Archived-At: > I guessed that this odd behaviour must be a result of calling the > callback procedure from C with =E2=80=9Ccall1=E2=80=9D. I thought that m= aybe this is > expected behaviour when calling a procedure that interacts with the user > through the mini-buffer (as read-string does) when it is not using the > =E2=80=9Cinteractive=E2=80=9D form. read-string works just as well from outside an interactive spec. My crystal ball tells me that it suspects the culprit is that the code calls the Elisp callback asynchronously, i.e. from a different thread. IOW it thinks that the code doesn't bother to go through the Elisp event queue to synchronize with the Elisp engine. Stefan