From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.bugs Subject: bug#57261: 29.0.50; X protocol error: XI_BadDevice (invalid Device parameter) on protocol request 131 Date: Wed, 17 Aug 2022 18:26:21 +0300 Message-ID: References: <87wnb76icx.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39314"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/+ () (2022-06-11) Cc: luangruo@yahoo.com, 57261@debbugs.gnu.org To: Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 17 17:54:55 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oOLNf-000A2f-8J for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 17 Aug 2022 17:54:55 +0200 Original-Received: from localhost ([::1]:54538 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oOLNe-0007Af-8Q for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 17 Aug 2022 11:54:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44808) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oOKza-0007xf-Ue for bug-gnu-emacs@gnu.org; Wed, 17 Aug 2022 11:30:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34883) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oOKza-0004UK-Jv for bug-gnu-emacs@gnu.org; Wed, 17 Aug 2022 11:30:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oOKza-0005hp-Bb for bug-gnu-emacs@gnu.org; Wed, 17 Aug 2022 11:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jean Louis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Aug 2022 15:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57261 X-GNU-PR-Package: emacs Original-Received: via spool by 57261-submit@debbugs.gnu.org id=B57261.166075014821843 (code B ref 57261); Wed, 17 Aug 2022 15:30:02 +0000 Original-Received: (at 57261) by debbugs.gnu.org; 17 Aug 2022 15:29:08 +0000 Original-Received: from localhost ([127.0.0.1]:52863 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oOKyh-0005gA-P7 for submit@debbugs.gnu.org; Wed, 17 Aug 2022 11:29:08 -0400 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:45887) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oOKye-0005g0-Eo for 57261@debbugs.gnu.org; Wed, 17 Aug 2022 11:29:06 -0400 Original-Received: from localhost ([::ffff:197.239.4.166]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 00000000000B5B0F.0000000062FD093D.00002ACD; Wed, 17 Aug 2022 08:29:01 -0700 Content-Disposition: inline In-Reply-To: <87wnb76icx.fsf@gmail.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:240092 Archived-At: * Robert Pluim [2022-08-17 17:43]: > >>>>> On Wed, 17 Aug 2022 17:31:47 +0300, Jean Louis said: > > Jean> I could not start X version of Emacs at all. > Jean> I am on latest git version. > > Jean> What worked is `emacs -nw --bg-daemon': > > Jean> but Emacs is not starting on X now. > > Does this help: > > diff --git a/src/xterm.c b/src/xterm.c > index a40440e0da..a329ca59d0 100644 > --- a/src/xterm.c > +++ b/src/xterm.c > @@ -27654,6 +27654,8 @@ xi_select_hierarchy_events (struct x_display_info *dpyinfo) > memset (m, 0, l); > mask.mask_len = l; > > + mask.deviceid = XIAllDevices; > + > XISetMask (m, XI_PropertyEvent); > XISetMask (m, XI_HierarchyChanged); > XISetMask (m, XI_DeviceChanged); I did not try that, but I guess that there must be some recent change in xterm, I guess it is something related to it. And please Po Lu, revert it back that it works. * ed9adafc0b..: Po Lu 2022-08-17 Avoid disabling device multiple times while handling XI attachment events commit ed9adafc0bdcfc2c79534282f888df3b250db329 Author: Po Lu Date: Wed Aug 17 10:20:25 2022 +0800 Avoid disabling device multiple times while handling XI attachment events * src/xterm.c (handle_one_xevent): Avoid disabling devices if we notice it has been disabled while handling XISlaveDetached or XISlaveAttached. -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/