From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#55205: 28.1.50; completion--replace illegally mutates completion candidates Date: Mon, 02 May 2022 12:01:18 -0400 Message-ID: References: <4d1b8687-20f2-137a-2739-7bba28828991@daniel-mendler.de> <87wnf5mpt4.fsf@gnus.org> <835ymp78hl.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18976"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: mail@daniel-mendler.de, Lars Ingebrigtsen , 55205@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 02 18:05:54 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 1nlYYb-0004hQ-Qv for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 02 May 2022 18:05:54 +0200 Original-Received: from localhost ([::1]:49168 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nlYYa-0000DT-K8 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 02 May 2022 12:05:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40786) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nlYUs-000491-6G for bug-gnu-emacs@gnu.org; Mon, 02 May 2022 12:02:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43819) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nlYUr-00066E-R1 for bug-gnu-emacs@gnu.org; Mon, 02 May 2022 12:02:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nlYUr-0007II-Ni for bug-gnu-emacs@gnu.org; Mon, 02 May 2022 12:02:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 May 2022 16:02:01 +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.165150728927982 (code B ref 55205); Mon, 02 May 2022 16:02:01 +0000 Original-Received: (at 55205) by debbugs.gnu.org; 2 May 2022 16:01:29 +0000 Original-Received: from localhost ([127.0.0.1]:37714 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nlYUL-0007HF-9t for submit@debbugs.gnu.org; Mon, 02 May 2022 12:01:29 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:54482) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nlYUJ-0007H0-Tg for 55205@debbugs.gnu.org; Mon, 02 May 2022 12:01:28 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 7067F10028F; Mon, 2 May 2022 12:01:22 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id D473F100121; Mon, 2 May 2022 12:01:20 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1651507280; bh=KDgezYdiVx9dPVziNpE3ru1irvclYkyOAeJD5WRvbWs=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=LzZLEpD9Sf1bpJZeC9i6SYO86+XMapS6CYJFSvuUcRsqFimcyrMiMC2HFVDT6vaHs g5+qd+FTxg9i3GIjLHOVawfxCGWX0G8QXnsjC5SPXONX7eROJRbTprv1upENRVJzqy 4Jtm30UY54UBXWU5y3GoNsP1JhtxuBtF5GWfp8rKjzlGKL5oat1teSK1B+OD3rusWC rnE3l7g0lK+gok+8nSayqicSIoaKLZjnKhM5ABaZ3rbdziXHR3grDljbEqeoH4qi00 +hqtIiju9GymYX55puFDtTxSSsD6HYHbiNsBYNkmyP7IblLN/gz40rH6odlM2Wima/ l5NFUtoVeaW7g== Original-Received: from pastel (unknown [45.72.221.51]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 7E35E1204BD; Mon, 2 May 2022 12:01:20 -0400 (EDT) In-Reply-To: <835ymp78hl.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 01 May 2022 15:17:10 +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:231262 Archived-At: Eli Zaretskii [2022-05-01 15:17:10] wrote: > I don't understand how can completion work in general without > destructively modifying strings. The completion API (i.e. between the UI code and the completion backend) is basically functional: the backend is a function that can operate without any side effects. The only thing that may occasionally need to be "modified" is the buffer that the user is editing (most often it's a minibuffer). Why would the completion UI ever need to modify any of the data that belongs to the completion backend? Or are you thinking of some other form of "modifiying"? Or other strings? Stefan