From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: Context menus and mouse-3 [was: Changes for emacs 28] Date: Tue, 15 Sep 2020 20:33:51 +0000 (UTC) Message-ID: References: <87k0wwsrj4.fsf@gkayaalp.com> <87h7ryet7n.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-9 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2732"; mail-complaints-to="usenet@ciao.gmane.io" Cc: philipk@posteo.net, Richard Stallman , Ergus , emacs-devel@gnu.org, =?iso-8859-9?B?R/ZrdHXwIEtheWFhbHA=?= , Arthur Miller , Dmitry Gutov , Gregory Heytings To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Sep 15 22:35:03 2020 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 1kIHfJ-0000W8-CU for ged-emacs-devel@m.gmane-mx.org; Tue, 15 Sep 2020 22:35:01 +0200 Original-Received: from localhost ([::1]:39224 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kIHfI-0001eH-D5 for ged-emacs-devel@m.gmane-mx.org; Tue, 15 Sep 2020 16:35:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34958) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIHed-0001ES-At for emacs-devel@gnu.org; Tue, 15 Sep 2020 16:34:19 -0400 Original-Received: from userp2120.oracle.com ([156.151.31.85]:47774) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIHea-000453-Q8; Tue, 15 Sep 2020 16:34:18 -0400 Original-Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 08FKSwhB030203; Tue, 15 Sep 2020 20:34:08 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=LPSJko5dLVeMT24LKPuNAmDFVKM64zj5l5jr8WGjgCc=; b=U+ajJgG8ePDtwjZ6Z/quQTwWLZVfWoD9b3ftenrKT5NBGwyrK0e0SJH7FbHIKauticeR +fjpa3jmUUY3pNPhh/AyXg5NUd8qXRl4ePgFkuw5Ft1WkzUJWP4k+dAkTx3yUMMJVQvY 2wbm1xW/3kXInYg611nYRTE93/w6kihVpnHAR4Sf7UF4UxSW8NgVPoOjdAZUV7NUiopL oH38Oakj+oy3KQ45TD/tJn9PtzzJfM/mKFR5IO/i4Cju/wHXNFRjgROdMLdLywLo+OYy njWabtkZOku8fnbaFVAkjVGFmKp97KW+yrgOTsLp/dmefILHABJ6+OC9O2YjjnGSJUA3 Ow== Original-Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by userp2120.oracle.com with ESMTP id 33j91dh3ar-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 15 Sep 2020 20:34:08 +0000 Original-Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 08FKUh6Q037800; Tue, 15 Sep 2020 20:34:08 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3030.oracle.com with ESMTP id 33h89001v1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 15 Sep 2020 20:34:08 +0000 Original-Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 08FKXqeH012016; Tue, 15 Sep 2020 20:33:53 GMT In-Reply-To: <87h7ryet7n.fsf@mail.linkov.net> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5044.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9745 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 spamscore=0 adultscore=0 suspectscore=0 mlxscore=0 bulkscore=0 mlxlogscore=875 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009150160 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9745 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 impostorscore=0 priorityscore=1501 malwarescore=0 suspectscore=0 mlxlogscore=878 clxscore=1015 adultscore=0 lowpriorityscore=0 spamscore=0 mlxscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009150160 Received-SPF: pass client-ip=156.151.31.85; envelope-from=drew.adams@oracle.com; helo=userp2120.oracle.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/15 16:34:15 X-ACL-Warn: Detected OS = Linux 3.1-3.10 [fuzzy] X-Spam_score_int: -73 X-Spam_score: -7.4 X-Spam_bar: ------- X-Spam_report: (-7.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-2.999, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-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:255791 Archived-At: > > read `Mouse Commands' if you haven't > > already, and give it a try. >=20 > Mouse support is poor in Emacs, this is the reason > why I don't use the mouse in Emacs. I disagree that mouse support is poor in Emacs. I use a mouse in several other applications much of the workday, and Emacs mouse support is superior in every respect I'm aware of. But I'm no expert on the use of mice. And perhaps the mouse support in the apps I use is not a reference. > > Double-click (`mouse-1') on a word, then click > > `mouse-3' on another word. The selection picks up > > whole words, from the first through the last you > > clicked. >=20 > In other apps, the same is achieved by double-click > (`mouse-1') on a word, then double-click the same > (`mouse-1') on another word while holding down the Shift key. And that's better why? Having to use both the keyboard and the mouse? (One of the arguments made by a few people in this discussion was that `C-mouse-3' makes you do that to get a right-click menu.) > > Triple-click a line, then click `mouse-3' on > > another line. The selection picks up whole lines. >=20 > In other apps, triple-click a line, then again triple-click > on another line while holding down the Shift key. Both keyboard and mouse again. Better? Not IMO. =20 > But what if you need first to select a line, then extend > the selection to a word? In other apps, triple-click a line, > then double-click `mouse-1' on a word while holding down the Shift key. > In Emacs, this is impossible. Granted. But again, both keyboard and mouse. We could provide a keyboard + mouse combination for such use cases if that were a common need. > Also in other apps Shift+F10 opens the context menu, > but why not in Emacs? That's orthogonal. Nothing prevents also having a keyboard key sequence to open a context menu. (Presumably the "location" it refers to would be point.) The impetus for this discussion was expectations of new users to get a context menu on `mouse-3'. (But newbies are not the only reason for such a feature.) > > [I'd like to see the double-clicking extended, so > > that if you double-click a paren in Lisp it picks > > up the full sexp, and if you then `mouse-3' another > > sexp it picks up full sexps in the interval. But > > this is a bit trickier.] >=20 > It would be easier to use this as: double-click a paren to select > a sexp, then double-click another paren to select another sexp > while holding down the Shift key. Another keyboard + mouse mix. [What I described already works for simple cases, BTW. E.g. double-click a paren in Lisp (open or close), then `mouse-3' another paren, to select up the lists and intervening sexps.]