From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Touchscreen support Date: Tue, 21 Dec 2021 14:11:14 +0200 Message-ID: <831r2617kt.fsf@gnu.org> References: <87czlxkntg.fsf.ref@yahoo.com> <87czlxkntg.fsf@yahoo.com> <87mtkziwhi.fsf@yahoo.com> <87wnk3h0hn.fsf@yahoo.com> <877dc2xsjn.fsf@gnus.org> <83y24i9diw.fsf@gnu.org> <877dc1cug5.fsf@yahoo.com> <834k759fkp.fsf@gnu.org> <8735mp9cch.fsf@yahoo.com> <83y24h7xdz.fsf@gnu.org> <87o85d7x49.fsf@yahoo.com> <83pmps96gt.fsf@gnu.org> <87czls7rdk.fsf@yahoo.com> <83mtkw79y4.fsf@gnu.org> <87r1a85c5i.fsf@yahoo.com> <831r272tl0.fsf@gnu.org> <87h7b2zrw9.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6947"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 21 13:12:22 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mze0D-0001c4-GI for ged-emacs-devel@m.gmane-mx.org; Tue, 21 Dec 2021 13:12:21 +0100 Original-Received: from localhost ([::1]:43478 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mze0C-0001cH-1x for ged-emacs-devel@m.gmane-mx.org; Tue, 21 Dec 2021 07:12:20 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58328) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mzdzA-0000IO-CH for emacs-devel@gnu.org; Tue, 21 Dec 2021 07:11:16 -0500 Original-Received: from [2001:470:142:3::e] (port=46426 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mzdz9-0006GC-Sm; Tue, 21 Dec 2021 07:11:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=pOnckYrvho6LQ+oRnxSMdlBJ387tE87OYkUha95nfqY=; b=i8K7rjxtRV7Q FH5zBpui9x1FtCWCAINJuxdareoldLEmXxBoym3BTNwBuFj/8t6/mUNWHqw06CzyL3OSuSTZbqva3 XC/xzHB+bXfLYVDFjgzuMhVzwgKALvRnV4Lr6IC8u0yBVz7t+4L2TXp2TWpr+w8mrx9fvD608b1ln U2cQ+HXo6WK4DElSuumPvtQ0Spm45nap9WzrmaE6ptZWmgZlRMYlJQ/giM6NZiOkZ8IMAFp205+gK z8psPnEis/7HOssek/buVIaHI+h4grHHJbVrDugoC00BmGvLy5wnOVQk+Ml/RDxQSJbhRgUA+Rexs i2ETDwN5wJAyihs9RWNP8A==; Original-Received: from [87.69.77.57] (port=1399 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mzdz9-00084t-2u; Tue, 21 Dec 2021 07:11:16 -0500 In-Reply-To: <87h7b2zrw9.fsf@yahoo.com> (message from Po Lu on Tue, 21 Dec 2021 09:08:22 +0800) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:282574 Archived-At: > From: Po Lu > Cc: larsi@gnus.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org > Date: Tue, 21 Dec 2021 09:08:22 +0800 > > Eli Zaretskii writes: > > > So the events from X will be delivered via read_socket_hook, then the > > code which reads these events will call Lisp, and then it will turn > > around and feed the synthetic events it produces back into the input > > queue? That's exactly what I prefer to avoid, since there's no way in > > the world you will be able to pretend that the synthetic events were > > delivered in the same place as the real ones: some additional events > > could have arrived meanwhile. > > Hmm, is there some other mechanism we can use? Or perhaps we can design > a new mechanism for Lisp code to translate sequences of lower-level > events into high level ones? The code which processes low-level events in keyboard.c could call Lisp, which would return higher-level events, and then you fall-through to the handling of higher-level events back in keyboard.c. Or something to that effect. But I think we first need an idea about what kind of even translation is needed, or maybe you already know and can present it?