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: New Context Menu Date: Wed, 18 Aug 2021 21:17:04 +0300 Message-ID: <83r1eq39en.fsf@gnu.org> References: <20210818120834.i3orh535tb2enpos.ref@Ergus> <20210818120834.i3orh535tb2enpos@Ergus> <8335r7546s.fsf@gnu.org> <20210818124309.wvd4vhzv6sgsujdh@Ergus> <83a6le4rz1.fsf@gnu.org> <20210818181052.qpa7cwhim2i6ftmx@Ergus> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16829"; mail-complaints-to="usenet@ciao.gmane.io" Cc: juri@linkov.net, emacs-devel@gnu.org To: Ergus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 18 20:17:47 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 1mGQ8J-000486-86 for ged-emacs-devel@m.gmane-mx.org; Wed, 18 Aug 2021 20:17:47 +0200 Original-Received: from localhost ([::1]:32974 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGQ8H-0001Bk-O3 for ged-emacs-devel@m.gmane-mx.org; Wed, 18 Aug 2021 14:17:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47240) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGQ7i-0000X3-QN for emacs-devel@gnu.org; Wed, 18 Aug 2021 14:17:10 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:60630) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGQ7i-0006pn-8H; Wed, 18 Aug 2021 14:17:10 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3484 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGQ7h-0004WX-Rr; Wed, 18 Aug 2021 14:17:10 -0400 In-Reply-To: <20210818181052.qpa7cwhim2i6ftmx@Ergus> (message from Ergus on Wed, 18 Aug 2021 20:10:52 +0200) 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:272606 Archived-At: > 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? And how do you get "Paste" in the context menu, btw?