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: Sun, 19 Dec 2021 13:31:14 +0200 Message-ID: <83pmps96gt.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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7668"; 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 Sun Dec 19 12:34:48 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 1myuSm-0001l5-6J for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Dec 2021 12:34:48 +0100 Original-Received: from localhost ([::1]:54462 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1myuSl-0005zL-5J for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Dec 2021 06:34:47 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49560) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myuPZ-0000Rf-3W for emacs-devel@gnu.org; Sun, 19 Dec 2021 06:31:30 -0500 Original-Received: from [2001:470:142:3::e] (port=59404 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 1myuPY-0008W2-P7; Sun, 19 Dec 2021 06:31:28 -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=JPd/6s7T44uWAr4d2vkAv5OIsUzfRqZx45JU61+7VHQ=; b=np1cXwgEe8MP fSfEY9AS1bie2bmfobhL8UQcr1vnNX54R8Nn4P7/gJ54MJlMJ5QvJyIaAa717lHMeq2Lx419zwi8H 72kgsgdBd5jC2Pai6MX6FRqX30TTMeiVylGmOwLEVf9S5KJAQ65XbplM6Fve6UDhX0I9qgvvKC/I2 sP/9c0uq9Ee/z2oRnx62B5Ui4fM8RCZ4fnBF2DCQRLEhl6XUaHLY2TI5ffNvwQP5XKz1WXcPWhR4q UknWp4tAhW5wzL5DG2omw94ZRCLOBDB7wgSjx75kAO5kL4CPzCOfJgI/C/EvNfPQZ7BDLlRMZoD8N x3FT7SGCaWIT76lR0t1VHA==; Original-Received: from [87.69.77.57] (port=3344 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 1myuPV-0008Ph-1E; Sun, 19 Dec 2021 06:31:27 -0500 In-Reply-To: <87o85d7x49.fsf@yahoo.com> (message from Po Lu on Sun, 19 Dec 2021 17:38:30 +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:282415 Archived-At: > From: Po Lu > Cc: larsi@gnus.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org > Date: Sun, 19 Dec 2021 17:38:30 +0800 > > Eli Zaretskii writes: > > > Which higher-level gestures did you intend to support? The MS-Windows > > classification has this list: > > > > . zoom > > . pan > > What about being able to change the selection by dragging (not holding > and then dragging) left and right? That has no equivalent on GTK. How is that different from "pan"? > I don't think GTK has a public API for the pan gesture either, even > though it's clearly supported by the built-in widgets. So maybe we will have to construct that from other gestures on those platforms. > However, I think your classification is an otherwise reasonable list of > gestures to support; how about we use the code in Lisp for platforms > where low level events are reported (such as PGTK and X-Windows), while > directly sending the high-level events on platforms where those aren't > available? I'm not opposed to having parts of this in Lisp, but I do want to see the events placed in the normal Emacs input queue, which probably means that Lisp will be called from C. Not sure if such design will make sense in practice, though. But OTOH, having events coming in from another source, not through the input queue read by read_socket_hook, is a complication I'd very much prefer to avoid (if it's even feasible).