GNU bug report logs - #32426
27.0.50; Losing key bindings in threads

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Michael Albinus <michael.albinus@HIDDEN>; merged with #25214; dated Mon, 13 Aug 2018 08:41:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 32426 <at> debbugs.gnu.org:


Received: (at 32426) by debbugs.gnu.org; 14 Aug 2018 15:49:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Aug 14 11:49:30 2018
Received: from localhost ([127.0.0.1]:50988 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fpbZL-0007YZ-DA
	for submit <at> debbugs.gnu.org; Tue, 14 Aug 2018 11:49:30 -0400
Received: from mout.gmx.net ([212.227.17.21]:56991)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.albinus@HIDDEN>) id 1fpbYu-0007X1-M2
 for 32426 <at> debbugs.gnu.org; Tue, 14 Aug 2018 11:49:03 -0400
Received: from detlef.gmx.de ([212.91.243.205]) by mail.gmx.com (mrgmx101
 [212.227.17.168]) with ESMTPSA (Nemesis) id 0M6O1v-1g4Usd0KEd-00yMJa; Tue, 14
 Aug 2018 17:48:24 +0200
From: Michael Albinus <michael.albinus@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#32426: 27.0.50; Loosing key bindings in threads
References: <87mutq1wyh.fsf@HIDDEN>
 <FE654AB0-A81C-4832-BCE5-14F4BDF693B5@HIDDEN> <87zhxqv4tz.fsf@HIDDEN>
 <83sh3ijpql.fsf@HIDDEN> <87pnyluuuf.fsf@HIDDEN>
 <837ektj7wv.fsf@HIDDEN>
Date: Tue, 14 Aug 2018 17:48:22 +0200
In-Reply-To: <837ektj7wv.fsf@HIDDEN> (Eli Zaretskii's message of "Tue, 14 Aug
 2018 18:16:00 +0300")
Message-ID: <87eff1ueyh.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:YBw8M4owWz1EdtnowdqQdRCdgXendOzPmQy4DtLRM0c1DjIBhNT
 mM6lO6BliOqzQ38Mt8//d7arOJKztGlsNlmV3sitLcwyn76vHuNRmbVzLUWXsYVNxi7rVjW
 p9WWrRSQoq2qy0g8NzK6dFf5qG8ILGzCwiSKxCPgn1Dt4BHa7Rcm7lNmGUMJg78Ee8wlkDl
 bc3sevBX+nYk0fhIXD3dA==
X-UI-Out-Filterresults: notjunk:1;V01:K0:pBZo1xeopK4=:sJPsUVZ45JifMsPRPjCX0C
 1ZJg4yKRorSm0Vz8sfyf76aBC3B5tqv1kZqI/DYkR7Ld0atUVsZOFFDFQCadjnXv8PH/9nzCe
 iHUPwnYi3X7yTI+icGXATn9W+qEYmODxSwJBOrbojNGteQ3ChfQbw63OvEwBBgBKUSbjzK9b0
 8lUloUleKyWNxtn/x65fiJ2tENmZ8Hv0ralXkm0O5nfMRFvK7ugFkECFvaONHunnn4SiEbDUv
 83ppVY9sSZxho76dTgPdSjj8HSE+1vVhT06dNW5jYyjSMWVKRZo/PHKq/axzk0JltfeIL13br
 pCE5ykPEF1DWTiPkk/Nz5kp/9i4w7yJuxKGoTy9tQOeblQ/kcfne/sPWIjTNemf5Dd5Tr5Hu4
 e5wz2YJl9vmtv+9SpG3paymAv8GMBp9dkVAnaCFQG8/mAHv8Gx48jINt/JF2Ywgf8bAMiXuND
 CF6NNYlhUoaf2pD6GmVHEmVl1G6E9y6l/3FKzda0IlC5KW/1ZYknSz9+sfpapIKurWHV/rBMH
 Z+Nwgtez+V0SdovFUJbZrCyPxhKb3v1JwXmU9yAaTrJQZuAW6gGnG5dsGLC2Rp7cb1kSDRpKd
 uS7+Hhwd5nhslMoan50iWVf4/+p2Vf94QBd9ZiQOH3xkEsoZ6+9llh3MRceUAubjyknjfEoPx
 lt+KfEXOriSiY+UFQTApRgTv+x4MGKS5Orx4Bn8A1rZBfwHE+LSgSwJiszVLAcWVZz2e8+vUI
 u9har16ciTJGV4SA8FsndGKvfwz7WJB5Hu9mfC2f6LkHmZlcrOCn2bpdRmARFLEU7/V8+appp
 4SsmjH+
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 32426
Cc: 32426 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

Hi Eli,

>> Perhaps we need this also for other events, D-Bus and file notifications
>> come to mind.
>
> Possibly, but those seem like an easier nut to crack: AFAIU, each time
> we need to watch for D-Bus events, we register a file descriptor for
> that, and deregister it when we no longer need it, is that right?  If
> so, we could easily make these descriptors watched only by the thread
> that registered the watch, the infrastructure for that already exists.

We need a file descriptor per D-Bus bus (system and session). But
applications register for (asynchronous) method calls and signals on the
buses. This could happen in several threads, so we need a mechanism how
to distribute incoming events to those threads.

But I would postpone this discussion until after we have resolved the
keyboard issue.

Best regards, Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#32426; Package emacs. Full text available.

Message received at 32426 <at> debbugs.gnu.org:


Received: (at 32426) by debbugs.gnu.org; 14 Aug 2018 15:16:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Aug 14 11:16:03 2018
Received: from localhost ([127.0.0.1]:50972 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fpb3D-0006L5-GW
	for submit <at> debbugs.gnu.org; Tue, 14 Aug 2018 11:16:03 -0400
Received: from eggs.gnu.org ([208.118.235.92]:56331)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1fpb3A-0006K8-1p
 for 32426 <at> debbugs.gnu.org; Tue, 14 Aug 2018 11:16:01 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1fpb30-0001lB-Rn
 for 32426 <at> debbugs.gnu.org; Tue, 14 Aug 2018 11:15:54 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled
 version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44124)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1fpb30-0001kx-Nm; Tue, 14 Aug 2018 11:15:50 -0400
Received: from [176.228.60.248] (port=4055 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1fpb30-0004O8-1Y; Tue, 14 Aug 2018 11:15:50 -0400
Date: Tue, 14 Aug 2018 18:16:00 +0300
Message-Id: <837ektj7wv.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Michael Albinus <michael.albinus@HIDDEN>
In-reply-to: <87pnyluuuf.fsf@HIDDEN> (message from Michael Albinus on Tue, 14
 Aug 2018 12:05:12 +0200)
Subject: Re: bug#32426: 27.0.50; Loosing key bindings in threads
References: <87mutq1wyh.fsf@HIDDEN>
 <FE654AB0-A81C-4832-BCE5-14F4BDF693B5@HIDDEN> <87zhxqv4tz.fsf@HIDDEN>
 <83sh3ijpql.fsf@HIDDEN> <87pnyluuuf.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 32426
Cc: 32426 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)

> From: Michael Albinus <michael.albinus@HIDDEN>
> Cc: 32426 <at> debbugs.gnu.org
> Date: Tue, 14 Aug 2018 12:05:12 +0200
> 
> > Maybe we need to start a new discussion on emacs-devel, once you read
> > that.
> 
> Yes, that's needed.

Started a discussion on emacs-devel.

> But I know that the proposal to disable keyboard reading for all
> threads but the main one is not working; see my example in
> bug#32426.

I'm not surprised.

> Perhaps we need this also for other events, D-Bus and file notifications
> come to mind.

Possibly, but those seem like an easier nut to crack: AFAIU, each time
we need to watch for D-Bus events, we register a file descriptor for
that, and deregister it when we no longer need it, is that right?  If
so, we could easily make these descriptors watched only by the thread
that registered the watch, the infrastructure for that already exists.

By contrast, there's only one keyboard descriptor.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#32426; Package emacs. Full text available.

Message received at 32426 <at> debbugs.gnu.org:


Received: (at 32426) by debbugs.gnu.org; 14 Aug 2018 10:05:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Aug 14 06:05:26 2018
Received: from localhost ([127.0.0.1]:50138 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fpWCc-00043i-1P
	for submit <at> debbugs.gnu.org; Tue, 14 Aug 2018 06:05:26 -0400
Received: from mout.gmx.net ([212.227.17.21]:58275)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.albinus@HIDDEN>) id 1fpWCY-000435-Iz
 for 32426 <at> debbugs.gnu.org; Tue, 14 Aug 2018 06:05:22 -0400
Received: from detlef.gmx.de ([212.91.243.205]) by mail.gmx.com (mrgmx102
 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MM0bQ-1foQnW0QJQ-007nvi; Tue, 14
 Aug 2018 12:05:14 +0200
From: Michael Albinus <michael.albinus@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#32426: 27.0.50; Loosing key bindings in threads
References: <87mutq1wyh.fsf@HIDDEN>
 <FE654AB0-A81C-4832-BCE5-14F4BDF693B5@HIDDEN> <87zhxqv4tz.fsf@HIDDEN>
 <83sh3ijpql.fsf@HIDDEN>
Date: Tue, 14 Aug 2018 12:05:12 +0200
In-Reply-To: <83sh3ijpql.fsf@HIDDEN> (Eli Zaretskii's message of "Mon, 13 Aug
 2018 17:38:42 +0300")
Message-ID: <87pnyluuuf.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:KqBTBOp4aQsWWZOLgLtcCq1ed1nc1O/++65hst1yFt+o84XRiM1
 fivtDJcu4M+mW5sKXODwQpXJPi98ygF/8qXjisC/8MkB8HD99vKjHNkrOh76/2a8HS+bQZk
 56AnA23UvjGInhmexXH3rtAqSFiyBj8cI0MUD/ppFpe2WhQrBqMVy6+V9zGTTZR1oJ6G5NB
 KcW8m2Eg+wOG15zVJW7DQ==
X-UI-Out-Filterresults: notjunk:1;V01:K0:/MiKWnW5qeo=:ztSu9Ghr81fWiOZei99OIY
 qyhWEAxH1f+PiRIHOAYRSTMPyqqgoVv5Udkn9Xt6S/giiFuxOwPRBQFeZiZfvlMrVerftxz54
 tUsb5/ylI0z6xi7qxXpei1aeMQklhYHWMUOtJWgFeDleftkvBLzJv1wC8zp3PrNX1Lxg6Ku9k
 3v54D09xGFlfveca95he05c61DcqLmCcykSMaxC2kzUtpzhQlPnePNTXBmVQWqtw5B9mDzXHk
 p0f8DByA06RRD0uAnu+IBHUDBSi4kM707IYOZHgyVQoZRfbsWUvrGwap5bani/S5DCG1K92bv
 PXNDy1CW+WPY5PRsqFS6xcgLqHVMYUzQKv9RUNdN+3CmXRRdW3AI4RU5Bf/4NHNObBoIqXrbS
 LoLc765YF+kFpm0JF1EvJ39fiHcnKYX1Z952oqNpGomRfBz3WSeP93UuVrW/5mdtyP1EJgoaG
 vsp9FqswWWD6VwlWMO7BaWbm3A9v+ki1ftjETX6TXySk3Fxt5AMANQqkV3HC2sEfm5wHjM1iz
 cwimNZAh3HqcqZtHdjdGUlhjAD9UkgtIG/Y7Aa7b0jtoUpWq452cF76SeARsH78CvnAry0V8d
 ohSKIPn4ifAPZzU1x9cf1p9rMQ/RqFA+bcHeyY9hdHjVjRdNTucTAEbHTq2Qtuhhpaet29n5D
 6MlPpcpZYvq+9StxY5fuKBwX3KDQVAgRNXIGxWV/qBzyuq7bLVmsbhgYeNcXvpg8abDxveNg6
 q+6U5Wxkt3uj4JwDcNmrlCSv8dhuiRf5044sloHIT3BxBknYkSMLCdzsD973VhRU0Pr0B8VQd
 bWGQi/G
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 32426
Cc: 32426 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

Hi Eli,

> I don't know, the discussion never reached any concrete conclusions.
> (And the more I think about that, the less I understand how a message
> pump could help: after all, keyboard input is already a kind of
> "message pump", on the OS level.  It seems we'd eventually have the
> same problem: how to allow multiple threads to read from the message
> pump.)
>
> Some additional discussion was in this thread:
>
>   http://lists.gnu.org/archive/html/emacs-devel/2016-12/msg00607.html
>
> Maybe we need to start a new discussion on emacs-devel, once you read
> that.

Yes, that's needed. I have also no idea how to fix. But I know that the
proposal to disable keyboard reading for all threads but the main one is
not working; see my example in bug#32426.

Perhaps we need this also for other events, D-Bus and file notifications
come to mind.

I fear I'm not the best one to reanimate this discussion. Keyboard
handling in Emacs is terra incognita for me.

Best regards, Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#32426; Package emacs. Full text available.

Message received at 32426 <at> debbugs.gnu.org:


Received: (at 32426) by debbugs.gnu.org; 13 Aug 2018 14:38:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 13 10:38:46 2018
Received: from localhost ([127.0.0.1]:49812 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fpDza-0005Oe-DP
	for submit <at> debbugs.gnu.org; Mon, 13 Aug 2018 10:38:46 -0400
Received: from eggs.gnu.org ([208.118.235.92]:41153)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1fpDzY-0005OQ-AS
 for 32426 <at> debbugs.gnu.org; Mon, 13 Aug 2018 10:38:44 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1fpDzQ-00068k-0L
 for 32426 <at> debbugs.gnu.org; Mon, 13 Aug 2018 10:38:39 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled
 version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52701)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1fpDzP-00068e-T0; Mon, 13 Aug 2018 10:38:35 -0400
Received: from [176.228.60.248] (port=1613 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1fpDzP-00056J-Cg; Mon, 13 Aug 2018 10:38:35 -0400
Date: Mon, 13 Aug 2018 17:38:42 +0300
Message-Id: <83sh3ijpql.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Michael Albinus <michael.albinus@HIDDEN>
In-reply-to: <87zhxqv4tz.fsf@HIDDEN> (message from Michael Albinus on Mon, 13
 Aug 2018 14:17:12 +0200)
Subject: Re: bug#32426: 27.0.50; Loosing key bindings in threads
References: <87mutq1wyh.fsf@HIDDEN>
 <FE654AB0-A81C-4832-BCE5-14F4BDF693B5@HIDDEN> <87zhxqv4tz.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 32426
Cc: 32426 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)

> From: Michael Albinus <michael.albinus@HIDDEN>
> Cc: bug-gnu-emacs@HIDDEN, 32426 <at> debbugs.gnu.org
> Date: Mon, 13 Aug 2018 14:17:12 +0200
> 
> > See bug#25214.
> 
> Thanks, I've merged both bugs. Bug#25214 has the analysis, but I don't
> know which direction we want to continue. Using a message pump, as
> proposed by Clément?

I don't know, the discussion never reached any concrete conclusions.
(And the more I think about that, the less I understand how a message
pump could help: after all, keyboard input is already a kind of
"message pump", on the OS level.  It seems we'd eventually have the
same problem: how to allow multiple threads to read from the message
pump.)

Some additional discussion was in this thread:

  http://lists.gnu.org/archive/html/emacs-devel/2016-12/msg00607.html

Maybe we need to start a new discussion on emacs-devel, once you read
that.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#32426; Package emacs. Full text available.

Message received at 32426 <at> debbugs.gnu.org:


Received: (at 32426) by debbugs.gnu.org; 13 Aug 2018 12:17:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 13 08:17:25 2018
Received: from localhost ([127.0.0.1]:49331 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fpBmn-0001KD-2h
	for submit <at> debbugs.gnu.org; Mon, 13 Aug 2018 08:17:25 -0400
Received: from mout.gmx.net ([212.227.17.21]:37121)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.albinus@HIDDEN>) id 1fpBmk-0001F7-Hx
 for 32426 <at> debbugs.gnu.org; Mon, 13 Aug 2018 08:17:23 -0400
Received: from detlef.gmx.de ([178.20.90.0]) by mail.gmx.com (mrgmx102
 [212.227.17.168]) with ESMTPSA (Nemesis) id 0M3MAG-1g6r7s0YkK-00qzyC; Mon, 13
 Aug 2018 14:17:16 +0200
From: Michael Albinus <michael.albinus@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#32426: 27.0.50; Loosing key bindings in threads
References: <87mutq1wyh.fsf@HIDDEN>
 <FE654AB0-A81C-4832-BCE5-14F4BDF693B5@HIDDEN>
Date: Mon, 13 Aug 2018 14:17:12 +0200
In-Reply-To: <FE654AB0-A81C-4832-BCE5-14F4BDF693B5@HIDDEN> (Eli Zaretskii's
 message of "Mon, 13 Aug 2018 12:39:30 +0300")
Message-ID: <87zhxqv4tz.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:RJHXVCYd3mkqJIb8etNVXnxFjhcB3K/miDPA1Q97EwqLPiM0eNC
 Y8IRz4rq0zhace+AcYx6fBSKV4KQRv2+bKFXDZakRFkIyYTxprkfnDGb3yyROJEurDQoG8C
 nIQMMrp+VJdyIQeZoc3amdEZb3T8G9JgaVD116LMH+PZyI17notL4aQ1KreNg5D059VGs08
 3pY0kh65ewxkCkK4YBG/A==
X-UI-Out-Filterresults: notjunk:1;V01:K0:pSJgCJZkm5g=:V+y8UlUpR6Ta6w4MzhPjzs
 Z/ZW4g4SrpnH8dTRrO70fT+agXTAPntE8t32BH7spvMGpYpT857InnRIAhuwa36B9tpm9sSL4
 sKs/4WUIoEVadzgDSYKvG6tNBrDOm5Vcb6sb24VOGQW8AUtyOogORZIDC8MG1R3eZQA7MY+FB
 1+ey7bRIBYfvu8miM9jxKdunBmuYGCkztWP2MYhqk9iaZHg14y22gRmEWjBcM1qXj9TwHmzKH
 U14uqiKZYNiertRLras+9ymfDdEyT8hGQvyg5iTlkPTNmDFlS11Tov7ntPNNbE/Ch6t19t8Mq
 Wbwd1seIL7paUSgZo50ylUg7NJ6QxtnfFwlCoVOQBOPsG0ewfPFEc6XGB7cEYwIjKq0y2mWTu
 V2nCDkgikYd37yutTnByP9JjDBbjNT57qMWE/fdhD13MHn2QHwwCQpnUSGTNuYqe5ri/l0nXv
 kZk2zsxmULyWxmWfda/g3gvM0F6tZHyLpbbCqs2rEMPgy8A7Y6mXufwR7LtEUC2WfWHKzqhLM
 oQ/neO2VuXw6vR4689Mufba2OewHtzw+mkrnMUZwDOjXH/Q69OdZY4bEINz//gUNBAcN26wsi
 NinaBTdjvTvYKHGvO+a6dwJsAbcplkmvGDjTtAkUTKIo2EF5uvMgnkPd3+uCSDPShipBL8RRZ
 jhH0uZz3vfbO27kPC9Sq9RhckdXUlsrVmgNAwjJ+yzPCMN3ukrtgnW6WXo5gp8soooJ2mSo1F
 8c1GDxKgIplKdTXJghz+Eu1cLnoXvfUVfexe1xWEZgPDhGEUH/dDuCXDaSW+i4AAUx8JRXFwD
 AExpslb
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 32426
Cc: bug-gnu-emacs@HIDDEN, 32426 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

Hi Eli,

> See bug#25214.

Thanks, I've merged both bugs. Bug#25214 has the analysis, but I don't
know which direction we want to continue. Using a message pump, as
proposed by Cl=C3=A9ment?

Best regards, Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#32426; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 13 Aug 2018 12:17:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 13 08:17:41 2018
Received: from localhost ([127.0.0.1]:49334 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fpBn3-0001Vj-9Y
	for submit <at> debbugs.gnu.org; Mon, 13 Aug 2018 08:17:41 -0400
Received: from eggs.gnu.org ([208.118.235.92]:42177)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.albinus@HIDDEN>) id 1fpBn1-0001Ql-Mj
 for submit <at> debbugs.gnu.org; Mon, 13 Aug 2018 08:17:39 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <michael.albinus@HIDDEN>) id 1fpBmv-0008CS-Mn
 for submit <at> debbugs.gnu.org; Mon, 13 Aug 2018 08:17:34 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:60401)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <michael.albinus@HIDDEN>)
 id 1fpBmv-0008C7-Is
 for submit <at> debbugs.gnu.org; Mon, 13 Aug 2018 08:17:33 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:43315)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <michael.albinus@HIDDEN>) id 1fpBmt-0006yW-Kv
 for bug-gnu-emacs@HIDDEN; Mon, 13 Aug 2018 08:17:33 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <michael.albinus@HIDDEN>) id 1fpBmt-00088A-0M
 for bug-gnu-emacs@HIDDEN; Mon, 13 Aug 2018 08:17:31 -0400
Received: from mout.gmx.net ([212.227.17.21]:59863)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <michael.albinus@HIDDEN>)
 id 1fpBmm-00083B-DV; Mon, 13 Aug 2018 08:17:24 -0400
Received: from detlef.gmx.de ([178.20.90.0]) by mail.gmx.com (mrgmx102
 [212.227.17.168]) with ESMTPSA (Nemesis) id 0M3MAG-1g6r7s0YkK-00qzyC; Mon, 13
 Aug 2018 14:17:16 +0200
From: Michael Albinus <michael.albinus@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#32426: 27.0.50; Loosing key bindings in threads
References: <87mutq1wyh.fsf@HIDDEN>
 <FE654AB0-A81C-4832-BCE5-14F4BDF693B5@HIDDEN>
Date: Mon, 13 Aug 2018 14:17:12 +0200
In-Reply-To: <FE654AB0-A81C-4832-BCE5-14F4BDF693B5@HIDDEN> (Eli Zaretskii's
 message of "Mon, 13 Aug 2018 12:39:30 +0300")
Message-ID: <87zhxqv4tz.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:RJHXVCYd3mkqJIb8etNVXnxFjhcB3K/miDPA1Q97EwqLPiM0eNC
 Y8IRz4rq0zhace+AcYx6fBSKV4KQRv2+bKFXDZakRFkIyYTxprkfnDGb3yyROJEurDQoG8C
 nIQMMrp+VJdyIQeZoc3amdEZb3T8G9JgaVD116LMH+PZyI17notL4aQ1KreNg5D059VGs08
 3pY0kh65ewxkCkK4YBG/A==
X-UI-Out-Filterresults: notjunk:1;V01:K0:pSJgCJZkm5g=:V+y8UlUpR6Ta6w4MzhPjzs
 Z/ZW4g4SrpnH8dTRrO70fT+agXTAPntE8t32BH7spvMGpYpT857InnRIAhuwa36B9tpm9sSL4
 sKs/4WUIoEVadzgDSYKvG6tNBrDOm5Vcb6sb24VOGQW8AUtyOogORZIDC8MG1R3eZQA7MY+FB
 1+ey7bRIBYfvu8miM9jxKdunBmuYGCkztWP2MYhqk9iaZHg14y22gRmEWjBcM1qXj9TwHmzKH
 U14uqiKZYNiertRLras+9ymfDdEyT8hGQvyg5iTlkPTNmDFlS11Tov7ntPNNbE/Ch6t19t8Mq
 Wbwd1seIL7paUSgZo50ylUg7NJ6QxtnfFwlCoVOQBOPsG0ewfPFEc6XGB7cEYwIjKq0y2mWTu
 V2nCDkgikYd37yutTnByP9JjDBbjNT57qMWE/fdhD13MHn2QHwwCQpnUSGTNuYqe5ri/l0nXv
 kZk2zsxmULyWxmWfda/g3gvM0F6tZHyLpbbCqs2rEMPgy8A7Y6mXufwR7LtEUC2WfWHKzqhLM
 oQ/neO2VuXw6vR4689Mufba2OewHtzw+mkrnMUZwDOjXH/Q69OdZY4bEINz//gUNBAcN26wsi
 NinaBTdjvTvYKHGvO+a6dwJsAbcplkmvGDjTtAkUTKIo2EF5uvMgnkPd3+uCSDPShipBL8RRZ
 jhH0uZz3vfbO27kPC9Sq9RhckdXUlsrVmgNAwjJ+yzPCMN3ukrtgnW6WXo5gp8soooJ2mSo1F
 8c1GDxKgIplKdTXJghz+Eu1cLnoXvfUVfexe1xWEZgPDhGEUH/dDuCXDaSW+i4AAUx8JRXFwD
 AExpslb
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.1 (----)
X-Debbugs-Envelope-To: submit
Cc: bug-gnu-emacs@HIDDEN, 32426 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.1 (-----)

Eli Zaretskii <eliz@HIDDEN> writes:

Hi Eli,

> See bug#25214.

Thanks, I've merged both bugs. Bug#25214 has the analysis, but I don't
know which direction we want to continue. Using a message pump, as
proposed by Cl=C3=A9ment?

Best regards, Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#32426; Package emacs. Full text available.
Merged 25214 32426. Request was from Michael Albinus <michael.albinus@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 32426 <at> debbugs.gnu.org:


Received: (at 32426) by debbugs.gnu.org; 13 Aug 2018 09:39:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 13 05:39:51 2018
Received: from localhost ([127.0.0.1]:49258 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fp9KJ-0008Oi-FZ
	for submit <at> debbugs.gnu.org; Mon, 13 Aug 2018 05:39:51 -0400
Received: from eggs.gnu.org ([208.118.235.92]:34449)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1fp9KH-0008OD-BP
 for 32426 <at> debbugs.gnu.org; Mon, 13 Aug 2018 05:39:49 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1fp9KB-0003ZB-J6
 for 32426 <at> debbugs.gnu.org; Mon, 13 Aug 2018 05:39:44 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40 autolearn=disabled
 version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48487)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1fp9K3-0003Sr-OX; Mon, 13 Aug 2018 05:39:35 -0400
Received: from [176.13.8.54] (port=23641 helo=[10.130.45.248])
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1fp9K2-0005RH-TS; Mon, 13 Aug 2018 05:39:35 -0400
Date: Mon, 13 Aug 2018 12:39:30 +0300
User-Agent: K-9 Mail for Android
In-Reply-To: <87mutq1wyh.fsf@HIDDEN>
References: <87mutq1wyh.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain;
 charset=utf-8
Content-Transfer-Encoding: quoted-printable
Subject: Re: bug#32426: 27.0.50; Loosing key bindings in threads
To: bug-gnu-emacs@HIDDEN, Michael Albinus <michael.albinus@HIDDEN>,
 32426 <at> debbugs.gnu.org
From: Eli Zaretskii <eliz@HIDDEN>
Message-ID: <FE654AB0-A81C-4832-BCE5-14F4BDF693B5@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 32426
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)

On August 13, 2018 11:40:06 AM GMT+03:00, Michael Albinus <michael=2Ealbinu=
s@gmx=2Ede> wrote:
>=20
> This is about the feature/tramp-thread-safe branch=2E The bug seems to
> be
> related to the threads implementation in general; that branch is used
> only because it is simpler to demonstrate=2E
>=20
> I have two files, a=2Etest and b=2Etest=2E Both files have the same cont=
ents
>=20
> --8<---------------cut here---------------start------------->8---
> Local Variables:
> risky-variable: nil
> End:
> --8<---------------cut here---------------end--------------->8---
>=20
> I open both files asynchronously via "C-x & C-x C-f *=2Etest"=2E The
> buffer
> *Local Variables* is displayed, and in the minibuffer I'm asked
> "Please
> type y, n, or !, or C-v to scroll:"=2E Whatever key I type, I get "y is
> undefined"=2E
>=20
> I have no idea how to debug this=2E


See bug#25214=2E




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#32426; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 13 Aug 2018 09:39:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 13 05:39:48 2018
Received: from localhost ([127.0.0.1]:49255 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fp9KG-0008OP-6U
	for submit <at> debbugs.gnu.org; Mon, 13 Aug 2018 05:39:48 -0400
Received: from eggs.gnu.org ([208.118.235.92]:34419)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1fp9KE-0008OA-ND
 for submit <at> debbugs.gnu.org; Mon, 13 Aug 2018 05:39:46 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1fp9K8-0003We-Ud
 for submit <at> debbugs.gnu.org; Mon, 13 Aug 2018 05:39:41 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:44975)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <eliz@HIDDEN>) id 1fp9K8-0003WV-Qr
 for submit <at> debbugs.gnu.org; Mon, 13 Aug 2018 05:39:40 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:35552)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1fp9K7-0000GS-T6
 for bug-gnu-emacs@HIDDEN; Mon, 13 Aug 2018 05:39:40 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1fp9K3-0003Sz-TS
 for bug-gnu-emacs@HIDDEN; Mon, 13 Aug 2018 05:39:39 -0400
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48487)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1fp9K3-0003Sr-OX; Mon, 13 Aug 2018 05:39:35 -0400
Received: from [176.13.8.54] (port=23641 helo=[10.130.45.248])
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1fp9K2-0005RH-TS; Mon, 13 Aug 2018 05:39:35 -0400
Date: Mon, 13 Aug 2018 12:39:30 +0300
User-Agent: K-9 Mail for Android
In-Reply-To: <87mutq1wyh.fsf@HIDDEN>
References: <87mutq1wyh.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain;
 charset=utf-8
Content-Transfer-Encoding: quoted-printable
Subject: Re: bug#32426: 27.0.50; Loosing key bindings in threads
To: bug-gnu-emacs@HIDDEN, Michael Albinus <michael.albinus@HIDDEN>,
 32426 <at> debbugs.gnu.org
From: Eli Zaretskii <eliz@HIDDEN>
Message-ID: <FE654AB0-A81C-4832-BCE5-14F4BDF693B5@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)

On August 13, 2018 11:40:06 AM GMT+03:00, Michael Albinus <michael=2Ealbinu=
s@gmx=2Ede> wrote:
>=20
> This is about the feature/tramp-thread-safe branch=2E The bug seems to
> be
> related to the threads implementation in general; that branch is used
> only because it is simpler to demonstrate=2E
>=20
> I have two files, a=2Etest and b=2Etest=2E Both files have the same cont=
ents
>=20
> --8<---------------cut here---------------start------------->8---
> Local Variables:
> risky-variable: nil
> End:
> --8<---------------cut here---------------end--------------->8---
>=20
> I open both files asynchronously via "C-x & C-x C-f *=2Etest"=2E The
> buffer
> *Local Variables* is displayed, and in the minibuffer I'm asked
> "Please
> type y, n, or !, or C-v to scroll:"=2E Whatever key I type, I get "y is
> undefined"=2E
>=20
> I have no idea how to debug this=2E


See bug#25214=2E




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#32426; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 13 Aug 2018 08:40:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 13 04:40:26 2018
Received: from localhost ([127.0.0.1]:49231 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fp8Oo-0006uN-6R
	for submit <at> debbugs.gnu.org; Mon, 13 Aug 2018 04:40:26 -0400
Received: from eggs.gnu.org ([208.118.235.92]:50729)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.albinus@HIDDEN>) id 1fp8Om-0006u9-7f
 for submit <at> debbugs.gnu.org; Mon, 13 Aug 2018 04:40:24 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <michael.albinus@HIDDEN>) id 1fp8Of-0006Ou-At
 for submit <at> debbugs.gnu.org; Mon, 13 Aug 2018 04:40:19 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:59495)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <michael.albinus@HIDDEN>)
 id 1fp8Of-0006Oo-6o
 for submit <at> debbugs.gnu.org; Mon, 13 Aug 2018 04:40:17 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:51862)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <michael.albinus@HIDDEN>) id 1fp8Od-0008EO-8u
 for bug-gnu-emacs@HIDDEN; Mon, 13 Aug 2018 04:40:16 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <michael.albinus@HIDDEN>) id 1fp8OY-0006HP-AH
 for bug-gnu-emacs@HIDDEN; Mon, 13 Aug 2018 04:40:15 -0400
Received: from mout.gmx.net ([212.227.17.22]:43643)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <michael.albinus@HIDDEN>)
 id 1fp8OX-0006FC-SU
 for bug-gnu-emacs@HIDDEN; Mon, 13 Aug 2018 04:40:10 -0400
Received: from detlef.gmx.de ([178.20.90.0]) by mail.gmx.com (mrgmx101
 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MbKXI-1fYZRj3Gjs-00IjK4 for
 <bug-gnu-emacs@HIDDEN>; Mon, 13 Aug 2018 10:40:07 +0200
From: Michael Albinus <michael.albinus@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 27.0.50; Loosing key bindings in threads
Date: Mon, 13 Aug 2018 10:40:06 +0200
Message-ID: <87mutq1wyh.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:wXLDzILPnnCkCI//N7LoZuOQ/9TmifzukXvKaknpeerbr58Zde/
 RyqI0IRsbuNCSxKFbrOgMPlNaFMrYori1RDczLjWy5C4EdtYV0abpaERifjxGzUm7XYIHpk
 cuZDZje4sA4SsyypDNk49w3SaDmi3S+9lqMxQ+WC4Y1wSuabkGeLhpHl4R8R95NjuBve5J6
 KOuf+NSpYGV7RueucJ5Pg==
X-UI-Out-Filterresults: notjunk:1;V01:K0:n4OrLpJM1D4=:x7Ol8lE5cu+74owk5MjxVw
 OOSZwE8w8jGtPvdB2ms1cYg+Ag5ATC1djhLVAlIHdqEGcUUEUY+SnaeEdoO0KYQkyhfFlRiEn
 iYf2x/S6yj2BKpw+Qo8Xrge5l11qT72OfRNEngp6tZaH6q9NUHckhexI/YfMZspugHgrF8JRM
 T2+CdKcxHPj0hMjYX7y0jUjJNkk0163UDX5xLtWFgchrB/TNVsqUsWOkliLF2UtJXMKEwS7BS
 u60bFYRu247G7oxHthDcTMcKxvAdEWurOrog3/0xx/+S2kDjtZjKg2KuwSJMS50X+gc/+caGx
 szTDOqJs3ScCX/WaRdSfYCVlKhccqbH9loKdT8N6/9d5blqNBVqXHcLvwr+WPRzMQCVQou44r
 UM097JFbkQENQx189DBwVjlgNnAI8+7WUbBrvtNUpSiBRUEPR58ZXygjPVBFDGIxu2PZCoq/D
 aqbNueWG76xcdgw2JDyMn6tGNNBvAFZ9oeJgJ/W+HQaUeAxxlsWSQyaJFQRKhlxK7qPcg5LJ4
 rw9ZQwBYX085jFlmmOyNFBHkgm7T1+ZF8msp0IMcjJONvPfhI0FSo0GYCGYMOCSh9XXJ15MXW
 1YfNPCKIr6GDeLHa4ScdkWt0SzDZN3c8FkcIpoPhHKf1xuUpRfN2nda8gNjFtVwCH6hReE5lD
 3pL76Y4TYwbRujEWagtNbwXgJ+3q8A55khaqL6h/W3DJl+joQimpCe3Fx+DiNzAz17bAj/3lT
 19MVAXPiHUZC5goPQWKDRoE3lCUChMCurpGa2Qhhj9RH+JyY9qW0xJFnsCjKz8QDwHcpyMObf
 nYlv/za
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.1 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.1 (-----)


This is about the feature/tramp-thread-safe branch. The bug seems to be
related to the threads implementation in general; that branch is used
only because it is simpler to demonstrate.

I have two files, a.test and b.test. Both files have the same contents

--8<---------------cut here---------------start------------->8---
Local Variables:
risky-variable: nil
End:
--8<---------------cut here---------------end--------------->8---

I open both files asynchronously via "C-x & C-x C-f *.test". The buffer
*Local Variables* is displayed, and in the minibuffer I'm asked "Please
type y, n, or !, or C-v to scroll:". Whatever key I type, I get "y is
undefined".

I have no idea how to debug this.


In GNU Emacs 27.0.50 (build 18, x86_64-pc-linux-gnu, GTK+ Version 3.22.30)
 of 2018-07-18 built on detlef
Repository revision: ba6cc1d04cef8e25534a72e90a8f0f8db0026c9f
Windowing system distributor 'The X.Org Foundation', version 11.0.11906000
System Description: Ubuntu 18.04.1 LTS

Recent messages:
Mark set
No more unseen articles
Mark set
No more unseen articles
No more unread articles
Returning to the group buffer
Saving /home/albinus/.newsrc.eld...
Saving file /home/albinus/.newsrc.eld...
Wrote /home/albinus/.newsrc.eld
Saving /home/albinus/.newsrc.eld...done

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY
ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 THREADS LCMS2

Important settings:
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=none
  locale-coding-system: utf-8

Major mode: VC dir

Minor modes in effect:
  diff-auto-refine-mode: t
  erc-notify-mode: t
  erc-notifications-mode: t
  display-time-mode: t
  shell-dirtrack-mode: t
  icomplete-mode: t
  show-paren-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
/home/albinus/src/elpa/packages/debbugs/debbugs-org hides /home/albinus/.emacs.d/elpa/debbugs-0.15/debbugs-org
/home/albinus/src/elpa/packages/debbugs/debbugs-gnu hides /home/albinus/.emacs.d/elpa/debbugs-0.15/debbugs-gnu
/home/albinus/src/elpa/packages/debbugs/debbugs hides /home/albinus/.emacs.d/elpa/debbugs-0.15/debbugs
/home/albinus/src/elpa/packages/debbugs/debbugs-autoloads hides /home/albinus/.emacs.d/elpa/debbugs-0.15/debbugs-autoloads
/home/albinus/src/elpa/packages/debbugs/debbugs-pkg hides /home/albinus/.emacs.d/elpa/debbugs-0.15/debbugs-pkg
/home/albinus/src/elpa/packages/debbugs/debbugs-browse hides /home/albinus/.emacs.d/elpa/debbugs-0.15/debbugs-browse
~/lisp/telepathy hides /home/albinus/.emacs.d/elpa/telepathy-20131209.458/telepathy
/home/albinus/src/elpa/packages/tramp-theme/tramp-theme hides /home/albinus/.emacs.d/elpa/tramp-theme-0.2/tramp-theme
/home/albinus/src/elpa/packages/tramp-theme/tramp-theme-autoloads hides /home/albinus/.emacs.d/elpa/tramp-theme-0.2/tramp-theme-autoloads
/home/albinus/src/elpa/packages/tramp-theme/tramp-theme-pkg hides /home/albinus/.emacs.d/elpa/tramp-theme-0.2/tramp-theme-pkg
~/src/tramp/lisp/tramp-smb hides /usr/local/share/emacs/27.0.50/lisp/net/tramp-smb
~/src/tramp/lisp/tramp-uu hides /usr/local/share/emacs/27.0.50/lisp/net/tramp-uu
~/src/tramp/lisp/tramp-adb hides /usr/local/share/emacs/27.0.50/lisp/net/tramp-adb
~/src/tramp/lisp/tramp-compat hides /usr/local/share/emacs/27.0.50/lisp/net/tramp-compat
~/src/tramp/lisp/tramp-archive hides /usr/local/share/emacs/27.0.50/lisp/net/tramp-archive
~/src/tramp/lisp/tramp hides /usr/local/share/emacs/27.0.50/lisp/net/tramp
~/src/tramp/lisp/trampver hides /usr/local/share/emacs/27.0.50/lisp/net/trampver
~/src/tramp/lisp/tramp-ftp hides /usr/local/share/emacs/27.0.50/lisp/net/tramp-ftp
~/src/tramp/lisp/tramp-cmds hides /usr/local/share/emacs/27.0.50/lisp/net/tramp-cmds
~/src/tramp/lisp/tramp-gvfs hides /usr/local/share/emacs/27.0.50/lisp/net/tramp-gvfs
~/src/tramp/lisp/tramp-loaddefs hides /usr/local/share/emacs/27.0.50/lisp/net/tramp-loaddefs
~/lisp/dbus hides /usr/local/share/emacs/27.0.50/lisp/net/dbus
~/src/tramp/lisp/tramp-sh hides /usr/local/share/emacs/27.0.50/lisp/net/tramp-sh
~/src/tramp/lisp/tramp-cache hides /usr/local/share/emacs/27.0.50/lisp/net/tramp-cache

Features:
(shadow warnings emacsbug misearch multi-isearch org-rmail org-mhe
org-irc org-info org-gnus org-docview doc-view image-mode org-bibtex
bibtex org-bbdb org-w3m org-element avl-tree generator org org-macro
org-footnote org-pcomplete org-list org-faces org-entities noutline
outline org-version ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob
ob-table ob-keys ob-exp ob-comint ob-core ob-eval org-compat org-macs
org-loaddefs find-func cal-menu calendar cal-loaddefs shr-color color
url-http url-gw url-cache url-auth eww mm-url url-queue url url-proxy
url-privacy url-expand url-methods url-history url-cookie url-domsuf
flow-fill url-util shr text-property-search svg dom browse-url gnus-dup
mm-archive vc-hg ediff-vers ediff-merg ediff-wind ediff-diff ediff-mult
ediff-help ediff-init ediff-util ediff vc-git diff-mode easy-mmode
vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs vc-dir ewoc time-stamp
mailalias sort smiley gnus-cite mail-extr gnus-async gnus-bcklg nnir qp
gnus-ml pop3 utf-7 nndraft nnmh nnml gnutls network-stream nsm
gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art
mm-uu mml2015 mm-view mml-smime smime dig mailcap gnus-cache gnus-sum
nnnil smtpmail sendmail gnus-demon nntp gnus-group gnus-undo gnus-start
gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo gnus-spec gnus-int
gnus-range message rmc puny rfc822 mml mml-sec epa mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader gnus-win
gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums
mail-utils mm-util mail-prsvr wid-edit elec-pair erc-notify erc-networks
erc-desktop-notifications erc-match notifications dbus xml erc-goodies
erc erc-backend erc-compat thingatpt pp erc-loaddefs cperl-mode time
tramp-sh kubernetes-tramp lxc-tramp docker-tramp tramp-cache
vagrant-tramp dash term disp-table ehelp tramp trampver tramp-compat
tramp-loaddefs ucs-normalize shell pcomplete comint ansi-color ring
parse-time format-spec advice ido jka-compr icomplete paren vc
vc-dispatcher dired dired-loaddefs time-date mule-util rx edmacro kmacro
slime-autoloads info finder-inf package let-alist derived pcase cl-extra
help-mode easymenu url-handlers url-parse auth-source cl-seq eieio
eieio-core cl-macs eieio-loaddefs password-cache json map url-vars seq
byte-opt gv bytecomp byte-compile cconv epg epg-config subr-x
cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar
dnd fontset image regexp-opt fringe tabulated-list replace newcomment
text-mode elisp-mode lisp-mode prog-mode register page menu-bar
rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core term/tty-colors frame cl-generic cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese composite charscript charprop
case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer
cl-preloaded nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote threads dbusbind
inotify lcms2 dynamic-setting system-font-setting font-render-setting
move-toolbar gtk x-toolkit x multi-tty make-network-process emacs)

Memory information:
((conses 16 557532 85432)
 (symbols 48 45940 7)
 (miscs 40 141 443)
 (strings 32 127647 10086)
 (string-bytes 1 4323265)
 (vectors 16 72752)
 (vector-slots 8 1839145 209770)
 (floats 8 482 480)
 (intervals 56 5422 919)
 (buffers 992 46))




Acknowledgement sent to Michael Albinus <michael.albinus@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#32426; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.