From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#42296: 27.0.91; Correct manual entry for 'concat' w.r.t. allocation [PATCH] Date: Thu, 9 Jul 2020 17:54:10 +0200 Message-ID: Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.14\)) Content-Type: multipart/mixed; boundary="Apple-Mail=_6887F1F4-77DB-4E43-8D8A-31D6757FF5BF" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40177"; mail-complaints-to="usenet@ciao.gmane.io" To: 42296@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 09 17:57:18 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1jtYvF-000AKE-9c for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Jul 2020 17:57:17 +0200 Original-Received: from localhost ([::1]:41542 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jtYvE-00006e-43 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Jul 2020 11:57:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53568) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jtYt4-0005YE-H8 for bug-gnu-emacs@gnu.org; Thu, 09 Jul 2020 11:55:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58187) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jtYt4-00072t-3M for bug-gnu-emacs@gnu.org; Thu, 09 Jul 2020 11:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jtYt3-0007II-Vc for bug-gnu-emacs@gnu.org; Thu, 09 Jul 2020 11:55:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 Jul 2020 15:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42296 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.159431006327984 (code B ref -1); Thu, 09 Jul 2020 15:55:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Jul 2020 15:54:23 +0000 Original-Received: from localhost ([127.0.0.1]:41500 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jtYsQ-0007HH-If for submit@debbugs.gnu.org; Thu, 09 Jul 2020 11:54:23 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:49308) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jtYsN-0007H8-TH for submit@debbugs.gnu.org; Thu, 09 Jul 2020 11:54:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53384) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jtYsN-0004hl-Eg for bug-gnu-emacs@gnu.org; Thu, 09 Jul 2020 11:54:19 -0400 Original-Received: from mail221c50.megamailservers.eu ([91.136.10.231]:49352 helo=mail33c50.megamailservers.eu) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jtYsK-0006va-5S for bug-gnu-emacs@gnu.org; Thu, 09 Jul 2020 11:54:19 -0400 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1594310052; bh=o+TGIfjiQEWNIaqyJozySWxPKU0exEhA7cpYQN/rQFQ=; h=From:Subject:Date:To:From; b=l+5wiuVL1TzIatwxQhPB+S5CMpzonu6N9CLLfeb8CblixIXY94sKHkBvPkStQvSXn 5+XO6657KUR6+Co7xXjwsIg42C04we+wNLQtgKR7LBXbtLauY8j5KI1HBu+0h0f/hh zlQnlQjzyH50E3Pd7EXpMdu5zE68pTALhxLZcQq4= Feedback-ID: mattiase@acm.or Original-Received: from [192.168.0.4] (c188-150-171-71.bredband.comhem.se [188.150.171.71]) (authenticated bits=0) by mail33c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 069FsAEr005440 for ; Thu, 9 Jul 2020 15:54:12 +0000 X-Mailer: Apple Mail (2.3445.104.14) X-CTCH-RefID: str=0001.0A782F24.5F073D1A.0053, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=eaJDgIMH c=1 sm=1 tr=0 a=SF+I6pRkHZhrawxbOkkvaA==:117 a=SF+I6pRkHZhrawxbOkkvaA==:17 a=M51BFTxLslgA:10 a=TJ_5Z41fBf7q6nEcwbcA:9 a=7bI3PQ_svf5etAHe:21 a=MBtCreXU4WKAqpxK:21 a=CjuIK1q_8ugA:10 a=FHrI4yowtIExUguvRmkA:9 a=B2y7HmGcmWMA:10 Received-SPF: softfail client-ip=91.136.10.231; envelope-from=mattiase@acm.org; helo=mail33c50.megamailservers.eu X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/09 11:54:13 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x (no timestamps) [generic] X-Spam_score_int: -11 X-Spam_score: -1.2 X-Spam_bar: - X-Spam_report: (-1.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665, URIBL_BLOCKED=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:182867 Archived-At: --Apple-Mail=_6887F1F4-77DB-4E43-8D8A-31D6757FF5BF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii 'concat' hasn't guaranteed the allocation of a new string since 1997 at = least (79d137ffe7d). Remove claims to the contrary from the manual. --Apple-Mail=_6887F1F4-77DB-4E43-8D8A-31D6757FF5BF Content-Disposition: attachment; filename=0001-Correct-concat-manual-entry.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="0001-Correct-concat-manual-entry.patch" Content-Transfer-Encoding: quoted-printable =46rom=203c6d4f9cefc7571df26e390b94f1c39da08a78e1=20Mon=20Sep=2017=20= 00:00:00=202001=0AFrom:=20=3D?UTF-8?q?Mattias=3D20Engdeg=3DC3=3DA5rd?=3D=20= =0ADate:=20Thu,=209=20Jul=202020=2017:32:13=20+0200=0A= Subject:=20[PATCH]=20Correct=20'concat'=20manual=20entry=0A=0A*=20= doc/lispref/strings.texi=20(Creating=20Strings):=20'concat'=20does=20not=0A= necessarily=20return=20a=20newly=20allocated=20string.=20=20This=20has=20= been=20the=20case=0Aat=20least=20since=201997=20(Emacs=2020.3).=0A---=0A=20= doc/lispref/strings.texi=20|=206=20+-----=0A=201=20file=20changed,=201=20= insertion(+),=205=20deletions(-)=0A=0Adiff=20--git=20= a/doc/lispref/strings.texi=20b/doc/lispref/strings.texi=0Aindex=20= 2ef88b9025..0aab326dc7=20100644=0A---=20a/doc/lispref/strings.texi=0A+++=20= b/doc/lispref/strings.texi=0A@@=20-248,7=20+248,7=20@@=20Creating=20= Strings=0A=20@defun=20concat=20&rest=20sequences=0A=20@cindex=20copying=20= strings=0A=20@cindex=20concatenating=20strings=0A-This=20function=20= returns=20a=20new=20string=20consisting=20of=20the=20characters=20in=20= the=0A+This=20function=20returns=20a=20string=20consisting=20of=20the=20= characters=20in=20the=0A=20arguments=20passed=20to=20it=20(along=20with=20= their=20text=20properties,=20if=20any).=20=20The=0A=20arguments=20may=20= be=20strings,=20lists=20of=20numbers,=20or=20vectors=20of=20numbers;=20= they=0A=20are=20not=20themselves=20changed.=20=20If=20@code{concat}=20= receives=20no=20arguments,=20it=0A@@=20-269,10=20+269,6=20@@=20Creating=20= Strings=0A=20@end=20example=0A=20=0A=20@noindent=0A-This=20function=20= always=20constructs=20a=20new=20string=20that=20is=20not=20@code{eq}=20= to=0A-any=20existing=20string,=20except=20when=20the=20result=20is=20the=20= empty=20string=20(to=0A-save=20space,=20Emacs=20makes=20only=20one=20= empty=20multibyte=20string).=0A-=0A=20For=20information=20about=20other=20= concatenation=20functions,=20see=20the=0A=20description=20of=20= @code{mapconcat}=20in=20@ref{Mapping=20Functions},=0A=20@code{vconcat}=20= in=20@ref{Vector=20Functions},=20and=20@code{append}=20in=20= @ref{Building=0A--=20=0A2.21.1=20(Apple=20Git-122.3)=0A=0A= --Apple-Mail=_6887F1F4-77DB-4E43-8D8A-31D6757FF5BF--