From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: `aset` on strings, changing the size in bytes Date: Mon, 10 Sep 2018 01:47:44 -0400 Message-ID: References: <88must56x4.fsf@gnu.org> <83efe4trsa.fsf@gnu.org> <83lg8bsvfm.fsf@gnu.org> <83in3fqj9c.fsf@gnu.org> Reply-To: rms@gnu.org NNTP-Posting-Host: blaine.gmane.org Content-Type: text/plain; charset=Utf-8 X-Trace: blaine.gmane.org 1536559191 18972 195.159.176.226 (10 Sep 2018 05:59:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 10 Sep 2018 05:59:51 +0000 (UTC) Cc: eliz@gnu.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Noam Postavsky Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 10 07:59:47 2018 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 1fzFEg-0004pl-S9 for ged-emacs-devel@m.gmane.org; Mon, 10 Sep 2018 07:59:46 +0200 Original-Received: from localhost ([::1]:49887 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzFGn-0007b2-30 for ged-emacs-devel@m.gmane.org; Mon, 10 Sep 2018 02:01:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56160) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzFF0-0007Gj-3P for emacs-devel@gnu.org; Mon, 10 Sep 2018 02:00:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fzF35-00075E-0t for emacs-devel@gnu.org; Mon, 10 Sep 2018 01:47:47 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57943) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzF33-00072g-35; Mon, 10 Sep 2018 01:47:45 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1fzF32-00034L-Su; Mon, 10 Sep 2018 01:47:44 -0400 In-Reply-To: (message from Noam Postavsky on Sun, 9 Sep 2018 10:44:25 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:229591 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > >> Or we could define it to replace a substring: > >> > >> (setq s (srep s from to newsubstring)) > > > > Why not have aset do this under the hood? Then we won't need to ask > > people to change code that worked for decades. > It's unclear what you mean by that, the semantics of aset is to modify > the original string, changing that would surely break code that worked > for decades. I propose new functions sset and srep. -- Dr Richard Stallman President, Free Software Foundation (https://gnu.org, https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)