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: Enabling Xterm-Mouse-Mode Date: Sun, 08 Dec 2024 08:35:24 -0800 Message-ID: References: <87o71p2o0a.fsf@posteo.net> <86ikrxkpj2.fsf@gnu.org> <87jzcd114q.fsf@posteo.net> <3d916e84b1c0662850a90b572ccc0a91@finder.org> <86cyi2hfm0.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37507"; mail-complaints-to="usenet@ciao.gmane.io" Cc: philipk@posteo.net, Emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 08 17:35:38 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 1tKKFu-0009dM-26 for ged-emacs-devel@m.gmane-mx.org; Sun, 08 Dec 2024 17:35:38 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tKKFm-0005hb-T1; Sun, 08 Dec 2024 11:35:30 -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 1tKKFk-0005cf-2w for Emacs-devel@gnu.org; Sun, 08 Dec 2024 11:35:28 -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 1tKKFi-0001dT-JP; Sun, 08 Dec 2024 11:35:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=finder.org; s=2018; t=1733675724; bh=jWqw5DWHoYZzqZEkazkhZbOKPabX9Uqkfrbrtyr/uEI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=uxbBmkhmSn0Cc4PpzG8dx+Tt1DdJChaDx2pnEFZhM8D5RQCCycEiUX6Jw7IEpNKCx +2h1HqOQ6DNX4ELNKZfDp85ArZUQ49EnsQvDK9WkWEXGOzm8g4/LnjQwd1uI3xIofP fy3OERTNbOQWqTcvmJafgj6NjS79yoa9aoVgSyqWKt6BmVrrLJTYwECtjGECK4LByj R9o1QDNorvtXBQkWR0D1AT08I2YqnAIGchF26hrTUFB8rCZiRQAyucjARHRMmLmmvL +jURbuoXeoNH9bM3JKk6SSpGjD5TLAxqFzNf0cL7fopYWfe6plVQQgIDxHPzsulThN Kqj4ZFCHWPEPg== Original-Received: from mail.finder.org (unknown [192.155.80.58]) by greenhill.hpalace.com (Postfix) with ESMTPSA id 9EDFCE49; Sun, 8 Dec 2024 16:35:24 +0000 (UTC) In-Reply-To: <86cyi2hfm0.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:326198 Archived-At: On 2024-12-07 22:07, Eli Zaretskii wrote: >> Date: Sat, 07 Dec 2024 16:37:46 -0800 >> From: Jared Finder >> Cc: Eli Zaretskii , Emacs-devel@gnu.org >> >> As long as we can defer actually sending the mouse tracking escape >> sequence until after init file load I think this is fine. All >> terminals >> I've worked with work fine with xterm-mouse-mode's defaults, but since >> there's so many different terminals I want to ensure user >> compatibility >> variables still work (currently just xterm-mouse-utf-8, I expect to >> create a new one for bug #73469). > > So this would require some changes in the code, to make sure the > escape sequences are delayed? Yes, some changes, though they are straightforward. >> Also, I expect this would only be done when the envvar TERM indicates >> the user is on an xterm-compatible terminal. > > How do we know which ones are compatible? If Emacs decided to load term/xterm.el then the terminal advertised itself as xterm compatible and I think we could enable xterm-mouse-mode. There's no termcap entry for mouse support, sadly. -- MJF