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:48:52 -0400 Message-ID: References: <88must56x4.fsf@gnu.org> <83efe4trsa.fsf@gnu.org> <83lg8bsvfm.fsf@gnu.org> <83in3fqj9c.fsf@gnu.org> <83d0tmr97o.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 1536559093 12381 195.159.176.226 (10 Sep 2018 05:58:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 10 Sep 2018 05:58:13 +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:58:09 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 1fzFD6-00036v-Ph for ged-emacs-devel@m.gmane.org; Mon, 10 Sep 2018 07:58:08 +0200 Original-Received: from localhost ([::1]:49879 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzFFC-0007Kv-TS for ged-emacs-devel@m.gmane.org; Mon, 10 Sep 2018 02:00:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55095) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzFEx-00074L-SH for emacs-devel@gnu.org; Mon, 10 Sep 2018 02:00:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fzF4H-0000Gv-2A for emacs-devel@gnu.org; Mon, 10 Sep 2018 01:49:03 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58021) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzF48-00008B-N6; Mon, 10 Sep 2018 01:48:53 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1fzF48-0003Lh-GF; Mon, 10 Sep 2018 01:48:52 -0400 In-Reply-To: (message from Noam Postavsky on Sun, 9 Sep 2018 12:27:21 -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:229589 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. ]]] > (let ((new-s (aset s idx newchar))) > (when (stringp new-s) > (setq s new-s))) This does not work. aset does not return the string. It returns the character that was stored. Changing the code to use my proposed srep is simpler than changing it to do this. -- Dr Richard Stallman President, Free Software Foundation (https://gnu.org, https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)