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#72176: 30.0.60; icomplete-vertical-mode failed to work with Error Date: Sat, 20 Jul 2024 09:05:16 +0300 Message-ID: <86wmlgegyr.fsf@gnu.org> References: <86cynag9db.fsf@gnu.org> <874j8mc1b7.fsf@gmail.com> <87le1ybwh3.fsf@gmail.com> <868qxyg1dg.fsf@gnu.org> <87h6clc0nu.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34556"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72176@debbugs.gnu.org, aqua0210@foxmail.com, visuweshm@gmail.com To: Robert Pluim , =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 20 08:09:33 2024 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 1sV3Hg-0008oe-R7 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 20 Jul 2024 08:09:33 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sV3HG-0002Kp-0c; Sat, 20 Jul 2024 02:09:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sV3HD-0002Kf-MA for bug-gnu-emacs@gnu.org; Sat, 20 Jul 2024 02:09:03 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sV3HC-0004yU-Ul for bug-gnu-emacs@gnu.org; Sat, 20 Jul 2024 02:09:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sV3HC-0002Y8-Gz for bug-gnu-emacs@gnu.org; Sat, 20 Jul 2024 02:09: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: Sat, 20 Jul 2024 06:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72176 X-GNU-PR-Package: emacs Original-Received: via spool by 72176-submit@debbugs.gnu.org id=B72176.17214556839735 (code B ref 72176); Sat, 20 Jul 2024 06:09:02 +0000 Original-Received: (at 72176) by debbugs.gnu.org; 20 Jul 2024 06:08:03 +0000 Original-Received: from localhost ([127.0.0.1]:51581 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sV3GF-0002Wx-0e for submit@debbugs.gnu.org; Sat, 20 Jul 2024 02:08:03 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:45488) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sV3GC-0002WQ-0k for 72176@debbugs.gnu.org; Sat, 20 Jul 2024 02:08:01 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sV3Dx-0004cy-LM; Sat, 20 Jul 2024 02:05:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=Q0dGNhhw7IDO0JzQ6fU+J8pdK8b9nt/CmuBhQwTBFQg=; b=QaX0Oy33kIxNeK5AoBhd zVVVsG8vu8zvEGk6D0x8R1Af5d6hOuvQ7nkxT+HtwSR1YsMF+70jJWNynGlogFgqXjlhh/RL27ZYn 6h06a8ywoeo2umBvuu9n1odDaQjC7RCSFreji5/u6L3CbHCpoTr/fl+X1AMWNgm9ETEUQbRehAadR OQzsm8MDaLuThUidtLL9BgROSXNT6KgVzz5M5TWOmf+6iN1EsKJzZCrHtJsw93HImvKRxe5Xdops/ vL8RghBFiuExVDMqsDZcL3k7timLox775kqomfl3Zjcwl28qF8GldFDeAnZnlF5753EP15jh1kHFk lCru8/YE63lLaA==; In-Reply-To: <87h6clc0nu.fsf@gmail.com> (message from Robert Pluim on Fri, 19 Jul 2024 09:15:49 +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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:289009 Archived-At: > From: Robert Pluim > Cc: 72176@debbugs.gnu.org, aqua0210@foxmail.com, visuweshm@gmail.com > Date: Fri, 19 Jul 2024 09:15:49 +0200 > > >>>>> On Thu, 18 Jul 2024 18:34:35 +0300, Eli Zaretskii said: > > Eli> (I tested on GNU/Linux as well, and couldn't reproduce.) Why does it > Eli> happen to you and not to others? What conditions should happen and > Eli> how to modify the recipe to reproduce this? > > If I start emacs from "~", it doesnʼt happen, if I start it from eg > "~/repos/emacs-30" via "src/emacs -Q" then it does happen. Thanks. I've applied the trivial band-aid on emacs-30 to avoid the error in post-command-hook, but the real problem is not in the function that signals the error, it's in icomplete.el where it calls the lazy-highlight code. The evidence is that after the fix, the display shown in those cases that caused the error is not the expected one, unless you set icomplete-tidy-shadowed-file-names non-nil. It sounds like the problem happens specifically when the minibuffer text begins with a "~/" and there's another "~/" later in the minibuffer, the one the user types: the code probably doesn't expect that. Adding João, who I think wrote this code.