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#71419: 30.0.50; Completion does not always highlight the "common part" corresponding to suffix Date: Sun, 09 Jun 2024 09:52:56 -0400 Message-ID: References: <96abea7d-3e18-4a81-8b6c-79dd0b496420@gutov.dev> 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="6713"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 71419@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 09 15:53:55 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 1sGIza-0001W2-9w for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 09 Jun 2024 15:53:54 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sGIzV-000848-KG; Sun, 09 Jun 2024 09:53:49 -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 1sGIzS-00081E-Hf for bug-gnu-emacs@gnu.org; Sun, 09 Jun 2024 09:53:46 -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 1sGIzS-00031f-80 for bug-gnu-emacs@gnu.org; Sun, 09 Jun 2024 09:53:46 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sGIzi-0005wv-JA for bug-gnu-emacs@gnu.org; Sun, 09 Jun 2024 09:54:02 -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, 09 Jun 2024 13:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71419 X-GNU-PR-Package: emacs Original-Received: via spool by 71419-submit@debbugs.gnu.org id=B71419.171794120722750 (code B ref 71419); Sun, 09 Jun 2024 13:54:02 +0000 Original-Received: (at 71419) by debbugs.gnu.org; 9 Jun 2024 13:53:27 +0000 Original-Received: from localhost ([127.0.0.1]:38443 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sGIz8-0005us-Ll for submit@debbugs.gnu.org; Sun, 09 Jun 2024 09:53:26 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:12085) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sGIz7-0005ud-ED for 71419@debbugs.gnu.org; Sun, 09 Jun 2024 09:53:26 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id A87CE802B3; Sun, 9 Jun 2024 09:53:02 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1717941177; bh=lk1Q5gZhhOKTul8mb/iH0D2tgT5Tl5DElo6K+pYjwa0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=VVUsanQEofYduDTOzv5beW3Kwx8s6s1S2vNUziJ8kSB1mHfjwMHw+FvLXUi0IQohC dn3fAriGOObwMiK4IofOH51/sYbnWUg2VAFRp8tiHucV6CJzc192PNSL9BaUZf6diy LeU9Hmz2yd64p+jAAy9Ht0Rr5cWdZEEaqrU5YdLxJysqFH/B2yScPSOgDLZ8cmP1Io ijn7fjp4nvAb2LzZ8+gGcGBzbCZTplE6iN62L3XNgEi+px+0mh3TBTHP95h3PjeZl1 pA9SCObFN7Zp07hMPpsu+SpOM2Vz83i8BHpNjdues510Kr5KD7T2upDpSlq10+6L8P s4jJ1nSQ7mW0Q== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 612ED80240; Sun, 9 Jun 2024 09:52:57 -0400 (EDT) Original-Received: from pastel (unknown [24.140.236.196]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 33FD31201DA; Sun, 9 Jun 2024 09:52:57 -0400 (EDT) In-Reply-To: <96abea7d-3e18-4a81-8b6c-79dd0b496420@gutov.dev> (Dmitry Gutov's message of "Sat, 8 Jun 2024 01:36:42 +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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:286942 Archived-At: > For example: > > 1. Type (fo|-function > 2. C-M-i > > You get 5 completions (the exact number is not important), where "fo" is > highlighted in all of them, but "function is not. Looks like a bug in the `basic` completion style: it filters things that match the glob pattern `fo*-function` yet it only highlights the prefix. > Also, highlighting is information. If it was more uniform, we could use > it to e.g. address the FIXME in completion-all-completions. I don't think it could be trusted to always provide the needed data (and even if it does, it would be sufficiently clunky to use that I'm not sure we'd want to rely on it). Stefan