From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mauro Aranda Newsgroups: gmane.emacs.bugs Subject: bug#69501: 30.0.50; customize-mode error with substring completion style Date: Tue, 5 Mar 2024 09:36:01 -0300 Message-ID: <83151b52-44e8-44bb-be38-a38b709135d5@gmail.com> References: <86frx6m92b.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1431"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 69501@debbugs.gnu.org To: Eli Zaretskii , Eshel Yaron , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 05 13:38:18 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 1rhU3m-0000BE-JY for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 05 Mar 2024 13:38:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rhU36-0000Py-8D; Tue, 05 Mar 2024 07:37: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 1rhU32-0000OV-Q5 for bug-gnu-emacs@gnu.org; Tue, 05 Mar 2024 07:37:33 -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 1rhU32-0007l4-Ar for bug-gnu-emacs@gnu.org; Tue, 05 Mar 2024 07:37:32 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rhU3W-0002So-F9 for bug-gnu-emacs@gnu.org; Tue, 05 Mar 2024 07:38:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mauro Aranda Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 05 Mar 2024 12:38: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.17096422649446 (code B ref 69501); Tue, 05 Mar 2024 12:38:02 +0000 Original-Received: (at 69501) by debbugs.gnu.org; 5 Mar 2024 12:37:44 +0000 Original-Received: from localhost ([127.0.0.1]:46825 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rhU3E-0002SH-7D for submit@debbugs.gnu.org; Tue, 05 Mar 2024 07:37:44 -0500 Original-Received: from mail-pj1-f41.google.com ([209.85.216.41]:59899) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rhU3A-0002Ry-Uk for 69501@debbugs.gnu.org; Tue, 05 Mar 2024 07:37:43 -0500 Original-Received: by mail-pj1-f41.google.com with SMTP id 98e67ed59e1d1-29996cc6382so4185483a91.3 for <69501@debbugs.gnu.org>; Tue, 05 Mar 2024 04:37:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709642164; x=1710246964; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=i0RTFy3j6uJYlro2xEq+U+PdzCO3EN2vh/lmttRoqrA=; b=Hv8+0VX50Q+mOz2aFvhDhhkA7fpcl3qggXnSMh5U/dwn26DP2ZPHzZdptnSIpTebcj Vl7XAEPOp4mx6qt1OMoizh0gX6SrhzX9jmsp1QSw0CmO8hypIBrfOFdUtHzQgraXgQ7P XNG0T7bWOJOgxG5tOsaO62pjZhlZbxh0kR7G9hC4smhljJpiJ3FrrLf35JRc0PrftJ7G 1IeRPM47IF+YmGrTc6x1ZBkgCViwPIi7VbwqYwi1OOWO12upe1yCKPK2tU0LCjEXJgtH yYUDFurm+4KVnVpeg8IoOBn3Tv9WIMgbhchO66IydwQdbPIWEO8a3GT58/p5vAd5Dlya qTuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709642164; x=1710246964; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=i0RTFy3j6uJYlro2xEq+U+PdzCO3EN2vh/lmttRoqrA=; b=hgVOJwgrSD8COnU7JBiAQ0JIGgr5FAgWt4euj1D/SfZBxhAHGyFeYFMii5hXavsNuG ZOoFk+kMarbntuz31PoxaUJtLXfEAawzGnX6zNL6HnZFLB0sWUX75IGuaQoIb+1k1kXz M1X5PDUD4HKzlheDFOqWfCQKE4QOnJoWmMaWlL2Ryi0Oq1Jbo6WbXWZO4axsYMT4qliN lJ2qkMK8Olfk5kqEsCYNJqUkXJBZut3tIaFwFj2vgQhcWVKILH2Dncs/OhenybbVwA6C 8lN5i5f4UqjBZfRARhCv8XKuTUGvvBLqM4G+W+i3JvdLjc3hHcyuL2/7rJg6XGdoYd6D hpYw== X-Gm-Message-State: AOJu0YxG9KHMinlWcJncktepyCUWJa1BzpOYX/C6LyKZIK19Gx+WZjzr 91UP3+4+gTLxwr1wMYXsjQlZ4gGnKRco0ZxcbVn7CrFTuZyP/FBA X-Google-Smtp-Source: AGHT+IE05Ok3gl0V2tB/nGuLztxeuo3mvb+utc3gzmFtP3Xk95XLPAZCvdOqc6HWvK2nmYjyOKldRQ== X-Received: by 2002:a17:90a:bc06:b0:29b:2d64:68e5 with SMTP id w6-20020a17090abc0600b0029b2d6468e5mr9202149pjr.31.1709642164514; Tue, 05 Mar 2024 04:36:04 -0800 (PST) Original-Received: from [192.168.0.100] ([181.228.33.6]) by smtp.gmail.com with ESMTPSA id ph12-20020a17090b3bcc00b0029abb5e1d9bsm11642690pjb.47.2024.03.05.04.36.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Mar 2024 04:36:04 -0800 (PST) Content-Language: en-US In-Reply-To: <86frx6m92b.fsf@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:281046 Archived-At: On 4/3/24 10:16, Eli Zaretskii wrote: >> 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? I took a quick look, but I don't know how "relying on the predicate argument of completing-read" looks in practice.  It seems I have forgotten how to use the completion functions (if I ever knew how to use them at all).  Hopefully Stefan will be of more help.