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.devel Subject: Re: New Context Menu Date: Wed, 18 Aug 2021 21:23:18 +0200 Message-ID: <20210818192318.t63jaljytwogr7pf@Ergus> References: <20210818120834.i3orh535tb2enpos.ref@Ergus> <20210818120834.i3orh535tb2enpos@Ergus> <8335r7546s.fsf@gnu.org> <20210818124309.wvd4vhzv6sgsujdh@Ergus> <83a6le4rz1.fsf@gnu.org> <20210818181052.qpa7cwhim2i6ftmx@Ergus> <83r1eq39en.fsf@gnu.org> 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="4566"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, juri@linkov.net To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 18 22:18:32 2021 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 1mGS1A-0000ve-4S for ged-emacs-devel@m.gmane-mx.org; Wed, 18 Aug 2021 22:18:32 +0200 Original-Received: from localhost ([::1]:35644 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGS18-00067R-WB for ged-emacs-devel@m.gmane-mx.org; Wed, 18 Aug 2021 16:18:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59112) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGRAC-0000D2-8Z for emacs-devel@gnu.org; Wed, 18 Aug 2021 15:23:48 -0400 Original-Received: from sonic310-14.consmr.mail.bf2.yahoo.com ([74.6.135.124]:35386) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mGRA9-0002yu-Vb for emacs-devel@gnu.org; Wed, 18 Aug 2021 15:23:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1629314623; bh=b2ojeRrEjcZj0BWNCS21oGVBErOc+P2Iy9letHoQYwI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject:Reply-To; b=rCKAMza8xVU3sLfnN9mPFlep7raLnU/GG9RSA77Lmcb743f+jEbOfkHksuPhrHc99YdGv7pq7y/o8fUNefDw2ZQLeCmMJK8ECj6RbWahMMlfouUCIpJ3X20obNJ7UYvL/x1PKbWIIs5sYodcLbgxhtd4Hu3+hYczLtO52lYAR98/J5w8s6vga45H9TYni5+pLOPGLTI8oC3hiw83/JVHgoLBqQwzpyLuTiUf6O8vWFQcb0WjB08G26EEv8y6XVmL7nxyX+htvROkuUK3hwRkV7/cpVQXggc7eXg/mGU4DrFyz7UilBM/QqXJOFY4oH8sIB4K0a6Jgqe1ysWd0v3qjA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1629314623; bh=v8lotbJFOH8QD3iv+8zt7FjbHS0hp7zD5rswOflr5wH=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=Z1MKkuUCW+x6wagebqB1iq21RSGzDi8DOlb4LybA4JOzBEKWwiZXQOxzWIl5cwfBJyAogG3zoMCvPImMRBtaN6Ge/uicw1f+hh9obRF4RS33POpsfoebKLVT5p3p0ksP8FoXzm5ygaKS7sRymIhjgYdwUrES1cvg8QxVrBElncNt7iwJpCEYacn7Jq8GWxubk5y8hJEbmK/e6geEWIYhp9+pRQYqwVQFL7CzRsLs/wRv+Gn79N4hQ9i3XbDPqRiLohW8ic3eIgDpEyPBF1Lcq03SR4rnssjcRp0gNXuu+iAkDIq7BchK9EUMwXJDK2piN3sZHk1UsRS32HjbfYsl4A== X-YMail-OSG: rF7qiT4VM1nxy.DD2L40ehwmDqz6StunihP2hktHpUzNNv3U3V6riHT68Kb.q28 UL__BlIaeynZ1RL._CPH4DGxEwMJp8Fuxwe9.eBzknjcxsVdM4Zz4hzRc5gSZowFS.aF71e4aro0 _VrKcs_NGvMyIybdRsTbbj1812tI6vXAqCjuz9gnQCIciAfLIq86ukko88ZTgd32.xQR07AxExGL 6pjzz.H85WGUlkm3opp7XV8m1uAdxj0VPA8GBOatgALpbddnSISf3_sDknIGX1.Yt4NHUwWK6aU3 JAKuhyY29CQ_0MLMvseypBdPjhSmbCdjyDSou92AhQsUhwxhi9R02pbMfXp.THU9mCzYu.pZlefb cehr6FDwss4nkgmcJnStSLlY7YpPgG4tVR1YgdKnDfM_jD3KsSdfaf73504ZEGRdeTNvtkr5.nlY WlEHaaUpmzDZQD1o7jMzyX5_IF1eZ2OOAcORMmozMj3IReRlZYP3vS8UIh_6IS532d2MWLQJmo5S xEl1exkgjQenYjwxGp36oLrWL4KurBZHqM8ssf1w4IZukw3uLwX6QwbpUb7XfAjghLx9l.zu0Nbr J6Jjk7Ol_TpKRYYG6HzqahHtMKrwKW8UJdz14hSq.T88yWFMU7ms_M0FKjrf8XNQAIddv2jS1iFa azmPn4gehsNRp7v9z6rGjZ3CPYVuMl50p.QMlBS_WyzuCqEcBcmNdK7rhUdQNMcsf7Y_T7iRqYOv b4uoTWnLWQ9wYMKQMT.ZVGpvFgZeZCwsW11ME8cylt_7pUp7dma.Qqcit3A6QEzpI3EGvOoFxtvf TbFGkjtnaQXQ1V5xtDpFC595LI6n7tI8ZaUbGOgGBz X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.bf2.yahoo.com with HTTP; Wed, 18 Aug 2021 19:23:43 +0000 Original-Received: by kubenode518.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 3b1a6c8a5fc2540ecbbe071d2ba0d576; Wed, 18 Aug 2021 19:23:40 +0000 (UTC) Content-Disposition: inline In-Reply-To: <83r1eq39en.fsf@gnu.org> X-Mailer: WebService/1.1.18850 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Received-SPF: pass client-ip=74.6.135.124; envelope-from=spacibba@aol.com; helo=sonic310-14.consmr.mail.bf2.yahoo.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-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.23 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" Xref: news.gmane.io gmane.emacs.devel:272617 Archived-At: On Wed, Aug 18, 2021 at 09:17:04PM +0300, Eli Zaretskii wrote: >> Date: Wed, 18 Aug 2021 20:10:52 +0200 >> From: Ergus >> Cc: emacs-devel@gnu.org, juri@linkov.net >> >> >Actually, I take that back. The reason for what you see is that the >> >menu is popped by down-mouse-3, not by mouse-3. So if we can arrange >> >for optionally doing this with mouse-3 (why isn't that the default, >> >btw?), or if you could do that in your customizations, you should be >> >able to have the behavior you want. >> > >> Indeed, I tried that and it works! >> >> Something as simple as: >> >> (global-unset-key [down-mouse-3]) >> (global-set-key [mouse-3] context-menu-entry) >> >> seems to work; but maybe Juri made the other one the default for some >> reason. > >Juri? > >> Apart from that, there is another issue with the "Paste" command in tty. >> >> Paste calls mouse-yank-primary, but in tty this commands calls >> gui-get-primary-selection and there is no selection because it tries to >> get the one on the primary selection not the one in the system >> (secoundary or clipboard) not the emacs kill-ring either. >> >> So I get: error("No selection is available") > >Which is the correct response. If you run on an xterm that supports >pasting, you will get the result as on GUI frames. Why is this a >problem? > If within Emacs I "Copy" throw context-menu, then I expect I could paste the copied thing in the same way. I expect C-y not action. And if I copy from the browser, the context's menu paste must do the same and take it from the clipboard right? That's what a normal "Paste" do. In my case I use the xclip.el package from Stefan, so, everything could go throw Yank in my case. But that's a different beast. >And how do you get "Paste" in the context menu, btw? It is just there... what do you mean?