From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jared Finder Newsgroups: gmane.emacs.devel Subject: Re: "Final" version of tty child frames Date: Mon, 06 Jan 2025 21:40:24 -0800 Message-ID: <0b2b1d09140ff753f66bbf515d1e33b5@finder.org> References: <86wmi0g0x6.fsf@gnu.org> <11a86987cce9fe0a257c3fa58703dc33@finder.org> <86wmgl6jzv.fsf@gnu.org> <092cb755eee3a9b5e06d15c0b07e90b1@finder.org> <276414b03c24964aaeb9e43e8dba5e77@finder.org> <5fedec86bce470555814acbdf999f99d@finder.org> <86h6791khk.fsf@gnu.org> <09b0904da92efad899865b2ece5f3116@finder.org> <23dfc3fde8677a984b4c37a40d09d83b@finder.org> <86h66dagdg.fsf@gnu.org> <9c324c399a59d8e64cdc7072d2db0ae8@finder.org> <86ttac5at9.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=_98effc76f4022a14d03d709565b29596" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17492"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gerd.moellmann@gmail.com, emacs-devel@gnu.org, rudalics@gmx.at To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jan 07 06:41:32 2025 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 1tV2LL-0004MP-Cm for ged-emacs-devel@m.gmane-mx.org; Tue, 07 Jan 2025 06:41:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tV2KR-00072K-B2; Tue, 07 Jan 2025 00:40:35 -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 1tV2KP-00071s-R9 for emacs-devel@gnu.org; Tue, 07 Jan 2025 00:40:33 -0500 Original-Received: from greenhill.hpalace.com ([192.155.80.58]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tV2KN-00044T-Ed; Tue, 07 Jan 2025 00:40:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=finder.org; s=2018; t=1736228424; bh=R20iZ3YirRYETsA9pwCM8NNDZupft5rf2lIfhgvMx04=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=VAYVR6LO9BCIRkBRusyMZ9gJiZWxrZ24CSUGFSZVME6TnwUAKsRP8jeNAIqHzhwjG K2ZGiE8U5JI1du0GJGl0uyTT4TSbnBaYrkjhF+vraCcaUt5Fb5brxpnLuEmVB7mcTX Uqp6a6ct4xSZ2UmaqYFvnyHYEQQ0oXZ80pVt7buZPKIj3Nfxa6y2nLrNdYvqJBpaUH z0u4bWbK/cUCoUM4EN+r7pUM0hz6/LOdeUGfhlXxESJwKzwB2ym3kdMCUZ32qlB/w3 LMRnokFVhyltKJBAdHG5VaT7KSWw0rdf/GY2CAQnhO11Vy+enc0LNvvpj1BymF7sHX 6XkGQXSOqE7Qw== Original-Received: from mail.finder.org (unknown [192.155.80.58]) by greenhill.hpalace.com (Postfix) with ESMTPSA id D9F1D2293; Tue, 7 Jan 2025 05:40:24 +0000 (UTC) In-Reply-To: <86ttac5at9.fsf@gnu.org> X-Sender: jared@finder.org Received-SPF: pass client-ip=192.155.80.58; envelope-from=jared@finder.org; helo=greenhill.hpalace.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_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:327754 Archived-At: --=_98effc76f4022a14d03d709565b29596 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed On 2025-01-06 05:30, Eli Zaretskii wrote: >> Date: Sun, 05 Jan 2025 16:05:59 -0800 >> From: Jared Finder >> Cc: gerd.moellmann@gmail.com, emacs-devel@gnu.org, rudalics@gmx.at >> >> Style comments addressed, thank you! Someday, I will internalize >> Emacs' >> unique C style conventions. Probably once I only code for Emacs and >> not >> other projects. :) > > FTR, they are not Emacs conventions, they are GNU conventions. Ah, good point. This gave me hope I could just run GNU indent on the files I edited, but sadly that doesn't work. I got a lot of unrelated changes, some of which seem to be fine either way, and some of which are conflicts with the DEFUN() doc: parameter. This is sad, it would be really really nice if GNU style conventions could be automatically applied. Then such conventions could be automatically checked or fixed when commits are made. Does anyone here have a way to automatically check or fix the Emacs style convention? It would be soooo helpful for occasional committers like myself. >> > Does this mean child frames on xterm will have the selected-frame set >> > to a child frame, and thus do not need this trick with >> > last_mouse_frame? Or what other difference between xterm and the >> > Linux console hides behind this "fallback"? >> >> This is just keeping the behavior that already exists today. I was >> surprised by the current behavior: that term_mouse_position which only >> works for a GPM enabled mouse gets called even when GPM could not be >> used. It could make sense to change this behavior however it would be >> a >> bigger change as gpm-mouse-mode is enabled by default even for non-GPM >> supporting terminals. I suspect that GPM support is equivalent to >> TERM=linux, but I may be wrong. >> >> This works when xterm-mouse-mode is enabled because >> mouse_position_hook >> (set to term_mouse_position) is called first, followed by >> mouse-position-function (set to xterm-mouse-position-function). On >> ttys >> with xterm-mouse-mode enabled the return value from >> term_mouse_position >> is ignored. See existing definitions in Fmouse_pixel_position and >> mouse_position in frame.c. > > Maybe term_mouse_position should return immediately if GPM is not > enabled? Sure, that was easy enough. Other comments addressed as well. New patch attached. -- MJF --=_98effc76f4022a14d03d709565b29596 Content-Transfer-Encoding: base64 Content-Type: text/x-diff; name=0001-Support-TTY-child-frames-with-GPM-mouse.patch Content-Disposition: attachment; filename=0001-Support-TTY-child-frames-with-GPM-mouse.patch; size=7236 RnJvbSA3MzU0NWJmOTQxMDJkNjA3MTljNWRiYjIyMjU5YTc5MWRkYjNjMGQ5IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBKYXJlZCBGaW5kZXIgPGphcmVkQGZpbmRlci5vcmc+CkRhdGU6 IE1vbiwgNiBKYW4gMjAyNSAyMDo1MjoxMSAtMDgwMApTdWJqZWN0OiBbUEFUQ0hdIFN1cHBvcnQg VFRZIGNoaWxkIGZyYW1lcyB3aXRoIEdQTSBtb3VzZQoKKiBsaXNwL2ZyYW1lLmVsICh4LWxpc3Qt Zm9udHMpOiBEZWxldGUgYGZyYW1lLWF0JywgdG8gbW92ZSB0bwpDIGltcGxlbWVudGF0aW9uLgoq IGxpc3AveHQtbW91c2UuZWwgKHh0ZXJtLW1vdXNlLWV2ZW50KTogQ2FsbCBuZXcgYHR0eS1mcmFt ZS1hdCcuCiogc3JjL3Rlcm0uYyAodHR5X2ZyYW1lX2F0LCBGdHR5X2ZyYW1lX2F0KTogTmV3IEMg ZnVuY3Rpb24sCnJlcGxhY2luZyBgZnJhbWUtYXQnIG9ubHkgZm9yIFRUWXMuCih0ZXJtX21vdXNl X3Bvc2l0aW9uKTogVXNlIGxhc3RfbW91c2VfZnJhbWUgd2hlbiBpdCBpcyBzZXQuCihoYW5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iBub3QgYmUgbW92ZWQgaW50bwogICAg ICAgICAgICAgIHVwZGF0ZV9tb3VzZV9wb3NpdGlvbiB1bmxlc3MgeHRlcm0tbW91c2UgZ2V0cyB1 cGRhdGVkIHRvCiAgICAgICAgICAgICAgZ2VuZXJhdGUgbW91c2UgZXZlbnRzIHZpYSBDIGNvZGUu ICBTZWUKICAgICAgICAgICAgICBodHRwczovL2xpc3RzLmdudS5vcmcvYXJjaGl2ZS9odG1sL2Vt YWNzLWRldmVsLzIwMjAtMTEvbXNnMDAxNjMuaHRtbCAqLwotICAgICAgICAgIGxhc3RfbW91c2Vf eCA9IGV2ZW50LT54OwotICAgICAgICAgIGxhc3RfbW91c2VfeSA9IGV2ZW50LT55OworICAgICAg ICAgIGxhc3RfbW91c2VfZnJhbWUgPSBmcmFtZTsKKyAgICAgICAgICBsYXN0X21vdXNlX3ggPSBl dmVudC54OworICAgICAgICAgIGxhc3RfbW91c2VfeSA9IGV2ZW50Lnk7CiAgICAgICAgICAgZi0+ bW91c2VfbW92ZWQgPSAxOwogCi0gICAgICAgICAgY291bnQgKz0gdXBkYXRlX21vdXNlX3Bvc2l0 aW9uIChmLCBldmVudC0+eCwgZXZlbnQtPnkpOworICAgICAgICAgIGNvdW50ICs9IHVwZGF0ZV9t b3VzZV9wb3NpdGlvbiAoZiwgZXZlbnQueCwgZXZlbnQueSk7CiAgICAgICAgIH0KICAgICB9CiAg IGVsc2UKICAgICB7CiAgICAgICBmLT5tb3VzZV9tb3ZlZCA9IDA7Ci0gICAgICB0ZXJtX21vdXNl X2NsaWNrICgmaWUsIGV2ZW50LCBmKTsKLSAgICAgIGllLmFyZyA9IHR0eV9oYW5kbGVfdGFiX2Jh cl9jbGljayAoZiwgZXZlbnQtPngsIGV2ZW50LT55LAorICAgICAgdGVybV9tb3VzZV9jbGljayAo JmllLCAmZXZlbnQsIGYpOworICAgICAgaWUuYXJnID0gdHR5X2hhbmRsZV90YWJfYmFyX2NsaWNr IChmLCBldmVudC54LCBldmV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