From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Do shorthands break basic tooling (tags, grep, etc)? (was Re: Shorthands have landed on master) Date: Thu, 30 Sep 2021 17:12:17 +0300 Message-ID: <8335pmgnjy.fsf@gnu.org> References: <16338bdc2497fc51c6fb6d54ab370bfb@webmail.orcon.net.nz> <831r59kyhf.fsf@gnu.org> <834ka4k15m.fsf@gnu.org> <83y27gijmz.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16980"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acm@muc.de, joaotavora@gmail.com, emacs-devel@gnu.org To: Phil Sainty Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Sep 30 16:13:48 2021 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 1mVwol-0004C6-V8 for ged-emacs-devel@m.gmane-mx.org; Thu, 30 Sep 2021 16:13:47 +0200 Original-Received: from localhost ([::1]:42176 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVwok-0001HP-UQ for ged-emacs-devel@m.gmane-mx.org; Thu, 30 Sep 2021 10:13:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45782) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVwnO-0007Yv-2i for emacs-devel@gnu.org; Thu, 30 Sep 2021 10:12:22 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:47684) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVwnM-0004I4-JW; Thu, 30 Sep 2021 10:12:20 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2718 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVwnM-0005uv-3W; Thu, 30 Sep 2021 10:12:20 -0400 In-Reply-To: (message from Phil Sainty on Fri, 01 Oct 2021 01:23:48 +1300) 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:275901 Archived-At: > Date: Fri, 01 Oct 2021 01:23:48 +1300 > From: Phil Sainty > Cc: Alan Mackenzie , joaotavora@gmail.com, emacs-devel@gnu.org > > On 2021-09-29 08:29, Eli Zaretskii wrote: > > I'm not aware of any plans to use shorthands in Emacs itself. > > No doubt; but that doesn't prevent people using them in > libraries which are subsequently proposed for contribution to > Emacs or ELPA. If we decide we don't want that except in the few cases which it's supposed to solve, then we will ask the authors to kindly not use that in the packages submitted to ELPA, certainly to the core. > This use-case is an extremely limited one, targeted (AFAIU) at > an *extremely* small number of libraries; so the impact is quite > limited. The problem is not with the number of libraries, the problem is with the libraries that _use_ those few. They are a lot. > Alan's examples will probably be real -- people will put all > kinds of shorthand declarations into their third-party code, > including shorthands for core features, just because they can, > and because it's an officially-supported feature. If we decide we don't want that, we won't allow that. > 1. A way of displaying long symbols in the desired short form, > such that the buffer contains the actual symbol, but the > user sees the short symbol (i.e. some kind of replacing > display). I very much doubt that display-time feature can solve this, because it will not be supported by Lisp itself. And then you have worse problems. > 2. Something analogous to abbrev which recognises when someone > starts typing a symbol with one of the configured short > prefixes, and expands it to be the full name (but per (1) > visually displayed as the short form that they typed). Are you thinking about M-/ ? That already exists, and I'm using it all the time, not only in Lisp. Long identifiers are ubiquitous these days, and long words in human-readable text are as well. I really don't understand why you and Alan (and others) are so worried. Use of this feature is entirely optional, and if we are afraid this will somehow slip into the parts of Emacs we don't want, let's augment CONTRIBUTE to prevent that. Me, I think it's no more dangerous than someone trying to sneak files without lexical-binding into Emacs: it will be immediately caught and flagged, because several people watch the commits closely enough.