From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: charles@aurox.ch (Charles A. Roelli) Newsgroups: gmane.emacs.devel Subject: Re: poplife-mode Date: Sat, 11 Nov 2017 13:47:26 +0100 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1510404467 3546 195.159.176.226 (11 Nov 2017 12:47:47 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 11 Nov 2017 12:47:47 +0000 (UTC) Cc: tkk@misasa.okayama-u.ac.jp, emacs-devel@gnu.org To: Tak Kunihiro Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 11 13:47:37 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 1eDVCC-0000MI-68 for ged-emacs-devel@m.gmane.org; Sat, 11 Nov 2017 13:47:36 +0100 Original-Received: from localhost ([::1]:45370 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDVCH-0003x9-Qp for ged-emacs-devel@m.gmane.org; Sat, 11 Nov 2017 07:47:41 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50181) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDVC9-0003ws-Oy for emacs-devel@gnu.org; Sat, 11 Nov 2017 07:47:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eDVC5-00023y-5l for emacs-devel@gnu.org; Sat, 11 Nov 2017 07:47:33 -0500 Original-Received: from [2a03:2040:2:1b::1] (port=57837 helo=sinyavsky.aurox.ch) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eDVC4-00023h-Qf for emacs-devel@gnu.org; Sat, 11 Nov 2017 07:47:29 -0500 Original-Received: from sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) by sinyavsky.aurox.ch (Postfix) with ESMTP id 5ADD8225B7 for ; Sat, 11 Nov 2017 12:40:20 +0000 (UTC) Authentication-Results: sinyavsky.aurox.ch (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=aurox.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aurox.ch; h= content-transfer-encoding:content-type:content-type:mime-version :references:subject:subject:in-reply-to:to:from:from:message-id :date:date; s=dkim; t=1510404019; x=1511268020; bh=W3e4gE8eNZzuX dAxbsemIxglfUMrjole/p6ePdInY8s=; b=s/84du02hlSM6d/TwY8np9m0fu1pD V4X8uVj/6joabGlNAVE0FG9LhwA2bWw1c1HCuUNvM8RNiGN9/d9FhDv8ZQvkrDtR e+4Pgsk3F2D7zmrzzJ7LvMzIiORYc+xirWBm3UJDgBGsIswYLMkoPKlS4oBPJLMa R7AT5ms3RLBQIY= X-Virus-Scanned: Debian amavisd-new at test.virtualizor.com Original-Received: from sinyavsky.aurox.ch ([127.0.0.1]) by sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 0Pt2KzyKQEoX for ; Sat, 11 Nov 2017 12:40:19 +0000 (UTC) Original-Received: from gray (125.85.192.178.dynamic.wline.res.cust.swisscom.ch [178.192.85.125]) by sinyavsky.aurox.ch (Postfix) with ESMTPSA id ACB9922570; Sat, 11 Nov 2017 12:40:18 +0000 (UTC) In-reply-to: (message from Tak Kunihiro on Sun, 5 Nov 2017 10:00:06 +0900) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a03:2040:2:1b::1 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:220071 Archived-At: > From: Tak Kunihiro > Date: Sun, 5 Nov 2017 10:00:06 +0900 >=20 > With following line, one can cut and paste text using a pop-up menu > triggered by right click. >=20 > (define-key global-map [mouse-3] menu-bar-edit-menu) >=20 > I noticed that menu-bar items that lead visiting files, buffers, > frames, bookmarks, and recentf can be gathered into a pop-up menu. >=20 > I wrote a minor mode `poplife' that provides an integrated pop-up menu > triggered by right click. Also this minor mode offers contextual > pop-up menus. When a thing under mouse click is file/directory, word, > and url, this provides pop-up menus of list of files, candidates of > words, and url-opening-menu, respectively. >=20 > (require 'poplife) > (setq poplife-word-flag t) > (setq poplife-url-flag t) > (setq poplife-edit-cottager '(:imenu t :buffer t :frame t :bookmark t := recentf t)) > (poplife-mode 1) >=20 > Contextual pop-up menu by right click is very common interface > nowadays and I propose to include this (or something like this) to > Emacs. I also hope we can include something like this in Emacs one day. But I would not want to usurp the current binding of mouse-3, which is handy in its own right. We could instead trigger the pop-up menu by, for example, depressing both mouse buttons (mouse-1 and mouse-3) at the same time. This feature is apparently already used on the Windows build to fake a mouse-2 event using a mouse that does not have a third button: The variable =E2=80=98w32-mouse-button-tolerance=E2=80=99 specifies = the time interval, in milliseconds, for faking middle mouse button press on 2-button mice. If both mouse buttons are depressed within this time interval, Emacs generates a middle mouse button click event instead of = a double click on one of the buttons. from (emacs) Windows Mouse But maybe it would not be ideal, especially since we don't yet have a notation for pressing two keys at once. Also, I would recommend to file a bug for your suggestion so that we can better keep track of it. Even if such a feature is not added right away, the discussion can be useful many years later.