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: Sun, 12 Nov 2017 21:32:25 +0100 Message-ID: References: <83k1yvmo7z.fsf@gnu.org> Reply-To: charles@aurox.ch 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 1510518737 14126 195.159.176.226 (12 Nov 2017 20:32:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 12 Nov 2017 20:32:17 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Yuri Khan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 12 21:32:13 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 1eDyvN-0003QJ-3c for ged-emacs-devel@m.gmane.org; Sun, 12 Nov 2017 21:32:13 +0100 Original-Received: from localhost ([::1]:51211 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDyvU-0002sS-GJ for ged-emacs-devel@m.gmane.org; Sun, 12 Nov 2017 15:32:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46692) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDyvL-0002s8-Nd for emacs-devel@gnu.org; Sun, 12 Nov 2017 15:32:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eDyvH-0002Vn-PU for emacs-devel@gnu.org; Sun, 12 Nov 2017 15:32:11 -0500 Original-Received: from sinyavsky.aurox.ch ([37.35.109.145]:49409) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eDyvH-0002VL-FP for emacs-devel@gnu.org; Sun, 12 Nov 2017 15:32:07 -0500 Original-Received: from sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) by sinyavsky.aurox.ch (Postfix) with ESMTP id 72986225AB for ; Sun, 12 Nov 2017 20:24:59 +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 :reply-to:references:subject:subject:in-reply-to:to:from:from :message-id:date:date; s=dkim; t=1510518298; x=1511382299; bh=me gcZ94xYcGDMUeoyKecKUY86eRHxIjFguQEJeeuVno=; b=sjv5hu+kuqKzgt4eXv NZgrrVaT1cXQ6qup100rh6JHyP4ACeuSi6Xtso1e0V3QVMIAvITcYHFfF5eKsIiy UvQQ6qmvta6uVg5JyQ+DTx76MnF6r6RE9KTHII3VYfVHm1h68ss+KF+EUCtYM10T F54SHUxxFt8s1F03LrWv9vVmw= 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 P8r6zNebZWzH for ; Sun, 12 Nov 2017 20:24:58 +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 EF98E22570; Sun, 12 Nov 2017 20:24:57 +0000 (UTC) In-reply-to: (message from Yuri Khan on Mon, 13 Nov 2017 02:17:14 +0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 37.35.109.145 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:220113 Archived-At: > From: Yuri Khan > Date: Mon, 13 Nov 2017 02:17:14 +0700 >=20 > On Mon, Nov 13, 2017 at 12:47 AM, Stefan Monnier > wrote: > >> Is it a good idea to invent a UI that is unlike anything out there i= n > >> any other GUI application, at least AFAIK? Last time Emacs did that > >> there was no other app around, but not so nowadays... > > > > AFAIK "long click brings up a context menu" was used in macOS some ye= ars > > ago (no idea if it is still used), so it's not a completely new idea. >=20 > Also, on mobile devices (starting at least as far back as Pocket PC > around 2002), as a poor man=E2=80=99s substitute for secondary mouse bu= tton > click. Inefficient as hell, since instead of just clicking a button > you have to hold your finger until the timeout elapses and watch the > little ring around your cursor fill. Those were the days! But in contrast, 450 ms is not long to wait for a context menu, as you can test in Stefan's patch. > > The only existing standard I know for context menus is to use mouse-3= , > > but that clashes with existing Emacs behavior. Of course, we could > > simply drop that existing Emacs behavior. >=20 > Those same applications that show a context menu on the secondary > mouse button click also select a region on Shift+primary click. >=20 > Emacs as is: >=20 > * marks region, one more at the same position kills= it > * pops up buffer appearance menu >=20 > Emacs mimicking other applications could do this: >=20 > * pops up context menu which includes buffer appearance as > part or submenu > * marks region, one more at the same position k= ills it Actually, in Emacs under macOS, S-mouse-1 already runs mouse-save-then-kill, as mouse-3 (and the buffer appearance menu is by default not accessible, I think). It was apparently done to maintain consistency with other macOS apps.