From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Spencer Baugh Newsgroups: gmane.emacs.bugs Subject: bug#72425: 29.2.50; substring (and other PCM styles) fails with candidates containing newlines Date: Fri, 02 Aug 2024 12:14:56 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20440"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Dmitry Gutov , Stefan Monnier To: 72425@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 02 18:16:21 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 1sZux3-000556-Lx for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Aug 2024 18:16:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sZuwY-0004S8-LS; Fri, 02 Aug 2024 12:15:50 -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 1sZuwT-0004RC-Dl for bug-gnu-emacs@gnu.org; Fri, 02 Aug 2024 12:15: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 1sZuwT-0003pp-2t for bug-gnu-emacs@gnu.org; Fri, 02 Aug 2024 12:15:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=mVOOgE74y679+9Mm/d4h+SfPHpRKDdlEHODryfKJnj4=; b=eXHHzZtxDBK/GVtn7sjjANNr0BUy/fZ9XENRJwdEeky/fv1zQXXLMDgabvBKQRRwdIv1TxLhG2KpEwzHXsAMh6txgVdf9jzzVY5jrxn8FWFVnNntTIGpNR9hzBAj4sgGdMsaYMam0lYiS9C1NQ+MmuxL7lKkh/nZZ2R7EQsSnFWXjskqSWUIq/FGUoGerPMFbRb3ySmgMEharGwox6odhni5mnjw3wy/A5AcVob/1hRIZRI1Jqg/65/WqJDXVxE2mINI3XXWko2qtdYrAuzCjLRwzz6D/RgDq/HQmpqe61dCkU7qUmRnpf5RhhM4HwYqGpJaw2IrmNniL9e4Ctj7Kw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sZuwk-00055a-CR for bug-gnu-emacs@gnu.org; Fri, 02 Aug 2024 12:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Spencer Baugh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Aug 2024 16:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 72425 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.172261532819509 (code B ref -1); Fri, 02 Aug 2024 16:16:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Aug 2024 16:15:28 +0000 Original-Received: from localhost ([127.0.0.1]:53687 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sZuwC-00054a-70 for submit@debbugs.gnu.org; Fri, 02 Aug 2024 12:15:28 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:54312) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sZuw7-00054Q-Tb for submit@debbugs.gnu.org; Fri, 02 Aug 2024 12:15:26 -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 1sZuvn-0004Nu-Lt for bug-gnu-emacs@gnu.org; Fri, 02 Aug 2024 12:15:04 -0400 Original-Received: from mxout5.mail.janestreet.com ([64.215.233.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sZuvk-000381-KN for bug-gnu-emacs@gnu.org; Fri, 02 Aug 2024 12:15:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=janestreet.com; s=waixah; t=1722615296; bh=mVOOgE74y679+9Mm/d4h+SfPHpRKDdlEHODryfKJnj4=; h=From:To:Cc:Subject:Date; b=zADMSY/ZoDzn6vJH7ZqD5dGqKvUG3yXXsf+B5iMFR6t+id7iCRcj6McXdj6as7I8a mbRdaC1R7GiwG5kKtNk9mUgptBdIy9Q4hltYbTgdtWVw9bTENokVTVHix2YxwUtAYi Hs1t9XoBqFMjvmgxhqmbrtHSh5I38fMUyUbXBbOdOMM08InFZveFVqRmk7YLFwHZwP hAYRru6oPN6EsJ7Xu8tUV+IK7bFysPFsyUmwNkF5Ncxv54YylljyIjmPmIu52UyqlP E9DSgD3cOncglqeUBq3vwKGbd57pX80aAZ/zYjesflZd9i+bqq+U3qMBvAUO08NSly K0HJN0J/M7HKg== Received-SPF: pass client-ip=64.215.233.18; envelope-from=sbaugh@janestreet.com; helo=mxout5.mail.janestreet.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, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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:289644 Archived-At: 1. emacs -Q 2. (let ((completion-styles '(substring))) (completing-read ":" '("foo1bar" "foo2bar") nil nil "bar")) 3. Press TAB 4. foo1bar and foo2bar are suggested as completion candidates, because they contain "bar" as a substring. 5. (let ((completion-styles '(substring))) (completing-read ":" '("foo1\nbar" "foo2\nbar") nil nil "bar")) 6. Press TAB 7. Observe "[No match]" is printed. This is due to a regex using "." when it should use a pattern which actually matches anything, such as "[^z-a]". A patch to fix will follow. In GNU Emacs 29.2.50 (build 9, x86_64-pc-linux-gnu, X toolkit, cairo version 1.15.12, Xaw scroll bars) of 2024-07-30 built on igm-qws-u22796a Repository revision: cd9604db959c439c5695cf79f6533b5cbd340851 Repository branch: emacs-29 Windowing system distributor 'The X.Org Foundation', version 11.0.12011000 System Description: Rocky Linux 8.10 (Green Obsidian) Configured using: 'configure --with-x-toolkit=lucid --without-gpm --without-gconf --without-selinux --without-imagemagick --with-modules --with-gif=no --with-cairo --with-rsvg --without-compress-install --with-native-compilation=aot --with-tree-sitter PKG_CONFIG_PATH=/usr/local/home/garnish/libtree-sitter/0.22.6-1/lib/pkgconfig/' Configured features: CAIRO DBUS FREETYPE GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER X11 XDBE XIM XINPUT2 XPM LUCID ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: ELisp/l