From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: TTY child frames and mouse_position_hook Date: Fri, 20 Dec 2024 13:02:49 +0800 Message-ID: <87v7vfosjq.fsf@yahoo.com> References: <874j2zqhut.fsf.ref@yahoo.com> <874j2zqhut.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29160"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Gerd =?utf-8?Q?M=C3=B6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 20 06:03:30 2024 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 1tOVAf-0007RC-G6 for ged-emacs-devel@m.gmane-mx.org; Fri, 20 Dec 2024 06:03:29 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tOVAN-0002Qs-81; Fri, 20 Dec 2024 00:03:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tOVAJ-0002Qc-2x for emacs-devel@gnu.org; Fri, 20 Dec 2024 00:03:07 -0500 Original-Received: from sonic304-20.consmr.mail.ne1.yahoo.com ([66.163.191.146]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tOVAG-00053s-U4 for emacs-devel@gnu.org; Fri, 20 Dec 2024 00:03:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1734670979; bh=MlfQk5fzBZp4jLS/EyhHF7zAw2M9FgNfnb+wegJjtC0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=SoXu9ZhJoJEVCD+jiN1cZk3C3yzfTxyD39EgfYJaoKipPQRH1VqNA0PylhHpiW/ObNN1L7pp8f4/Xo1bIbGMJpeIzoojhvpa0m+uKUJo+bnDBJ8jIyNP30hGh3b/6nANcy/35pZmGomFLTkJM1M7hrLcJ+yHSHqAt7ej45Au5R4dMEG/HJRxzkmZlYbCzDc/xW/UAFhKqrIlrYS5NQm6Qe35fKq4Im917CrsDMkvz8QtcMgBVI++dkbm/8spn5aLp1x3bNgs89AFp6iQIQJ6L0PkNLz07IYTBup388g3DppCiA9dVEbbKMKNk3LVEcZ8RkCLRg0cFxgMqk2cEd76Tg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1734670979; bh=FouIk5Cp3//GuKkCGD6a/G67QO2sLqFXpqt+b94NMZC=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=CpL2ebt03aGyyZa399gbX+ANDqPmpp/8OF8/Fs1q1RhEzj+e9OzoNxSu4N01E8niOHlV5OXRDP045tcze3tzvsDwCQCGH+fO2Gu2kxNd8o+9bI6v/ckZrCq/z7fwQGJX5TyBeRr4eMI1O/ANDNJmDOvyQN7B3zInN3dhJ6egtwGB7Uc3Qtf2LY5e9yr5ay/eWHkm6uWNaCtor3q7UA7egHQbfGmWtgv6q2VwljetMReMUZl7bCILPsgII3k3XmpRFFcPDvjXpreG8Diwo5WDgPPcklZMG/YkBpxOlnaAGiWd3ENKMp50k+bd62tckkho3DbG2MBXca7wMmqdVuhr3Q== X-YMail-OSG: t3q6qOcVM1lfdK14gPddVE6F_nqC4rY2ahLawRyeJPkGiT3K20lN2z3UqOfHrLL xobh.X7Y8q.MsEjQc1xxnkz2.pzKRxfz.M62THLFDqTvDFf7m2JO3R0jRZ9L4NAufC.lSb4Nlge4 ldsy_H90Wc4C1EbCcKOy7tK5Gsox1SYvx1K5al0nervIoX2yz8ZM2jZme5A4RErDY9zfcLmRwcas tpYvUyKQ5GfhwAyCVVF1N8fSjI8uM98fvmok_tPZSbnfZD1aR_loHAE7xeSOP2_GXi6heKxOU6k0 qanrXrptN5M8kie3vuJFyFm5mX5eXIz.8V9PuH2yyHbzuKanp6RcYEoPUSJ7Z1rNnI7kKeW4_DPy HuYdYbrR8DdVHiXPBVyoNicecH8B2cB0juN0sAIHBXUnIt8dwOsBH4NmqUH71PY1d7Qs0OTlw.Iz UVSGAC5FV0zJdxepP0p4ezC.P712f4YpDyn0.yFRbh4a1GmU8YzND02ww0sifnQiLvuguBBnItrk JPz1F0srvPT5dcU85OBEv0Rib8BcZqm5CVoFBHee2NEEN80NugYKOPn.CCbuPBASXBwOxQK0UapP cHyqhznLsSg6L2yg7rdeZj.oKeQJ9a4gNaECdgeolDQvIyg.3yM03AOqYaa9VaEZNojKYhHs2qVX NHmiEgOPph0lrcxli6EvyFBWQLxP1IzEEywg2gATKsrPA4TdZcVh3X29gzhxO.1A9XlolqeJxlJR yhwWgy5ws6SoYMBuCyJRlprjJBx0Ok5RFfec9PQsSHYqxtAiLKudYNCb55fl4jQImmPMuGmsNzxd 9IXrxJHd27yIUQ_i0fsGzPn24fmk4TCueO.XdXvHEv X-Sonic-MF: X-Sonic-ID: f4da9fd8-746c-4bf3-bb89-000f8cdca402 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.ne1.yahoo.com with HTTP; Fri, 20 Dec 2024 05:02:59 +0000 Original-Received: by hermes--production-sg3-5b7954b588-sgpdh (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID a06cf41e315e086a87461097ec806eb2; Fri, 20 Dec 2024 05:02:54 +0000 (UTC) In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llmann=22'?= =?utf-8?Q?s?= message of "Fri, 20 Dec 2024 05:45:00 +0100") X-Mailer: WebService/1.1.23040 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.191.146; envelope-from=luangruo@yahoo.com; helo=sonic304-20.consmr.mail.ne1.yahoo.com X-Spam_score_int: -31 X-Spam_score: -3.2 X-Spam_bar: --- X-Spam_report: (-3.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-1.116, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:326772 Archived-At: Gerd M=C3=B6llmann writes: > Po Lu writes: > >> Where does the tty child frame implementation account for the absolute >> positions of child frames when processing mouse input, as from >> xterm-mouse-mode? Needless to say, mouse input is not properly >> translated on MS-DOS, and I would prefer to reuse code that already >> exists, provided that I can locate it. >> >> Thanks in advance. > > I think this is best seen in the following commits to xt-mouse.el. > > e2323775246 | * Fix mouse-position for xterm-mouse-mode > 414de92a562 | * Initial child frames based on master > > In short, it's > > - Determine frame under (X, y) from by the terminal > - Give Emacs (frame, x', y') where x' and y' are relative to the frame > >=20=20 Oh, I see. Thank you!