From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.help Subject: Re: Mouse interaction in -nw Date: Thu, 1 Oct 2020 02:40:58 +0200 Message-ID: <20201001004058.d7xb7zfsrs552ng7@Ergus> References: <20200930152007.rq4tkjzj3u7f4vwx.ref@Ergus> <20200930152007.rq4tkjzj3u7f4vwx@Ergus> <20200930163435.ocwqchp4qcak7j2i@Ergus> <20200930173533.judx6ieefkwstseo@Ergus> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26263"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 01 02:42:14 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 1kNmfm-0006lF-Go for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 01 Oct 2020 02:42:14 +0200 Original-Received: from localhost ([::1]:59478 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kNmfl-00073a-Gx for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 30 Sep 2020 20:42:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33896) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kNmes-00072I-0t for help-gnu-emacs@gnu.org; Wed, 30 Sep 2020 20:41:18 -0400 Original-Received: from sonic311-15.consmr.mail.bf2.yahoo.com ([74.6.131.125]:43437) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kNmen-0002Y1-Af for help-gnu-emacs@gnu.org; Wed, 30 Sep 2020 20:41:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1601512869; bh=7vhDxPGF8/dWev/bZBgw9Uvj3JSnRO0/ENdakWwBo4Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject; b=sJ4Eq1dlBUeYoIC9uf/PvJ+dds+CIt3eplgKj1rGbVj6558GyvgeLTw1ZVo/d267eLvKawUpzxqnJky2t/fz0JlezsdF8b3djNKFGna8iFB8Sz14aWJzd+xtmE9iosL/T15OY3hbJijvxlVw00rGeZtEguSQdELScwn2eV6aEcyzGzUFj2gqlbUb71QD9ofELn6KH5MRXkGnxYy+aIUoYqFVJBKwAawopIy8HVVlqEAqhi0yjMNdO4VU0XGox+U/23Z6gGdEukqPAtCbBccY+BoeaN9hnSARBWVmvIfeZ75TfY1TjF5Gqcr3fYB8ZACOCeN907GnCtXrqdzWm+w+Mw== X-YMail-OSG: aQwQ2XAVM1kPmxkXqVHpdqLmXOx.8oSlBhLCBMbmKFkMBtekY80qQmw00V0yQXo orggBcTNgbrvKm39CQC0mrfsyxe7R9_OryaPpOTkc4Qqkug.L81xBOyKXxaNZKBukHhP07wqAFTf o9G1HfKWgNzeMd37ULMcS.sxFc8EFQRo3kxoidh6i7bCVX7cKUg11II9qDInFwqiSyxaXTfNAmdH CsEAnkxMWvcWdz09HDUTpwSaUrTYLnXrHDlcYsslPeDb3Mn9WTnJYH4pEnERkvCBJod9Yhu0179l PthKbMfxZfDY4YHdtNtUY6.wcqlpFSDGgQiiW_BNZtRJAgyUMmymlnCzJDSTIW4YBtlFrXeu3CtR yBBYPkFb5_AdSJxa73SWFr8XJMZE2f2oxzW8l_VZ65HwaihPzl74MxMA6eYFWjglydKMVy777y9B xG2ymZ8lGBMAyi8.oTvfyVbp7M3kOBOkchoHM3jhsb5oEdrnsCQ_NBqpq4D6u1rsz6kpbwlvq7oc 5HsodxT2lvn_z3x4YhbZmo83ZXGywcUEEHk0wjR9RfzNNJJPIkNDd_hE0EctdS9iO5QHcdNDLKQQ DoBH3NyUTnkQVyTIvcXUSTtzbey0EJEG.Drve8ZuvuCGbY_0XdR_mR27DL6HqJM5DNptKqaFWGik 2Rya4qG6OD0faDSqMIb4ZNWIJ25K3QE2Thy2qN6kAmv0r7rT7AFf5MeahKL3HikvPC2IFMifr3kh 2yYta1idl2B7vLmZjWMkFFPQTfQ7iU2l44gbRNovoGJM7XRIA76WJhoBivxFDF0JydP5pJ99aB1V huU.Ejn_ZT1DKzIWnjZAshV6yQxUmctIEVwnvl.VJi Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.bf2.yahoo.com with HTTP; Thu, 1 Oct 2020 00:41:09 +0000 Original-Received: by smtp412.mail.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID e09674f896fa1947a89855e4448ef3ea; Thu, 01 Oct 2020 00:41:08 +0000 (UTC) Content-Disposition: inline In-Reply-To: X-Mailer: WebService/1.1.16718 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Apache-HttpAsyncClient/4.1.4 (Java/11.0.7) Received-SPF: pass client-ip=74.6.131.125; envelope-from=spacibba@aol.com; helo=sonic311-15.consmr.mail.bf2.yahoo.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/30 20:41:09 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -24 X-Spam_score: -2.5 X-Spam_bar: -- X-Spam_report: (-2.5 / 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=-0.373, 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:124227 Archived-At: On Wed, Sep 30, 2020 at 02:08:00PM -0400, Stefan Monnier wrote: >> 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 > Hi Stefan: Thanks for your help. With your hint and checking my config Y found that the problem was this line: *omitTranslation: fullscreen,popup-menu,select,wheel-mouse specifically omitTranslation for "select" I am not totally sure yet if this is intended or an issue and I could comment to xterm developer if this is fine. Best, Ergus