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: Sun, 01 May 2022 13:36:11 -0400 Message-ID: References: <4d1b8687-20f2-137a-2739-7bba28828991@daniel-mendler.de> <87wnf5mpt4.fsf@gnus.org> <87k0b5duzh.fsf@gnus.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="17645"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Daniel Mendler , 55205@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 01 19:37: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 1nlDVO-0004EJ-Ay for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 01 May 2022 19:37:10 +0200 Original-Received: from localhost ([::1]:52748 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nlDVM-0005ft-PM for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 01 May 2022 13:37:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33194) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nlDVG-0005fl-2D for bug-gnu-emacs@gnu.org; Sun, 01 May 2022 13:37:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40198) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nlDVF-0004Dj-PX for bug-gnu-emacs@gnu.org; Sun, 01 May 2022 13:37:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nlDVF-0000BJ-M6 for bug-gnu-emacs@gnu.org; Sun, 01 May 2022 13:37: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: Sun, 01 May 2022 17:37: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.1651426584649 (code B ref 55205); Sun, 01 May 2022 17:37:01 +0000 Original-Received: (at 55205) by debbugs.gnu.org; 1 May 2022 17:36:24 +0000 Original-Received: from localhost ([127.0.0.1]:34095 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nlDUd-0000AN-9U for submit@debbugs.gnu.org; Sun, 01 May 2022 13:36:23 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:42197) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nlDUb-00009z-HG for 55205@debbugs.gnu.org; Sun, 01 May 2022 13:36:22 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 86D7180699; Sun, 1 May 2022 13:36:15 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 4A38780539; Sun, 1 May 2022 13:36:14 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1651426574; bh=XQxzpQPTbxQ/nqN4vJRZ2NTEmVGTZfu6M/9OM9eki64=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Rix/SPzqKVMkajC9X96JfF9/TvS0+Bm0VIiAor1GA2+NucaHqzOrK8ZrpQb1mXGtS ZhCbAfCoVUR+iizfxbTidGVOK5qQfJnX+BBSJa3+JVoPm2aAqldSGpYjOCZnm8hQMX uu0X6pv5A/0BLzozwZ7mMlfXEUoUsNdF+ugEPRZrHiVkYokh1uL7SDIKn0l13f3yja GuCTqPOXsvCnMXeg94uRjfx4jF31NeJoQfi81P6ssUoX/cWh7WOib/qUK55fXfMIHC TViLAMd9Ceeo2l0RfqXt3gP4/rrVGoUShGbMRX+k+vQfkA7pWdbl3bMY2NrzNVlll5 Zdw01Tm4HYzJA== Original-Received: from pastel (unknown [45.72.221.51]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 1728F120744; Sun, 1 May 2022 13:36:14 -0400 (EDT) In-Reply-To: <87k0b5duzh.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 01 May 2022 19:26:58 +0200") 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:231175 Archived-At: Lars Ingebrigtsen [2022-05-01 19:26:58] wrote: > Stefan Monnier writes: >>> I don't remember why we're doing that, but I seem to vaguely recall that >>> there's a reason... Anybody? >> >> I'm pretty sure there's a reason, and I'm pretty sure this reason is >> "sloppiness". I blame the author of commit 1d00653d9e (and the author >> of commit 14486c44 might be considered as an accessory to the crime). > > Is there no way to let the text properties survive completion? Because > that's also come up more than a few times. Not sure what you mean by that. I suspect that the details depend a lot on where the completion string comes from. Already the current code's check for `minibuffer-allow-text-properties` seems too coarse since it is used even when the completion is inserted into a normal buffer. Stefan