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: Sat, 08 Sep 2018 01:17:05 -0400 Message-ID: References: <88must56x4.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 1536383781 13460 195.159.176.226 (8 Sep 2018 05:16:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 8 Sep 2018 05:16:21 +0000 (UTC) Cc: eggert@cs.ucla.edu, monnier@IRO.UMontreal.CA, bojohan@gnu.org, emacs-devel@gnu.org To: "John Wiegley" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 08 07:16:16 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 1fyVbT-0003Ng-GW for ged-emacs-devel@m.gmane.org; Sat, 08 Sep 2018 07:16:15 +0200 Original-Received: from localhost ([::1]:41343 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fyVdZ-0004vw-V2 for ged-emacs-devel@m.gmane.org; Sat, 08 Sep 2018 01:18:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52740) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fyVcQ-0003OY-I9 for emacs-devel@gnu.org; Sat, 08 Sep 2018 01:17:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fyVcP-0000Or-H9 for emacs-devel@gnu.org; Sat, 08 Sep 2018 01:17:14 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42023) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fyVcH-0008Jf-Nl; Sat, 08 Sep 2018 01:17:05 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1fyVcH-0004mt-Da; Sat, 08 Sep 2018 01:17:05 -0400 In-Reply-To: (johnw@gnu.org) 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:229475 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. ]]] > PE> Cool! That means we can do Stefan's request simply by reverting Kenichi > PE> Handa's patch that introduced the ability to change the byte length of a > PE> string (commit 3c9de1afcde82a99137721436c822059cce79b5b dated 2000-07-21 > PE> 06:45:30 UTC), since that patch made the code explicitly disagree with the > PE> documentation. Though this leaves open the question of why Handa made that > PE> change in the first place. This case used to work in the past, before support for non-ASCII characters. Since it is part of the natural domain of aset, the failure to support it feels like a bug. It made sense to add support for that case, to make the function more complete. I guess the documentation was not updated. Normally I would say, let's update the manual now. Slower support is better than failing. The point about perhaps changing GC is significant. Perhaps that is a good reason to leave that case unsupported. -- Dr Richard Stallman President, Free Software Foundation (https://gnu.org, https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)