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 19:58:59 +0200 Message-ID: <83mtkw79y4.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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6540"; 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 18:59:54 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 1mz0TS-0001Ui-Fj for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Dec 2021 18:59:54 +0100 Original-Received: from localhost ([::1]:38976 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mz0TR-0007K6-HC for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Dec 2021 12:59:53 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43808) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mz0Sj-0006Qo-Ib for emacs-devel@gnu.org; Sun, 19 Dec 2021 12:59:09 -0500 Original-Received: from [2001:470:142:3::e] (port=41540 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 1mz0Sj-0003qg-64; Sun, 19 Dec 2021 12:59:09 -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=XJjGl7HGYTAMG2BPBQcQSQIv6OUPETYsl+C5yfQ3h+c=; b=ryP6+dbf4GU+ 4p371JqLIRVkdiD5Z/YyMtrxGkO5xOGokHgkgdtxDJ6iB6GE1WGvYYnHfn6Sg8f+npSocfhy45vhj GANOjMHQnbvaXMPY6vz5PPSFhNs2K/VRS1X+L4f5KNNbrmCubvdRQtnyOcj/XrDvv7K30xXE/kDPu 866sFA1FPDleJVoWJAoYAsRtG5Fse4BX0NZllfXzqSNRT5ii21rLnexmw40uHilJi/O4lpdkrojGM oxemQ/GanwoZrIYJrR5xzoebTFdsfwWIkDynPv+s1QAxlOd3vXU3GIylqbz+Lxo+GjApzSu1ZAuYf rycELosYa23DdG+4zteb5g==; Original-Received: from [87.69.77.57] (port=3444 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 1mz0Sj-0007wZ-1Q; Sun, 19 Dec 2021 12:59:09 -0500 In-Reply-To: <87czls7rdk.fsf@yahoo.com> (message from Po Lu on Sun, 19 Dec 2021 19:42:31 +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:282462 Archived-At: > From: Po Lu > Cc: larsi@gnus.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org > Date: Sun, 19 Dec 2021 19:42:31 +0800 > > > 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). > > We could have an API that allows Lisp to push some kinds of input events > to that queue, which is then read by the various read_socket_hooks. How would the low-level events, from which you want to construct higher-level events, get to Lisp in the first place?