From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.devel Subject: Re: A read-based grep-like for symbols (el-search?) (was Do shorthands break basic tooling (tags, grep, etc)? (was Re: Shorthands have landed on master)) Date: Wed, 20 Oct 2021 08:00:46 +0000 Message-ID: <786a6f8766d729286c95@heytings.org> References: <25d8d72022b571db5291@heytings.org> <87h7e2xsl5.fsf@gmail.com> <25d8d72022e1ea7ed022@heytings.org> <87fstl7lzw.fsf@web.de> <87a6jt7ilx.fsf@web.de> <87fstlzlaq.fsf@gmail.com> <20211001070242.GC16352@tuxteam.de> <19fca5d18b32e460269b@heytings.org> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26456"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Oct 20 10:02:54 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 1md6Yn-0006gD-C8 for ged-emacs-devel@m.gmane-mx.org; Wed, 20 Oct 2021 10:02:53 +0200 Original-Received: from localhost ([::1]:59110 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1md6Yl-0005A3-5D for ged-emacs-devel@m.gmane-mx.org; Wed, 20 Oct 2021 04:02:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39452) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1md6Ww-0003nQ-0c for emacs-devel@gnu.org; Wed, 20 Oct 2021 04:00:59 -0400 Original-Received: from heytings.org ([95.142.160.155]:59136) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1md6Wp-0000LX-1h; Wed, 20 Oct 2021 04:00:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1634716846; bh=MmNbOrNwHYcOi37kDi1/3p5gVgPmEZ4s9Uv5HHzh/qU=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=bK71A1fCbfKt69FcycIjGy8ux/EQ3cT12beT3sB1G2jyadorPkgIEoS+/u7ICiv71 S7AWnA0O0S6m52Y3qZMFKDglmdDn4gYMumb6N3TeRb8dvpJUehxOZL21zokv101pDY Tjzy+WpQDV7FG9lMw69tgW8eNLBZO67DEUNYZmbxVihXPTt6Sr6W/njvHPI3iq9Bz5 cereE4A2Sfcu7qOLjaktNrv7yv2hFH7GDfDTxFzI6g6FK7iA0Y5pl3GPHfUvQhuWvu +0EojuSJcoEV09/A4xMBy1Kriv2JQHOS6W1g5n3uLUjVeeFrs2WbbmHbGBzjBbC+FA BeVVZxv1GYdxA== In-Reply-To: Received-SPF: pass client-ip=95.142.160.155; envelope-from=gregory@heytings.org; helo=heytings.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, 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:277428 Archived-At: >> I understand that it is intended to be a long-term solution, but it is >> not. We cannot convince all these library authors to change the way >> they write calls to Magnars' libraries, yet with the chosen solution, >> it will nonetheless be necessary to adapt each Elisp file they write, >> by changing the (require 's) into a (require 'magnars-string) and by >> adding a read-symbol-shorthands local variable at the end of these >> files. > > I think there is a misunderstanding about how we plan to handle this. > Unless I have misremembered, we plan to replace the file s.el with a > simple file that sets up a shorthand for `s-' and loads > magnar-string.el. > > The programs that currently use s.el will require no change at all. > I fear you misremember something, indeed. The programs that use s.el will of course require a similar change. Otherwise how could Emacs know that the calls to s-trim in library frobnicate.el are to be understood as calls to magnars-string-trim?