From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eshel Yaron via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#69501: 30.0.50; customize-mode error with substring completion style Date: Sat, 02 Mar 2024 09:59:48 +0100 Message-ID: Reply-To: Eshel Yaron Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38405"; mail-complaints-to="usenet@ciao.gmane.io" To: 69501@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 02 10:00:53 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 1rgLEi-0009n7-R9 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 02 Mar 2024 10:00:52 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rgLES-00007p-HN; Sat, 02 Mar 2024 04:00:36 -0500 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 1rgLER-000079-3b for bug-gnu-emacs@gnu.org; Sat, 02 Mar 2024 04:00:35 -0500 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 1rgLEQ-0008EJ-Qr for bug-gnu-emacs@gnu.org; Sat, 02 Mar 2024 04:00:34 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rgLEs-0003xC-UB for bug-gnu-emacs@gnu.org; Sat, 02 Mar 2024 04:01:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eshel Yaron Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Mar 2024 09:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 69501 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.170937003215143 (code B ref -1); Sat, 02 Mar 2024 09:01:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Mar 2024 09:00:32 +0000 Original-Received: from localhost ([127.0.0.1]:37997 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rgLEI-0003vV-Af for submit@debbugs.gnu.org; Sat, 02 Mar 2024 04:00:30 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:35280) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rgLED-0003uR-Vf for submit@debbugs.gnu.org; Sat, 02 Mar 2024 04:00:24 -0500 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 1rgLDl-0008Qm-Cb for bug-gnu-emacs@gnu.org; Sat, 02 Mar 2024 03:59:53 -0500 Original-Received: from mail.eshelyaron.com ([107.175.124.16] helo=eshelyaron.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rgLDk-00083m-3h for bug-gnu-emacs@gnu.org; Sat, 02 Mar 2024 03:59:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eshelyaron.com; s=mail; t=1709369990; bh=YKgeKAPqo6r9Tvm+kcEIf2eoe1n4pF7b+JeqlOWDMd8=; h=From:To:Subject:Date:From; b=k1Yglc3iYdicI4w7qjXeXihEpFvFOlb/zIbWANJLhiJqO/7FUC8B6ViJs2jSLENQP PPu2TAkyQIpDaA4ImQFFmkZe06nt/2bw7e7VY7vyI5+8LNlNsn13YHfdEYw4AQAWqX /uQxonmdRvQAjR1cl9mOsFatjy5xuyqBcHm/Fpol0oGrRHio7QwAp9nOq0lWM6WvHl 6fUlzMFOteCUuGH6rLp/+/YHG3qsaH9WZIkNQcA/xYue3nOCAsFhiHMFMxHIEknOH4 qESN/2SXLe8n36GjPx01HGiD+lixDva2egaDTdgHOMdEYvgdphjOch0DfemxXzEQZ4 BSRcF528QJ3Sw== Received-SPF: pass client-ip=107.175.124.16; envelope-from=me@eshelyaron.com; helo=eshelyaron.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:280894 Archived-At: Hi, With both Emacs 29.2 and with the current master: 1. emacs -Q 2. (setq completion-styles '(substring)) 3. C-u M-x customize-mode TAB 4. "Assertion failed: (stringp suffix)" I not sure exactly why this error occurs, but IIUC it has to do with the fact that customize-mode let-binds completion-regexp-list. I suspect that the substring completion style doesn't handle that correctly. In general, let-binding completion-regexp-list around completing-read is not a great idea IMO because it affects recursive minibuffers as well. So perhaps the best solution is to avoid doing that in customize-mode, and to rely only on the predicate argument of completing-read instead? Best, Eshel