From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#55205: 28.1.50; completion--replace illegally mutates completion candidates Date: Mon, 02 May 2022 05:23:10 +0300 Message-ID: <83czgw65bl.fsf@gnu.org> References: <4d1b8687-20f2-137a-2739-7bba28828991@daniel-mendler.de> <87wnf5mpt4.fsf@gnus.org> <835ymp78hl.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18777"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mail@daniel-mendler.de, larsi@gnus.org, monnier@iro.umontreal.ca, 55205@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 02 04:24:11 2022 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 1nlLjN-0004fC-ED for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 02 May 2022 04:24:09 +0200 Original-Received: from localhost ([::1]:45876 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nlLjM-0000db-0D for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 01 May 2022 22:24:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59022) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nlLjG-0000dT-F4 for bug-gnu-emacs@gnu.org; Sun, 01 May 2022 22:24:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40659) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nlLjG-0001qp-69 for bug-gnu-emacs@gnu.org; Sun, 01 May 2022 22:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nlLjG-0005Xd-2C for bug-gnu-emacs@gnu.org; Sun, 01 May 2022 22:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 May 2022 02:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55205 X-GNU-PR-Package: emacs Original-Received: via spool by 55205-submit@debbugs.gnu.org id=B55205.165145819221245 (code B ref 55205); Mon, 02 May 2022 02:24:02 +0000 Original-Received: (at 55205) by debbugs.gnu.org; 2 May 2022 02:23:12 +0000 Original-Received: from localhost ([127.0.0.1]:34556 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nlLiS-0005Wa-0P for submit@debbugs.gnu.org; Sun, 01 May 2022 22:23:12 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37446) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nlLiQ-0005WM-OA for 55205@debbugs.gnu.org; Sun, 01 May 2022 22:23:11 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:48676) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nlLiK-0001lZ-4R; Sun, 01 May 2022 22:23:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=sVzIjRVD5zvUKhTuBrM4ftwDwmAg2LvbmiGta8OJHAo=; b=c22D8LvzSywC EbbBYhIfW7/SSFEjBRO9Y0yXF7Nq5cIJRXNIDTKHO4bTPWUki0EQvMq3+kUuGtTYS8ICZQLyv0fUC V4fE1SX0+WLPeIYqX4kOZ1AIfN5xMbg3wDfqArWzu+j/W2YiopVCl1GYhUCMcciiBmXHdMzSD2Eoh 1MCDvoFZCj5Id8qQBkhj3PXEEUYI4H7g3RchWHmcmEVIEVcpNVuxNOZk2nYZZnPYI48KMriUKrYiU ivTsVT4AlVHSP7i5cCtnaz+/jIr9e/erm5GWwOE73DBDV97m2HVdR9WQhzjCG35nXJYWksxvRAa1O TpVS7voQ+c+PjXVghnBYUQ==; Original-Received: from [87.69.77.57] (port=3201 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nlLiJ-0002x7-An; Sun, 01 May 2022 22:23:03 -0400 In-Reply-To: (message from Dmitry Gutov on Sun, 1 May 2022 23:11:36 +0300) 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:231219 Archived-At: > Date: Sun, 1 May 2022 23:11:36 +0300 > Cc: mail@daniel-mendler.de, monnier@iro.umontreal.ca, 55205@debbugs.gnu.org > From: Dmitry Gutov > > On 01.05.2022 15:17, Eli Zaretskii wrote: > > I don't understand how can completion work in general without > > destructively modifying strings. Isn't that obvious? > > It shouldn't modify the strings "owner" by outside code. String that can > be referenced by other constants/functions/etc. > > The easiest way to avoid that is to copy the whole collection and then > modify the copied strings. But different approaches exist. Collection can include functions, and how do you copy that?