From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.devel Subject: Re: bug#47391: 27.2; static list return from function and nconc Date: Thu, 25 Mar 2021 16:28:26 +0100 Message-ID: References: <87r1k32sir.fsf@hm.sivalik.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19309"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 47391@debbugs.gnu.org, Emacs developers To: Rajeev Narang Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Mar 25 16:29:36 2021 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 1lPRvS-0004tE-J3 for ged-emacs-devel@m.gmane-mx.org; Thu, 25 Mar 2021 16:29:34 +0100 Original-Received: from localhost ([::1]:59368 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lPRvR-0004Jm-Ky for ged-emacs-devel@m.gmane-mx.org; Thu, 25 Mar 2021 11:29:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41046) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lPRua-0003db-DA for emacs-devel@gnu.org; Thu, 25 Mar 2021 11:28:40 -0400 Original-Received: from mail-ot1-x32d.google.com ([2607:f8b0:4864:20::32d]:34629) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lPRuZ-0002Ry-20 for emacs-devel@gnu.org; Thu, 25 Mar 2021 11:28:40 -0400 Original-Received: by mail-ot1-x32d.google.com with SMTP id k14-20020a9d7dce0000b02901b866632f29so2321935otn.1 for ; Thu, 25 Mar 2021 08:28:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=04iAhbn11ttFnM/Nal2sMhWej4j73YlxGyQMCaVGnVA=; b=UkK2VGo9uqiHMHesBSKqPDdFwhXVwfK36aKbFUGQNpBOU7YsqSvh6W9QyJGPqfEkO2 fnd/51O1AEB8TMVOq/Us4ewz3rtovhVzBpnmjQgY2d3QZamsmQWszT2jwzHeZDaSe6Qp 0RHPGcWGuYGvkRLal3EnfzaUDsWn0Bx9kubD+k2iqaMLkJB8tcqsNqDeWS8wuC6Dpc2B Jah68H/4XfTVdSE9JHPmVtbvtBGT4ngf2DFoV49MQbc+0e21MKM1JzsToYdclDA2Pc0W W6Qa8UhP20nYfx2PpkNJr/drF8w2bfdvSR13LT6dR9sToy/ysW9qwSJ77fqZgBGX9Ffh w6bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=04iAhbn11ttFnM/Nal2sMhWej4j73YlxGyQMCaVGnVA=; b=XrVbpb04hUXXDgFnM4TUY3QRG3gSadITRsCd01Zx2uOKjsCnYECk4sU3BBwjcRUDMc Wbe9m0PLNYiM/y5sLo5/ftDUsnLA3abOzKx18YWJp+n6lZ3h8/vf7wdUM18SPt9I+oqi KFVhsiwmdL1sOJYxkb49JId4GF7uyP15uVStf4h6GmTxI92wLpSnSlm93ceR7o2/eOpO Sd+UKj4RfBQK37ScWcKU+6Tfak5V1fVNZG3SXRO4lO2s+qBfDUqTHCO4wYqQxPy9SpB7 SH5wEkx8L8J6gRQC9dwMNPF29sqc+wja85wx5JNJsXGxXShiOwYqb81W5HIysM7EMHB2 CBIw== X-Gm-Message-State: AOAM530a8OjB3UvVIlkWFCM8e2kSwf+f7WuRdKWtnjuOfQNQXy3yj5Ct 6PsUvgq2FG7lG3fl4iOMbEarM8O7pmuBegqRp/4OK0CbaAE= X-Google-Smtp-Source: ABdhPJzJz+xO87RMalyef0s2RKqPXIDa+/jVpG8xtVqC9NE3hdFFmJ9kvQnfoonDBECTBCsPp5kbRTpVHVoRbPf04qI= X-Received: by 2002:a05:6830:1046:: with SMTP id b6mr8029972otp.156.1616686117625; Thu, 25 Mar 2021 08:28:37 -0700 (PDT) In-Reply-To: <87r1k32sir.fsf@hm.sivalik.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::32d; envelope-from=p.stephani2@gmail.com; helo=mail-ot1-x32d.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, 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:267024 Archived-At: Am Do., 25. M=C3=A4rz 2021 um 16:23 Uhr schrieb Rajeev Narang via Bug reports for GNU Emacs, the Swiss army knife of text editors : > > (defun fn () '(1 2)) > > (nconc (fn) '(3)) > -> (1 2 3) This is undefined behavior/unsupported. The value that (fn) evaluates to is immutable, but nconc mutates it. > > (nconc (fn) '(3)) > -> (1 2 3 3) ? should be (1 2 3) > > If this is not a bug, then hfy-invisible, hfy-face-to-style-i may need to= be fixed. If they use this pattern, then they should indeed be fixed.