From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: `aset` on strings, changing the size in bytes Date: Sun, 09 Sep 2018 23:03:28 -0400 Message-ID: References: <88must56x4.fsf@gnu.org> <83efe4trsa.fsf@gnu.org> <83lg8bsvfm.fsf@gnu.org> <83in3fqj9c.fsf@gnu.org> <83d0tmr97o.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1536549689 6688 195.159.176.226 (10 Sep 2018 03:21:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 10 Sep 2018 03:21:29 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org, Noam Postavsky , rms@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 10 05:21:25 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 1fzClR-0001eC-67 for ged-emacs-devel@m.gmane.org; Mon, 10 Sep 2018 05:21:25 +0200 Original-Received: from localhost ([::1]:49497 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzCnX-0008Rt-PK for ged-emacs-devel@m.gmane.org; Sun, 09 Sep 2018 23:23:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48964) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzCkb-0005Jo-E6 for emacs-devel@gnu.org; Sun, 09 Sep 2018 23:20:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fzCU8-0002hU-7r for emacs-devel@gnu.org; Sun, 09 Sep 2018 23:03:32 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:47121) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzCU7-0002cm-29; Sun, 09 Sep 2018 23:03:31 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id w8A33TC2001534; Sun, 9 Sep 2018 23:03:29 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id E9BB6AE265; Sun, 9 Sep 2018 23:03:28 -0400 (EDT) In-Reply-To: <83d0tmr97o.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 09 Sep 2018 18:17:47 +0300") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV6369=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6369> : inlines <6865> : streams <1798005> : uri <2707043> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 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:229586 Archived-At: > I meant to make aset cons a new string when it turns out the original > one's data is too small to include the new contents. `aset` is documented to return NEWELT, so what could it do with the newly cons'd string? We'd have to change `aset` so it returns this newly cons'd string, but that would also be a backward incompatible change. Better introduce a new function `sset` for it. Stefan