From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: string-to-multibyte and string-make-*byte (was: Towards a cleaner build) Date: Thu, 13 Jun 2019 11:54:59 -0400 Message-ID: References: <83zhn6zkgf.fsf@gnu.org> <83a7eo9nsh.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="100032"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 13 19:12:50 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hbTHN-000Prt-FN for ged-emacs-devel@m.gmane.org; Thu, 13 Jun 2019 19:12:49 +0200 Original-Received: from localhost ([::1]:42103 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbTHM-0007ac-EL for ged-emacs-devel@m.gmane.org; Thu, 13 Jun 2019 13:12:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39507) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbS4L-0000eJ-Tp for emacs-devel@gnu.org; Thu, 13 Jun 2019 11:55:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hbS4J-0003WZ-R4 for emacs-devel@gnu.org; Thu, 13 Jun 2019 11:55:17 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:22691) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hbS4G-0003Rr-6J for emacs-devel@gnu.org; Thu, 13 Jun 2019 11:55:13 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id D01B41009AF; Thu, 13 Jun 2019 11:55:08 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 3636910087A; Thu, 13 Jun 2019 11:55:07 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1560441307; bh=wCXOU9/zWMmvwn0T3GpAtqwEtCNXei+Z3IxUmXh+SR0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=H/MVHp9co0BwkL+gbLxX0gol65ZotDy4Tb3leTSwBZWsQnDzbm9pz2alUBhJ7SIyl 6+ip6RqStftIG9mcEne3obNWY+2rrnnLn0/quPuXHzg/tBn8ldDo6CmC64ITZVOWph t8x1ORbGLWaqqYFRHWC4v80YFikFZA5P7StFIdi9yH7ieAuJGkqajj7pELWLyXUrhi hkInKg42aOcgbFNG+8IK+dZsL0ztiqM47+NJJdZn61pNuqMhCdAvjFuK4vVh/JIlhe 5GwZtHAYyBzi8e2Sdzsp/v60g8d5vuDAPESO0aKOdUhVGW9jxQ9fV/br31bl4yiOaj tCLe72WMjNkbQ== Original-Received: from alfajor (cm-84.215.66.78.getinternet.no [84.215.66.78]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 5F424120BB3; Thu, 13 Jun 2019 11:55:06 -0400 (EDT) In-Reply-To: (Lars Ingebrigtsen's message of "Thu, 13 Jun 2019 14:09:19 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 132.204.25.50 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:237523 Archived-At: >>>> I think, just as for string-to-unibyte, we likely should un-obsolete >>>> string-to-multibyte. >>> Yes, I think so too -- they are sometimes what one needs to do... >> This has been mooted a few times in the past, too, and nobody has >> protested. So I'll go ahead and remove the obsoletions of those two >> functions (and note it in NEWS). > Oh, I missed that string-to-unibyte had already been unobsoleted, but > string-to-multibyte hadn't. So perhaps there were objections to that > part that I missed? No, I think when string-to-unibyte was de-obsoleted the other one just didn't come up, but I don't think there's a string objection. While I'm here, I'd suggest that we turn string-make-*byte into obsolete aliases for string-to-*byte (their specific behavior has always been heuristic in nature, and we changed `insert` to implicitly do string-to-*byte instead of string-make-*byte when needed, so it seems natural to do that). Stefan