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#69501: 30.0.50; customize-mode error with substring completion style Date: Mon, 04 Mar 2024 15:16:12 +0200 Message-ID: <86frx6m92b.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18008"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 69501@debbugs.gnu.org To: Eshel Yaron , Stefan Monnier , Mauro Aranda Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 04 14:16:51 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 1rh8BW-0004ZB-1a for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 04 Mar 2024 14:16:50 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rh8BJ-0000Cj-18; Mon, 04 Mar 2024 08:16:37 -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 1rh8BH-0000CV-35 for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2024 08:16: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 1rh8BE-0004M6-T4 for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2024 08:16:33 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rh8Bi-0002bv-Di for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2024 08:17:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Mar 2024 13:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69501 X-GNU-PR-Package: emacs Original-Received: via spool by 69501-submit@debbugs.gnu.org id=B69501.170955822110023 (code B ref 69501); Mon, 04 Mar 2024 13:17:02 +0000 Original-Received: (at 69501) by debbugs.gnu.org; 4 Mar 2024 13:17:01 +0000 Original-Received: from localhost ([127.0.0.1]:42538 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rh8Bg-0002bb-S8 for submit@debbugs.gnu.org; Mon, 04 Mar 2024 08:17:01 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39180) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rh8Bd-0002bN-3S for 69501@debbugs.gnu.org; Mon, 04 Mar 2024 08:16:59 -0500 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 1rh8B0-0004JV-CE; Mon, 04 Mar 2024 08:16:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=plgIpxoKkkL2j2TaOFL7n3sc8PDYYd5qUwGxUfV+6AY=; b=nnnO0jvWiQIS 3Tvw834zbjz2DxTy1ry/2DNQKpNPsDd/PeDywmSYTixjNAOp8ekyJzvl1LBj8upTpKWl5i5x35Y0R 17Hku4lw/rrwtbZiEVHSmxzZuVEyYa8y0H1RsqRoGBLqMaEnsr8p2ZU9Sgfo2A0cVQ0pu415GENtt /b3EnsaNZL30vwe4mB/fWs0dkuIdZr11CnwgEkb3lyJz5M5mWHdGEEOqGS/nRu8ILpvg9+f5D2ky3 1OSlEuksOUYKLIoFROjx4uIsOQOh2RqPaj7oqmx0I8aG3SWqc7U0V+jyzZvddi3W2J0WjnxUHAXo6 liBHW4hAxGGppyBVWoyMVw==; In-Reply-To: (bug-gnu-emacs@gnu.org) 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:281004 Archived-At: > Date: Sat, 02 Mar 2024 09:59:48 +0100 > From: Eshel Yaron via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > 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? Stefan and Mauro, any suggestions?