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: Enabling Xterm-Mouse-Mode Date: Thu, 12 Dec 2024 12:52:30 +0200 Message-ID: <86ttb9yxzl.fsf@gnu.org> References: <87o71p2o0a.fsf@posteo.net> <86ikrxkpj2.fsf@gnu.org> <87jzcd114q.fsf@posteo.net> <3d916e84b1c0662850a90b572ccc0a91@finder.org> <86cyi2hfm0.fsf@gnu.org> <23bae57db2082aebd7f79064599c218f@finder.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38333"; mail-complaints-to="usenet@ciao.gmane.io" Cc: philipk@posteo.net, Emacs-devel@gnu.org To: Jared Finder Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 12 11:53:36 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 1tLgp6-0009p4-As for ged-emacs-devel@m.gmane-mx.org; Thu, 12 Dec 2024 11:53:36 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tLgod-0003gm-3G; Thu, 12 Dec 2024 05:53:07 -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 1tLgoa-0003gB-PR for Emacs-devel@gnu.org; Thu, 12 Dec 2024 05:53:05 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tLgoZ-0008K9-MP; Thu, 12 Dec 2024 05:53:03 -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=0ZEqkgm2NPRBzV4br+VCfllVoAmDtpGmm5kYbObR3jc=; b=SX9GZfh2AbaG 1nt/1YHgBwxTfd6lazdsdIc5y/PFrFWTotAp4aqxUKbw3o+QC1VkOxgowe158oJKcQBEBNE9KIFeU QhNqXLg4YNWiYucsZ4QZNLHcQBYx1L2AlA6coJoxwX85fCexmUS7yCEhMjan8TL0NMidj66c13U5S dH8Jx4l7WCHhc2YocBXcXmfyRS+rsdFD2CeH5yr2M/a4zZZuheNENaKL085T9dVFZq0wcxSJddSqV 0AtvN7KyjMUZ7nXegonWKNONa3jRhvYb3HuxALjrVl84tsZ2eD4p66meBLvKXCjCw/nB572c62mNc PBnTj35ASwG5m3ZYlAxKZw==; In-Reply-To: <23bae57db2082aebd7f79064599c218f@finder.org> (message from Jared Finder on Mon, 09 Dec 2024 22:22:06 -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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:326423 Archived-At: > Date: Mon, 09 Dec 2024 22:22:06 -0800 > From: Jared Finder > Cc: philipk@posteo.net, Emacs-devel@gnu.org > > On 2024-12-08 08:35, Jared Finder wrote: > > 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. > > Relying on term/xterm.el being loaded made the patch very > straightforward because it gets loaded after user init files. Patch > attached. Thanks, installed on the master branch.