From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Mouse interaction in -nw Date: Wed, 30 Sep 2020 14:08:00 -0400 Message-ID: References: <20200930152007.rq4tkjzj3u7f4vwx.ref@Ergus> <20200930152007.rq4tkjzj3u7f4vwx@Ergus> <20200930163435.ocwqchp4qcak7j2i@Ergus> <20200930173533.judx6ieefkwstseo@Ergus> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9081"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Ergus Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 30 20:08:37 2020 Return-path: Envelope-to: geh-help-gnu-emacs@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 1kNgWr-0002HY-Am for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 30 Sep 2020 20:08:37 +0200 Original-Received: from localhost ([::1]:50996 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kNgWq-0007Go-83 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 30 Sep 2020 14:08:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60426) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kNgWQ-0007C3-Db for help-gnu-emacs@gnu.org; Wed, 30 Sep 2020 14:08:10 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:29786) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kNgWN-0006Qp-Ei for help-gnu-emacs@gnu.org; Wed, 30 Sep 2020 14:08:09 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 3F7B9100275; Wed, 30 Sep 2020 14:08:03 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 77E02100216; Wed, 30 Sep 2020 14:08:01 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1601489281; bh=Rs6bHAJwz4+l2GBmYj6W3yk//cMrwT8TIx7LpfhxJpA=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=blRoyQ7UiinbhwukEOdYNzXMEiuv17Lcpe0h55UMSf69e6oMfeN1kCN8fgT6Y/Olg lTLLlLGTf18ZwNv2vFNE58/tdETTKDD8dkAiDa4y+ptnphGpg7w7+utJHehszdtLK9 ofwKNM9NvQHhw4TeL5fH06FaMrTSnlyppbZZMSFRLTcoZDhC1J2VYNhTOPkI9NRnOe 1AK1BIMi2P3tbePKzj3XzUYQ7P/Y/eY7Z2vNl/ATKtp7iKQl7/Mvx3zoPDVR5MYqT7 lv1/JUd2IpST97UDzNDBCH4EgwPqvlvJlZWVLd85h41SD3dxaLmheLnzgJbUS4vOm8 qwS60cXyNgMKw== Original-Received: from alfajor (unknown [45.72.232.131]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 3A9811203A5; Wed, 30 Sep 2020 14:08:01 -0400 (EDT) In-Reply-To: <20200930173533.judx6ieefkwstseo@Ergus> (Ergus's message of "Wed, 30 Sep 2020 19:38:04 +0200") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/30 11:51:22 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:124222 Archived-At: > I repeated the same with only xterm (to remove tmux and simplify) Good idea. > And loosage shows: > > ESC x ;; execute-extended-command > x ;; self-insert-command > t ;; self-insert-command > e ;; self-insert-command > TAB ;; minibuffer-complete > m ;; self-insert-command > o ;; self-insert-command > TAB ;; minibuffer-complete > RET ;; minibuffer-complete-and-exit > ESC [ < 0 ; 2 3 ; 2 M ;; mouse-drag-region > ESC [ < 3 2 ; 2 4 ; 2 M ;; anonymous-command > ESC [ < 3 2 ; 2 5 ; 2 M ;; anonymous-command > ESC [ < 3 2 ; 2 6 ; 2 M ;; anonymous-command > ESC [ < 3 2 ; 2 7 ; 2 M ;; anonymous-command > ESC [ < 3 2 ; 2 8 ; 2 M ;; anonymous-command > ESC [ < 3 2 ; 2 9 ; 2 M ;; anonymous-command > ESC [ < 3 2 ; 3 0 ; 2 M ;; anonymous-command > ESC [ < 3 2 ; 3 1 ; 2 M ;; anonymous-command > ESC [ < 3 2 ; 3 2 ; 2 M ;; anonymous-command > ESC [ < 3 2 ; 3 3 ; 2 M ;; anonymous-command > ESC [ < 3 2 ; 3 4 ; 2 M ;; anonymous-command > ESC [ < 3 2 ; 3 5 ; 2 M ;; anonymous-command > ESC [ < 3 2 ; 3 6 ; 2 M ;; anonymous-command > ESC [ < 3 2 ; 3 7 ; 2 M ;; anonymous-command > ESC [ < 3 2 ; 3 8 ; 2 M ;; anonymous-command > ESC [ < 3 2 ; 3 9 ; 2 M ;; anonymous-command > ESC [ < 3 2 ; 4 0 ; 2 M ;; anonymous-command > ESC [ < 3 2 ; 4 1 ; 2 M ;; anonymous-command > ESC [ < 3 2 ; 4 2 ; 2 M ;; anonymous-command > ESC [ < 3 2 ; 4 3 ; 2 M ;; anonymous-command > ESC [ < 3 2 ; 4 4 ; 2 M ;; anonymous-command > ESC [ < 3 2 ; 4 5 ; 2 M ;; anonymous-command > ESC w ;; kill-ring-save > C-h l ;; view-lossage This looks right except for a missing ESC [ < 0 ; 4 5 ; 2 m ;; anonymous-command ;; mouse-set-region just before the `ESC w`. IOW it looks like you get the mouse-down and mouse-motion events but for some reason Emacs didn't get the mouse-up event (encoded as `ESC ... m`), which is the one that actually sets the region. I don't know why that would happen. I'd assume it's something to do with the `xterm` executable or its configuration, but as for what... I recommend you try it with some other terminal emulator and also that you try it with a different xterm config, just to try and narrow down the scope of the problem. Stefan