From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.devel Subject: Re: Why having string-chop-newline Date: Wed, 30 Dec 2020 03:56:48 -0800 Message-ID: References: <20201230092207.GB4367@tuxteam.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30344"; mail-complaints-to="usenet@ciao.gmane.io" To: tomas@tuxteam.de, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Dec 30 12:57:36 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kua6g-0007mP-Af for ged-emacs-devel@m.gmane-mx.org; Wed, 30 Dec 2020 12:57:34 +0100 Original-Received: from localhost ([::1]:52306 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kua6f-0001c2-D3 for ged-emacs-devel@m.gmane-mx.org; Wed, 30 Dec 2020 06:57:33 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50076) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kua62-0001Aa-Ra for emacs-devel@gnu.org; Wed, 30 Dec 2020 06:56:55 -0500 Original-Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]:35921) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kua5y-0001DO-S8 for emacs-devel@gnu.org; Wed, 30 Dec 2020 06:56:53 -0500 Original-Received: by mail-pl1-x62c.google.com with SMTP id j1so8594543pld.3 for ; Wed, 30 Dec 2020 03:56:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:in-reply-to:references:mime-version:date:message-id:subject:to; bh=fBjjQZZPvGZVRDE7zltqCvM1YgMjXiE67u95ekeeSnU=; b=ChJLWRJajJX6vGr9z3Coi+2CWcBfDEaa2mXZKB+hVQgDrbBzl7NPaFP+d3srFW+kAu wsmZ54aXdjLDlVrT9QZbe7vzYTU+t+Xc0TP6pWumITmUAYSHdoykjsCAF6JBspIyu5q1 3cnw7/LpFXfJu6fBgtVoGEels37ERT2mSS1tumIK42ZSI2nSdrVJF0XxJK6eENXRHV+P fv6QstACx6YE0t6BZB8scmxXz6W70lvKh00tfJ60+7WF4bYE7O/hC1FxxGMObTWOwzi9 dBa7Imv7tBkltFsyPcuMh0dw9NMutO3yU9uaIHDzLFu4P0oJt1kuKbn6OAHpo9KdYfgG U41g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to; bh=fBjjQZZPvGZVRDE7zltqCvM1YgMjXiE67u95ekeeSnU=; b=MjQHTapPYtNLgRLrdJrnzMtk3owLvbx5UfYQHFPxW7/ojPknO9ybOnE1ILJJcwnKJy nvUo7qSLQogrzi/P/l8OI74BD6G36f8PPNbBtFcbXggGit0Hci1hYknBanNK060JTioH +i+iBqacssAEd4bbRVL8SgLUI8xoXCQRnJOUa7nLBpYio7Xssv6qAINhAbBQ1b+xmZh5 xoS4+r+k4YEDdpt4NB3rryyQoJRZuuBUrE5HlE7Msjj3UuAvvWI0ssLlcUz8cWABcVdp 68DYtLYi4gdjaXY6Ttq5EIGGU4nkvpQXxrTOO7OaLJvd/dHJIFfrnCwTQ17TlZQfLRf7 KayQ== X-Gm-Message-State: AOAM531bSuHn1YyGoaUVQSUt/7qg+3g3N34DNXwWyh5Zh3tT7vJajSMB GgARYHcsjcL4iWqD6EBIJ2pKXZhdtWwndIR4kxYM+1uokkM= X-Google-Smtp-Source: ABdhPJwm2MfZHPkizE8zv+IEWb0wsMt7lxBGixbqzw182nR9dTwjvFPtvyftMqTQDxpa4h/womhY2CIqFSpLKo27xs0= X-Received: by 2002:a17:90b:100e:: with SMTP id gm14mr8357162pjb.179.1609329408959; Wed, 30 Dec 2020 03:56:48 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 30 Dec 2020 03:56:48 -0800 In-Reply-To: <20201230092207.GB4367@tuxteam.de> Received-SPF: pass client-ip=2607:f8b0:4864:20::62c; envelope-from=stefankangas@gmail.com; helo=mail-pl1-x62c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:262121 Archived-At: writes: > On Wed, Dec 30, 2020 at 12:06:39PM +0300, Evgeny Zajcev wrote: >> Why is `string-chop-newline' needed? > > FWIW, "my" Emacs has no function named like that. Perhaps you > should give us a hint towards where you found it, to help set > the context... See this commit on master: commit f329a3180ead740bb85e1edfc48ae360a56f7ffd Author: Lars Ingebrigtsen Date: Mon Dec 21 22:05:37 2020 +0100 Add string-chop-newline * doc/lispref/strings.texi (Creating Strings): Document it. * lisp/emacs-lisp/subr-x.el (string-chop-newline): Add new function.