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: "modern" colors Re: Changes for emacs 28 Date: Mon, 14 Sep 2020 15:48:18 +0000 (UTC) Message-ID: References: <87sgbsb0eb.fsf@gmail.com> <20200909165723.kdnwicwvplmezusr@Ergus> <20200910102000.2t6tsju745xutg7u@Ergus> <20200910110832.ko66gqnqo4l664d6@Ergus> <20200911134225.zhnlq7cdhmu2iraj@Ergus> <20200911221435.go7b5kz2zcvxp2ft@Ergus> <83sgbnecka.fsf@gnu.org> <835z8jdycd.fsf@gnu.org> <871rj6t5ut.fsf@gkayaalp.com> <87lfhcsrub.fsf@gkayaalp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8323"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com, spacibba@aol.com, emacs-devel@gnu.org, ams@gnu.org, monnier@iro.umontreal.ca, ghe@sdf.org, eliz@gnu.org, yuri.v.khan@gmail.com, tecosaur@gmail.com To: =?utf-8?B?R8O2a3R1xJ8gS2F5YWFscA==?= , rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 14 17:53:41 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 1kHqnV-00023N-8u for ged-emacs-devel@m.gmane-mx.org; Mon, 14 Sep 2020 17:53:41 +0200 Original-Received: from localhost ([::1]:43312 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kHqnU-0006FE-9G for ged-emacs-devel@m.gmane-mx.org; Mon, 14 Sep 2020 11:53:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48934) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHqia-0000dR-9O for emacs-devel@gnu.org; Mon, 14 Sep 2020 11:48:37 -0400 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:34636) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHqiY-0006vm-ET; Mon, 14 Sep 2020 11:48:35 -0400 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 08EFijqq116615; Mon, 14 Sep 2020 15:48:26 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=KtC75FpzDHz3MHMcfGV7oFqwFqKnpQ5DmZCGOIQmXvw=; b=GU45veF0CKw8KfsEg4VKvS9NPzJb/JIjd3mHresWB0NAxSyzRYNMsE98iK/sKN43ynbV oQoJR44Pfg18jHJrGzfKw1L+ngfiSjE4XBokeqgjTX9DX6diVZ0L+gcP8OAln6aXbWPV i3kWn9HJURM/IrJiMg09JHzK+13I+o7Dm4GyijzRTc3+h2fS7rI2oMJ1os/VmaV8uCfs WTI7H9LAiQtvLwUUA8YvkOnnLMqecuY6FqHe2hk5TlmMa/GCceMPI8qQduYkLygWUDwe e7VJ7PhwY0VYP2nDQZ0vQYVzziGl2RfOyVvcJk4ywE028R9MXiGqSFqzVu9EYbUMtsG8 BQ== Original-Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by aserp2120.oracle.com with ESMTP id 33gp9kydsg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 14 Sep 2020 15:48:26 +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 08EFie0L195605; Mon, 14 Sep 2020 15:48:25 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userp3030.oracle.com with ESMTP id 33h88w6tjv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 14 Sep 2020 15:48:25 +0000 Original-Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 08EFmJGg021922; Mon, 14 Sep 2020 15:48:21 GMT In-Reply-To: <87lfhcsrub.fsf@gkayaalp.com> 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=9744 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=999 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009140126 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9744 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 mlxlogscore=999 adultscore=0 malwarescore=0 clxscore=1015 lowpriorityscore=0 phishscore=0 spamscore=0 priorityscore=1501 suspectscore=0 impostorscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009140126 Received-SPF: pass client-ip=141.146.126.78; envelope-from=drew.adams@oracle.com; helo=aserp2120.oracle.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/14 11:16:51 X-ACL-Warn: Detected OS = Linux 3.1-3.10 [fuzzy] X-Spam_score_int: -61 X-Spam_score: -6.2 X-Spam_bar: ------ X-Spam_report: (-6.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1.792, 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:255653 Archived-At: > > Do you mean, this menu is the same regardless of modes, buttons, etc? > > The C-Mouse-3 menus offer commands useful for the text you are using. > > Why not include that too? >=20 > I=E2=80=99d expect that this =E2=80=98right click menu=E2=80=99 to have a= large skeleton that=E2=80=99s > the same everywhere, but possibly with some salient context relevant > items. mouse3.el allows that. The skeleton can be large, small, or nonexistent. It can be the same everywhere or the same for contexts X,Y,Z and differently the same for contexts A,B,C. And context-relevant items or submenus can be added, beyond any "skeleton(s)". > The current binding of C-mouse-3 is basically the global menu and it=E2= =80=99s > way to crowded to be useful as a quick access right click menu. Ideally > the majority of actions in such a menu would be accessible without > opening submenus. Otherwise I don=E2=80=99t think providing the global m= enu at > three different places is of any use. It's not either-or. Different things can be useful for different contexts - different modes, users, phase of the moon, whatever. A context menu can be useful whether it has submenus or not. No one need bother with, or be bothered by, submenus if the top-level items s?he uses most (or exclusively) are readily available. Just because one thing is often useful (e.g. quick access to simple edit actions), it doesn't follow that other, different kinds of things can't also be useful. > An interesting way to set things up could be to somehow have a hook > which major modes could use to add a submenu to this right click context > menu, in whatever fashion they see fit. mouse3.el does that. It's easy for a mode to add its own context menu or replace a default one. https://www.emacswiki.org/emacs/Mouse3#ModeSpecificPopupMenu > IMHO if we fix the menu I wrote and add the functionality I just > mentioned, we=E2=80=99d have something to play with and modify up until w= e > eventually arrive at the 28 release cycle, and at that point we=E2=80=99d= have > developed an implementation that pleases everyone. You have mouse3.el to play with. It doesn't hard-code stuff.