From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: poplife-mode Date: Sun, 12 Nov 2017 23:06:12 -0500 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1510546014 28867 195.159.176.226 (13 Nov 2017 04:06:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 13 Nov 2017 04:06:54 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 13 05:06:50 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eE61K-00076d-54 for ged-emacs-devel@m.gmane.org; Mon, 13 Nov 2017 05:06:50 +0100 Original-Received: from localhost ([::1]:52330 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eE61O-0000ZU-Gc for ged-emacs-devel@m.gmane.org; Sun, 12 Nov 2017 23:06:54 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40785) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eE60o-0000YR-81 for emacs-devel@gnu.org; Sun, 12 Nov 2017 23:06:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eE60l-0002Ma-19 for emacs-devel@gnu.org; Sun, 12 Nov 2017 23:06:18 -0500 Original-Received: from pmta31.teksavvy.com ([76.10.157.38]:46191) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1eE60k-0002Ln-Qq for emacs-devel@gnu.org; Sun, 12 Nov 2017 23:06:14 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2FJCgB/GQla/xLpjBhbHAEBAQQBAQoBA?= =?us-ascii?q?YM1gVKJMoYGjjUBgXwUIAGWGxCCAQqFNQQCAoRFQRcBAQEBAQEBAQEDaCiFHwE?= =?us-ascii?q?EAVYjBQsLNBIUGA0kii0IqgWDSosGAQEIAgElgzSIb4RahjUFknuPL6Bwh1aWJ?= =?us-ascii?q?IE5IAE3gXI0IQgygy6EfCOJDQEBAQ?= X-IPAS-Result: =?us-ascii?q?A2FJCgB/GQla/xLpjBhbHAEBAQQBAQoBAYM1gVKJMoYGjjU?= =?us-ascii?q?BgXwUIAGWGxCCAQqFNQQCAoRFQRcBAQEBAQEBAQEDaCiFHwEEAVYjBQsLNBIUG?= =?us-ascii?q?A0kii0IqgWDSosGAQEIAgElgzSIb4RahjUFknuPL6Bwh1aWJIE5IAE3gXI0IQg?= =?us-ascii?q?ygy6EfCOJDQEBAQ?= X-IronPort-AV: E=Sophos;i="5.44,387,1505793600"; d="scan'208";a="8820057" Original-Received: from 24-140-233-18.cpe.teksavvy.com (HELO fmsmemgm.homelinux.net) ([24.140.233.18]) by smtp.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Nov 2017 23:06:12 -0500 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 73BF8AE113; Sun, 12 Nov 2017 23:06:12 -0500 (EST) In-Reply-To: (Drew Adams's message of "Sun, 12 Nov 2017 19:40:58 -0800 (PST)") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 76.10.157.38 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:220130 Archived-At: >> I.e. bind it to down-mouse-3 but wait a little and if there's not been >> any "mouse-up" event with 1s or so, then pop up the contextual menu. > The active region is not visible as such until `mouse-3' is > released (the up event). It doesn't matter, in my UI suggestion. You can either do: (short) click => do good ol' mouse-save-then-kill press-and-hold => pop up a contextual menu > So even if this could be made to provide a menu for acting on the > region, the region would not be visible. It's visible if it was activated by an earlier command, of course. E.g. "mouse-3" followed by "down-mouse-3". > The `mouse3.el' code intentionally provides for two menus: My suggestion doesn't attempt to provide that. It could provide a menu whose content depends on whether the region is active (and whether the click was made in the region), of course, but that's a bit different. Stefan