From unknown Sat Aug 16 18:18:37 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#52954 <52954@debbugs.gnu.org> To: bug#52954 <52954@debbugs.gnu.org> Subject: Status: Rename split-string to string-split Reply-To: bug#52954 <52954@debbugs.gnu.org> Date: Sun, 17 Aug 2025 01:18:37 +0000 retitle 52954 Rename split-string to string-split reassign 52954 emacs submitter 52954 Stefan Kangas severity 52954 wishlist tag 52954 wontfix thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 02 11:46:45 2022 Received: (at submit) by debbugs.gnu.org; 2 Jan 2022 16:46:45 +0000 Received: from localhost ([127.0.0.1]:33524 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n440K-0002Ph-Sr for submit@debbugs.gnu.org; Sun, 02 Jan 2022 11:46:45 -0500 Received: from lists.gnu.org ([209.51.188.17]:55630) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n440J-0002PZ-Gr for submit@debbugs.gnu.org; Sun, 02 Jan 2022 11:46:43 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34804) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n440H-0001p3-W7 for bug-gnu-emacs@gnu.org; Sun, 02 Jan 2022 11:46:43 -0500 Received: from mail-pj1-f43.google.com ([209.85.216.43]:37433) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n440G-000653-Bs for bug-gnu-emacs@gnu.org; Sun, 02 Jan 2022 11:46:41 -0500 Received: by mail-pj1-f43.google.com with SMTP id y16-20020a17090a6c9000b001b13ffaa625so35551602pjj.2 for ; Sun, 02 Jan 2022 08:46:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:mime-version:date:message-id:subject:to; bh=FeBKQg7gXJ5x1sPGFe/tUhl3YU/80Yrz/ZlPiin1K8k=; b=LjtmFgBsTPu0dGRGkAeE5+TjZsqTo5T9D++XNfIUzD7q2bXU6jL4ivwfab7p8XE/OA tc9EUXknJqR+LWWnfmchs28AOf5ybx+VLQLaQbplhKix+zxdHR3SJk7hsXUNZlSThQ7x 83G8H+Z493X5MC1WpMg6YmERT8SXMDz0g/kbY6mlhfF2uBlmapyGksQHcTAa4od+cd7H COhbXr/lOk2t0kSxFRb/CmOaH/xs+z22jfA/kYvTT96/gDH8JlRJ8eNwOCGWd2jgbf3x o3m/0hwZgEFs7oMiNbfKA0psTkdffrzkDxymSpv+q3kGXzSGsthdvYgNFoMalNY3HK33 OO1g== X-Gm-Message-State: AOAM531YaDckD83A2lgX+s6ePe92vqB2t3PWLDR7IDkuUOnE7ZlI+C6o EIKs/dPsyk7DX74tHrbdrKY0W7KFKiTyRxroCq/ltKir X-Google-Smtp-Source: ABdhPJwnxu4cs+VcVDGsNmu49eTz3GpQz+GOCm6oqbiDrz3DyHn5SNx34gh+sIQ+ARaXYG/BShOHze780H0GBpcLgk0= X-Received: by 2002:a17:902:ab97:b0:149:8662:1736 with SMTP id f23-20020a170902ab9700b0014986621736mr27932418plr.174.1641141997830; Sun, 02 Jan 2022 08:46:37 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 2 Jan 2022 11:46:37 -0500 From: Stefan Kangas MIME-Version: 1.0 Date: Sun, 2 Jan 2022 11:46:37 -0500 Message-ID: Subject: Rename split-string to string-split To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=209.85.216.43; envelope-from=stefankangas@gmail.com; helo=mail-pj1-f43.google.com X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.8 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.8 (-) Severity: wishlist The function `split-string' does not follow use the `string-' prefix that we use for many other string functions. How about renaming it and introducing an alias for the old name? IOW, basically the below and the necessary documentation fixes and so on: diff --git a/lisp/subr.el b/lisp/subr.el index 11105c4aa6..a9bd406b63 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -4890,7 +4890,7 @@ split-string-default-separators ;; defaulted, OMIT-NULLS should be treated as t. Simplifying the logical ;; expression leads to the equivalent implementation that if SEPARATORS ;; is defaulted, OMIT-NULLS is treated as t. -(defun split-string (string &optional separators omit-nulls trim) +(defun string-split (string &optional separators omit-nulls trim) "Split STRING into substrings bounded by matches for SEPARATORS. The beginning and end of STRING, and each match for SEPARATORS, are @@ -4969,6 +4969,7 @@ split-string (funcall push-one) (nreverse list))) +(defalias 'split-string #'string-split) ; renamed in 29.1 (defun combine-and-quote-strings (strings &optional separator) "Concatenate the STRINGS, adding the SEPARATOR (default \" \"). From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 14 04:09:21 2022 Received: (at 52954) by debbugs.gnu.org; 14 Jan 2022 09:09:21 +0000 Received: from localhost ([127.0.0.1]:35589 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8IaH-0006YI-J8 for submit@debbugs.gnu.org; Fri, 14 Jan 2022 04:09:21 -0500 Received: from quimby.gnus.org ([95.216.78.240]:35430) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8IaF-0006Y0-AA for 52954@debbugs.gnu.org; Fri, 14 Jan 2022 04:09:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=70FeOG6n7TuODbk4Jh3os5G2oiW1aj92VC1usvr+I+U=; b=JHFsEtWDJKr78vp43dsuUFvbQz rqoZqTLxD+2Ios8KOgD+KhgPFSNAkYKc4/ES/pE91iERU+p2zJiIHgFrZdxOmwIw9ATQ9Z8ANO+mz 4tKnVeRnBYsB+TpMKgKjJt9UbOcrpNFXV2EgjrTO+sUvoacDVzNztWcQvLgmqmoN/G1o=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n8Ia6-0001zH-Tk; Fri, 14 Jan 2022 10:09:13 +0100 From: Lars Ingebrigtsen To: Stefan Kangas Subject: Re: bug#52954: Rename split-string to string-split References: X-Now-Playing: Noveller's _Arrow_: "Pre-fabled" Date: Fri, 14 Jan 2022 10:09:08 +0100 In-Reply-To: (Stefan Kangas's message of "Sun, 2 Jan 2022 11:46:37 -0500") Message-ID: <8735lqptu3.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Stefan Kangas writes: > The function `split-string' does not follow use the `string-' prefix > that we use for many other string functions. How about renaming it and > introducing an alias for the old name? Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52954 Cc: 52954@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Stefan Kangas writes: > The function `split-string' does not follow use the `string-' prefix > that we use for many other string functions. How about renaming it and > introducing an alias for the old name? We've got a whole bunch of functions that are `something-something-string', and I'd rather not rename them all. So I'm leaning towards "no" (because having several names for functions that are commonly used makes reading code more of a chore), and I'm therefore closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 14 04:09:29 2022 Received: (at control) by debbugs.gnu.org; 14 Jan 2022 09:09:29 +0000 Received: from localhost ([127.0.0.1]:35592 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8IaO-0006Yd-Pq for submit@debbugs.gnu.org; Fri, 14 Jan 2022 04:09:28 -0500 Received: from quimby.gnus.org ([95.216.78.240]:35444) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8IaN-0006YK-0e for control@debbugs.gnu.org; Fri, 14 Jan 2022 04:09:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=VadsVfsxScp8n/HLhgvUTU+CCXWD+k0gxOfBH68KEQo=; b=IV6sCU4rin2uhsBz9jvG7WuPA1 4m5IRol0Abn/V8VJhSv/D4T/4zPewWw45pV/k+6/V64fUdoQyNtzekxbcN0PggkW6zsDAhvSSY5c1 tWY/e1o1Wjqc2NOGWKxWAPn6ey5DODGYQct4q7Lt+8NkzRZQYG4ZKIflzcRrF8ZJ7Oe0=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n8IaF-00020H-0m for control@debbugs.gnu.org; Fri, 14 Jan 2022 10:09:21 +0100 Date: Fri, 14 Jan 2022 10:09:18 +0100 Message-Id: <871r1apttt.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #52954 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 52954 wontfix close 52954 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 52954 wontfix close 52954 quit From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 14 04:43:20 2022 Received: (at 52954) by debbugs.gnu.org; 14 Jan 2022 09:43:20 +0000 Received: from localhost ([127.0.0.1]:35666 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8J79-0001Mz-Ue for submit@debbugs.gnu.org; Fri, 14 Jan 2022 04:43:20 -0500 Received: from mail-pf1-f170.google.com ([209.85.210.170]:34704) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8J75-0001MS-0H for 52954@debbugs.gnu.org; Fri, 14 Jan 2022 04:43:15 -0500 Received: by mail-pf1-f170.google.com with SMTP id s15so2291770pfw.1 for <52954@debbugs.gnu.org>; Fri, 14 Jan 2022 01:43:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc; bh=KFto8/aFtJxle8NSjrdT32xqRoQc1RjuCw3R+szuevs=; b=q3hrvQHK43Ck4q2VplrHjKn4r0Dhw/ZEDhWb3Ab0T/7PEUNpyEa1xffl5oteQd249/ 7/YnfCemYn3WVrpVjZSw3i5GOdv4DUSinx/Ti333+dNlBQsC2Es2W1Fb/6XDPvnUbrPe gJdJ5MdVjXzX2YgKQK6lFulWR1R316vfDaelGy7vYFWWQpFzciDIK1Gd/DSOBv3nJCkG n6ZEl4Z1rov+PkCwzLNhDVBrR4Rl8YdIcKYqxebgurWiOVvERFlTn/Y+d0cRtF1ADXWV QG5ZXskCybBkDT6KghEYte5GgqFFBKMh02717tt0EmmtIBEldZ0Tn8YDPC5+pZE/n7QD 56fA== X-Gm-Message-State: AOAM530Tp7GYueTfztWPLNWjLlVBRscNdal+sQV1HiEnupU6BB9FkRh/ 7vgwd70b37OhuF42mCtOb0a7Eb/cjQUAwfJdUV0= X-Google-Smtp-Source: ABdhPJyG9kkI8m1WGwyRY3+fs7M+hmfc+u+GHanFUUkrvgR3+gpseb13lHUC/2pPLNsBPbBa6ddSXQyTgxr/3CVtY4Q= X-Received: by 2002:a63:3808:: with SMTP id f8mr7306592pga.435.1642153389394; Fri, 14 Jan 2022 01:43:09 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 14 Jan 2022 01:43:09 -0800 From: Stefan Kangas In-Reply-To: <8735lqptu3.fsf@gnus.org> References: <8735lqptu3.fsf@gnus.org> MIME-Version: 1.0 Date: Fri, 14 Jan 2022 01:43:09 -0800 Message-ID: Subject: Re: bug#52954: Rename split-string to string-split To: Lars Ingebrigtsen Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 52954 Cc: 52954@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) Lars Ingebrigtsen writes: > We've got a whole bunch of functions that are > `something-something-string', and I'd rather not rename them all. So > I'm leaning towards "no" (because having several names for functions > that are commonly used makes reading code more of a chore), and I'm > therefore closing this bug report. Fair enough. From unknown Sat Aug 16 18:18:37 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 11 Feb 2022 12:24:11 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator