From unknown Sun Aug 17 22:08:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49321: 28.0.50; [PATCH] Add option icomplete-matches-format Resent-From: Gabriel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Jul 2021 19:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49321 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: 49321@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162516860414614 (code B ref -1); Thu, 01 Jul 2021 19:44:02 +0000 Received: (at submit) by debbugs.gnu.org; 1 Jul 2021 19:43:24 +0000 Received: from localhost ([127.0.0.1]:33727 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lz2ap-0003ne-Mz for submit@debbugs.gnu.org; Thu, 01 Jul 2021 15:43:23 -0400 Received: from lists.gnu.org ([209.51.188.17]:33926) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lz2ao-0003nW-1l for submit@debbugs.gnu.org; Thu, 01 Jul 2021 15:43:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58240) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lz2an-0003Wk-PM for bug-gnu-emacs@gnu.org; Thu, 01 Jul 2021 15:43:21 -0400 Received: from mail-dm6nam10olkn2049.outbound.protection.outlook.com ([40.92.41.49]:15936 helo=NAM10-DM6-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lz2al-0007dP-BY for bug-gnu-emacs@gnu.org; Thu, 01 Jul 2021 15:43:21 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GFhy4zLGw7MtyTzkak47Y0F8TsdVGUbmDQz5bQ1/Y5D3GYmALtvH7fnRQea5gt6nHL0/y9eATS52xqSyB7j5ngwhIhHoxR/XjMJ3c93h4r5LCmuWxH4ldbtExhQcA4/bS1T3GkmqfpRnjSgj0HMtZuhOaM47ymVIiSP41OuvIoioRCS5HDVikpn+yQJqvA48GOV0Ndc3AZ8bjw4KqrvIUUHaHmTnPwDkbJUJfNOXBZGHlLFK0xwr7LJxV0DhgSJmkUumfHTfztYElEhFL5z6zaB+8QilhqndrQ+HK4n3WqgLT1kwT8929CcES/Yi5xJMwV+0O5Rc0ceVivbdx0PPIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tmDSbCkLvTGb5ApUQdffVAS8bjhYV1j2nuHTE0eqmV0=; b=eAv93Xt5NeBVpRK6eOAhUwhzQTGiFdVbjv7SyMpNEib+2mRxa8mCTRsEJ3hufHs4dDFQP2WBPQIV/dKcGDgsderUaTqT4hKKgjHo3MBSbdaxlnnH8UP7mIjK6ALzvVQXMG6HmNh67qWBLXTkrSDmzy3b+z7dcRP05zWDOOanAHdL/vGJDp+R5pXtGfSVTQk98w0K0RZ829sHgvBuPqSIhZjMSdwu4M3unYOpSbm6Akr2L87Mh9wtvbAB8Flkpw8k89550tPojip8JVtQvzQhbrm1WUHi4Wwnfdcxdofu+EdDYLObQB+U6AsWE5Mp/hdgfW5BkwihZQunU8anf1BG9g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tmDSbCkLvTGb5ApUQdffVAS8bjhYV1j2nuHTE0eqmV0=; b=uFVc0cs1s9iEi0gLGtvovhJQVDFUCcePIfIhQN4UTqwF3TaGd+C6fRZdFtHqge8dPNYUUaB/aesi/ON4P2jWDxPSd/yJ5ZoW6cvuI0kYkj+SCSdHbotkbT8Ai5/kB3TWKTCQKcMHfq/F+/zerToVwzbJlFHaLKEC3h3pxGXirL1SGDD3ZsyNyqB3F207ttlECaEWkb+Nl3bD1Iu/U/YHpkIMQ6N95YP2wzJsp3Do/5kadEK7pB8lG7kleEaqf4DRF193cNqYhTZTihEF6IETb5PZA/K8C96WLQ5beH4V5p4Hc/VX6i7qk8doprGGV173VLfpQMAHsucg1OjV8hQNWg== Received: from DM6NAM10FT023.eop-nam10.prod.protection.outlook.com (2a01:111:e400:7e86::50) by DM6NAM10HT242.eop-nam10.prod.protection.outlook.com (2a01:111:e400:7e86::391) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.22; Thu, 1 Jul 2021 19:43:05 +0000 Received: from CH2PR01MB5879.prod.exchangelabs.com (2a01:111:e400:7e86::50) by DM6NAM10FT023.mail.protection.outlook.com (2a01:111:e400:7e86::254) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.22 via Frontend Transport; Thu, 1 Jul 2021 19:43:05 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:DD5573DAEE338871CF3F08EEFCF925FA45519E5FC251B08F1D4EF9FAB8E34CBE; UpperCasedChecksum:2EBF716FA094CCE3CB26A7FF5ED635CDC1346F3E5AD0FCF5E700D6A2589A4036; SizeAsReceived:7294; Count:43 Received: from CH2PR01MB5879.prod.exchangelabs.com ([fe80::5c64:1750:c3c7:c182]) by CH2PR01MB5879.prod.exchangelabs.com ([fe80::5c64:1750:c3c7:c182%2]) with mapi id 15.20.4264.027; Thu, 1 Jul 2021 19:43:05 +0000 From: Gabriel Date: Thu, 01 Jul 2021 16:39:45 -0300 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Content-Type: multipart/mixed; boundary="=-=-=" X-TMN: [pLNK5kHP5EBKEHGcSCSn2plSjQmNxObXVeYP6O9WaAEdsgPNcsXCOOjAQ1f3Uu7J] X-ClientProxiedBy: CPYP284CA0016.BRAP284.PROD.OUTLOOK.COM (2603:10d6:103:68::21) To CH2PR01MB5879.prod.exchangelabs.com (2603:10b6:610:3c::12) X-Microsoft-Original-Message-ID: <87fswxesce.fsf@hotmail.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from desktop (2804:431:c7f2:3723:2e97:3346:1d59:b110) by CPYP284CA0016.BRAP284.PROD.OUTLOOK.COM (2603:10d6:103:68::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.22 via Frontend Transport; Thu, 1 Jul 2021 19:43:05 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 43 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 167be389-e3b8-4554-0aed-08d93cc8721c X-MS-TrafficTypeDiagnostic: DM6NAM10HT242: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lrWn3jKWYguHXNIZIbDraulNvjnl9fA4FRyS106DcvgVsaXf6RfvpvGlpqq9M4H7HjAHk4NysLuKwqxAJA0Xh6YYazMQtYGLx/Zde2mKCefQl26z1W5nhIbx/jDqm4j94l/1zwKy3QxuvOOTyhSvTiF+gmHf3TemrxXfjS7G1QCpKRJJzZIwjzwdk55o9f9BzHVMb+oqx1oFcxx5F+4+CWYJPQjUM5819+wPs8/erwFZa+yrpfsFO6Ryq8Zv5LQsYKvM0C+3FGDMEWMu7GF3otKxbrXYKhg9zeBnqR9BK+H+wxTvVUajb3zl4UteHkw3alEcRVRRWQSQoo5T/vHMmzNBnd+GuZ9tyR/YbkbHtrV/SNcv/3QETwX1FrM5c38tQus6gyNSGtLyYPrH3v3RDb9KTqMXShxueMOJRMng6dIGJdGd1FVgGkjSG6++JJAf X-MS-Exchange-AntiSpam-MessageData: GVBcLamdxALmbsdUwRZXX8laDGYBzxJVeKNCgiZ3FY5j41edxwdd/d7Mi436Dw+mIfj+VlMl3ji/Oc1ExKQODoKK4wastbbP5lnI7r8IRdq+oeepcPy2UoMDSTg+an5dfkfqLkfDvkRMO2XmD81uBJpDGK8xVoJPbbr1dOXTfUgcq5sbbqX4YIoDWj19FVGQnQO8dbcKLJgyoTdHiz8EhQ== X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-Network-Message-Id: 167be389-e3b8-4554-0aed-08d93cc8721c X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jul 2021 19:43:05.8300 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: DM6NAM10FT023.eop-nam10.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6NAM10HT242 Received-SPF: pass client-ip=40.92.41.49; envelope-from=gabriel376@hotmail.com; helo=NAM10-DM6-obe.outbound.protection.outlook.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.6 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) --=-=-= Content-Type: text/plain This patch adds a new user option to lisp/icomplete.el called 'icomplete-matches-format', similar to 'lazy-count-prefix-format'. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Add-option-icomplete-matches-format.patch >From 47fbdb57abb38972f2b0929760e4043583ba16a8 Mon Sep 17 00:00:00 2001 From: Gabriel do Nascimento Ribeiro Date: Thu, 1 Jul 2021 16:29:24 -0300 Subject: [PATCH 1/1] Add option icomplete-matches-format * lisp/icomplete.el (icomplete-matches-format): New user option. --- lisp/icomplete.el | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/lisp/icomplete.el b/lisp/icomplete.el index 26698c43cf..67bae49b9e 100644 --- a/lisp/icomplete.el +++ b/lisp/icomplete.el @@ -97,6 +97,12 @@ icomplete-with-completion-tables :type '(choice (const :tag "All" t) (repeat function))) +(defcustom icomplete-matches-format "%s/%s " + "Format of the current/total number of matches for the prompt prefix." + :version "28.1" + :type '(choice (const :tag "No prefix" nil) + (string :tag "Prefix format string" "%s/%s "))) + (defface icomplete-first-match '((t :weight bold)) "Face used by Icomplete for highlighting first match." :version "24.4") @@ -696,12 +702,10 @@ icomplete-exhibit (overlay-put icomplete-overlay 'before-string (and icomplete-scroll - (let ((past (length icomplete--scrolled-past))) - (format - "%s/%s " - (1+ past) - (+ past - (safe-length completion-all-sorted-completions)))))) + (let* ((past (length icomplete--scrolled-past)) + (current (1+ past)) + (total (+ past (safe-length completion-all-sorted-completions)))) + (format (or icomplete-matches-format "") current total)))) (overlay-put icomplete-overlay 'after-string text)))))))) (defun icomplete--affixate (md prospects) -- 2.32.0 --=-=-=-- From unknown Sun Aug 17 22:08:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49321: 28.0.50; [PATCH] Add option icomplete-matches-format Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Jul 2021 14:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49321 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Gabriel Cc: 49321@debbugs.gnu.org, =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= , Dmitry Gutov Received: via spool by 49321-submit@debbugs.gnu.org id=B49321.16254075204637 (code B ref 49321); Sun, 04 Jul 2021 14:06:01 +0000 Received: (at 49321) by debbugs.gnu.org; 4 Jul 2021 14:05:20 +0000 Received: from localhost ([127.0.0.1]:42947 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m02kK-0001Cj-Id for submit@debbugs.gnu.org; Sun, 04 Jul 2021 10:05:20 -0400 Received: from quimby.gnus.org ([95.216.78.240]:47528) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m02kJ-0001CU-C5 for 49321@debbugs.gnu.org; Sun, 04 Jul 2021 10:05:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=S/BPUzsH7/ujD6qu/aUsvfnpSlxXZP2mSvAobofRZP4=; b=GrN73b/YMqveov3UpS3X5jDZf2 m4NcdmzbtuskccWZKdR/06+gWWSouxEkG5+WMUmew9IzUXub9LzCpmv5CIBt5mkklujEsOZ/7knuo 5ggbBk0MY8ac4ddu7vKMFIHg8NfAexS+7ZhhN8GWaYjMDH3Yy3M35T2JBsCPJiL+QICk=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m02kA-00011l-Eg; Sun, 04 Jul 2021 16:05:12 +0200 From: Lars Ingebrigtsen References: X-Now-Playing: Kissing the Pink's _Naked_: "Desert Song" Date: Sun, 04 Jul 2021 16:05:09 +0200 In-Reply-To: (Gabriel's message of "Thu, 01 Jul 2021 16:39:45 -0300") Message-ID: <87czry2mzu.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Gabriel writes: > This patch adds a new user option to lisp/icomplete.el called > 'icomplete-matches-format', similar to 'lazy-count-prefix-format'. I guess that sounds reasonable, but I really have no opinion here. So I've added Dmitry and =?UTF-8?Q?Jo=C3=A3o?= to the CCs -- perhaps they have? Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Gabriel writes: > This patch adds a new user option to lisp/icomplete.el called > 'icomplete-matches-format', similar to 'lazy-count-prefix-format'. I guess that sounds reasonable, but I really have no opinion here. So I've added Dmitry and Jo=C3=A3o to the CCs -- perhaps they have? --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Sun Aug 17 22:08:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49321: 28.0.50; [PATCH] Add option icomplete-matches-format Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Jul 2021 15:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49321 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Lars Ingebrigtsen Cc: Gabriel , 49321@debbugs.gnu.org, Dmitry Gutov Received: via spool by 49321-submit@debbugs.gnu.org id=B49321.162541083229563 (code B ref 49321); Sun, 04 Jul 2021 15:01:02 +0000 Received: (at 49321) by debbugs.gnu.org; 4 Jul 2021 15:00:32 +0000 Received: from localhost ([127.0.0.1]:43021 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m03bj-0007gS-RG for submit@debbugs.gnu.org; Sun, 04 Jul 2021 11:00:32 -0400 Received: from mail-pl1-f180.google.com ([209.85.214.180]:35758) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m03bf-0007XQ-IE for 49321@debbugs.gnu.org; Sun, 04 Jul 2021 11:00:30 -0400 Received: by mail-pl1-f180.google.com with SMTP id b5so8684334plg.2 for <49321@debbugs.gnu.org>; Sun, 04 Jul 2021 08:00:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=9n6a+PbwjLpn5V3127jBp72OJ7SFQvyzbPt71lPGy6M=; b=OC39xvjFJHPhUAbTnHde7PjbZDYN7SeKlCuLH39SRiQUIkRIh5msUFVZgPagu5/SIj CIY4DGPgUB7WgdkdMBIeuxZMWnxqN6vRlYyRQtlB3rTzU3p9HsGJK6wbtMD1BpMZexoV uIYDKB+9Exf1a411n9np4JVRvRqhp6pryXivktWfg2Uu1gE5XfN6yn3dSlmcHr5BXLPp iYacwnf8z4//VTt/XwjLJjEAGTRs2TX4mIHOIeY2FnRT0Gr758O+3P7u/d+yIIlQU8W4 HVBwRpZySQLlNV7zBmK+yKRVqNnpjYElguEzPiE3r8EZvQkF5NKF/eC6WH7E9YV8Appd I0Bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=9n6a+PbwjLpn5V3127jBp72OJ7SFQvyzbPt71lPGy6M=; b=ih0DM6mGAVB13RyeuPp6Yb9oQ9amgkbzRtlbgMVbr1UMMFAHqiOXCNUso4hw40xona l13k5ASlqTgNOw7XVrBujrDzHXSTiMLcWHF8wHR6u5L4cign2eZZLVQhEquVSJ5HQ1vH eA4pJBpTqHpMBGw5XtJZ7LDKB+rE0xD57h1+pH2VIOvsbonmrYLboUxGIvGT6g9CVJzm r6TJk+7qQxIquasHOXWG40IJgrndg9o3Zv9a56UYph/CMHIKC4tUvSrfSZotXoeo9uWP 3BVm3CR0t0ejwxX9tMCLO4gnVUoJZ0jpI8pHb2OmyJHcZcm8Shr0creCREx/j9uWslis qM9A== X-Gm-Message-State: AOAM531cvkULGR+4G4lLyMc1eP4s1TIFGG10q1dJ1p26oUkOINBhiTpa 7yuN9vj7KiMdnR0fzjlCdbh7iYBiLF8bICMkZLo= X-Google-Smtp-Source: ABdhPJwDe2QYfayzkDh1FXeQG7mgxih53NkzzrhyQiqozEzHgpZWtQvi0eHzz7kMGiu9vksSrXVE/MAHf7XPp+4t2Yo= X-Received: by 2002:a17:902:7b87:b029:128:345d:f596 with SMTP id w7-20020a1709027b87b0290128345df596mr8471363pll.36.1625410821679; Sun, 04 Jul 2021 08:00:21 -0700 (PDT) MIME-Version: 1.0 References: <87czry2mzu.fsf@gnus.org> In-Reply-To: <87czry2mzu.fsf@gnus.org> From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Date: Sun, 4 Jul 2021 16:00:10 +0100 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Thanks Lars, I think it'd be great to skip the `safe-length` and similar potentially costly calls if the user decides he doesn't want this info (which I suppose is icomplete-matches-format =3D nil) Jo=C3=A3o On Sun, Jul 4, 2021 at 3:05 PM Lars Ingebrigtsen wrote: > > Gabriel writes: > > > This patch adds a new user option to lisp/icomplete.el called > > 'icomplete-matches-format', similar to 'lazy-count-prefix-format'. > > I guess that sounds reasonable, but I really have no opinion here. So > I've added Dmitry and Jo=C3=A3o to the CCs -- perhaps they have? > > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no --=20 Jo=C3=A3o T=C3=A1vora From unknown Sun Aug 17 22:08:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49321: 28.0.50; [PATCH] Add option icomplete-matches-format Resent-From: Gabriel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Jul 2021 15:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49321 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: 49321@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16254130067509 (code B ref -1); Sun, 04 Jul 2021 15:37:01 +0000 Received: (at submit) by debbugs.gnu.org; 4 Jul 2021 15:36:46 +0000 Received: from localhost ([127.0.0.1]:43041 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m04An-0001x3-SF for submit@debbugs.gnu.org; Sun, 04 Jul 2021 11:36:46 -0400 Received: from lists.gnu.org ([209.51.188.17]:54772) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m04Al-0001wv-Er for submit@debbugs.gnu.org; Sun, 04 Jul 2021 11:36:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46072) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m04Al-0002NT-6x for bug-gnu-emacs@gnu.org; Sun, 04 Jul 2021 11:36:43 -0400 Received: from mail-dm6nam08olkn2057.outbound.protection.outlook.com ([40.92.45.57]:33622 helo=NAM04-DM6-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m04Aj-0007ni-5d for bug-gnu-emacs@gnu.org; Sun, 04 Jul 2021 11:36:42 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ky9yTl/mU/Qe1HIY4gZYbMLbYmjKAApgdKlPSU6xqHd2ju2ognei9Betl1xzWPQerKQs4HpVII8zeKhZSI4Pu9tCsxjm9NKgrVVgtSgsZL1I7yfh7GIWTWBjc+m7yRLoCx8mzG+XBRX+U19wxnMGu5rbLrD7ki0ByZK8t/+8Xn04u9Rx2vgANMpS0FNxRlXBQLwS0a1vRKf6xJ8EEW8Yi0xIY8AsGO5KKoLsFhUuN2wfXPFCoKGEL5xMgJUmpwMBV6wwBwpiXlnnJAwveCg6+qcCwAHefN3tr191jHtcxINSd2UTVQYJqbNKpJlbRaZ3wSsUgM5rPjU4K3PLHRDlvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6CEWNYMUU8RHtgrelWPuzcfTraVwDn4HiTDviE/+FNM=; b=YXDQNudrpF4XBsDDN6BL4S+Y7Pb2DxYWFLfZ8E6kdBwrTXjvBexi9n/D2QvapTN8t/Xzp57H8CW9adUyG+1QAA1wLCH11fUBna9s7sR4GafJLnIgPDcc0a/s6rm76t5yrjEvob8re1CM5xeH85wqSpuF+QHZ5n0xOmbMXQDUE17ksacoK03sECe0/BTPTASrwWkb8IQpGRzoLYvO2+lG7kW+htczuvQLSDSsh7xa8lqTEYigD+IqlgBY79crlY7vq0zGd2cTPFZZoI6x/IEi3Nh7vkOhkWeBjReYtAGAmF2mVoVO+ky0wXPXV82iCpOsalalukGuX/yUNSeD9w6rww== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6CEWNYMUU8RHtgrelWPuzcfTraVwDn4HiTDviE/+FNM=; b=fv6qbJ6XDtmGA7erp0rOHmWqVZk45rHV3LYW+V92xG3kxcRZsPHSslaStezMjExLfdGzUz2UFgi5J/PLXuOlUeTYge6n1gRavqgUC29lTr8fpbcrpWdW/YoovZKoHs8CFom4Rt+NOtRIg2vMSZlfi6khy9dQ+ITnyyVu7fwDoeSQLd6IinH8BSQo7Fj/nBx4iGAsTkc2BebnzEQaRPxxH7AeLnru9e0sLsmBw7GEK3RnDLRFKbKuyUyC80A9gPPzey06OPlmJd9xf032Oa2sWhpeZZArBtWUq4TJJxIq0jEyO4wc59j4w8zxXC8CR7xVLTFPDi6c4+ydLJnjEGu4wQ== Received: from BN8NAM04FT005.eop-NAM04.prod.protection.outlook.com (2a01:111:e400:7e85::4f) by BN8NAM04HT109.eop-NAM04.prod.protection.outlook.com (2a01:111:e400:7e85::302) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.22; Sun, 4 Jul 2021 15:36:39 +0000 Received: from CH2PR01MB5879.prod.exchangelabs.com (2a01:111:e400:7e85::45) by BN8NAM04FT005.mail.protection.outlook.com (2a01:111:e400:7e85::408) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.22 via Frontend Transport; Sun, 4 Jul 2021 15:36:39 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:02475FDE1AC0134FD63631A704E8994E5199C1C78B49588E0ADC40CFAC937B1B; UpperCasedChecksum:32A4EC4B7E4BF3F75F5550CBE0DC4DE5D29296E929C35F1343FFE48F74935AD3; SizeAsReceived:8803; Count:45 Received: from CH2PR01MB5879.prod.exchangelabs.com ([fe80::5c64:1750:c3c7:c182]) by CH2PR01MB5879.prod.exchangelabs.com ([fe80::5c64:1750:c3c7:c182%2]) with mapi id 15.20.4287.033; Sun, 4 Jul 2021 15:36:38 +0000 From: Gabriel References: <87czry2mzu.fsf@gnus.org> Date: Sun, 04 Jul 2021 12:33:26 -0300 In-Reply-To: ("=?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?="'s message of "Sun, 4 Jul 2021 16:00:10 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Content-Type: multipart/mixed; boundary="=-=-=" X-TMN: [fU5z9EkZ9zkGH94EMWVmq48cfPsw1fdAjQq4btwUACCMXtEV0nwFMqSnvGKwJn03] X-ClientProxiedBy: CP2P215CA0044.LAMP215.PROD.OUTLOOK.COM (2603:10d6:102:2::30) To CH2PR01MB5879.prod.exchangelabs.com (2603:10b6:610:3c::12) X-Microsoft-Original-Message-ID: <87lf6m5c1l.fsf@hotmail.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from desktop (2804:431:c7f2:3723:2e97:3346:1d59:b110) by CP2P215CA0044.LAMP215.PROD.OUTLOOK.COM (2603:10d6:102:2::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.21 via Frontend Transport; Sun, 4 Jul 2021 15:36:37 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 45 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: da2f6e13-91f7-41d5-0ed3-08d93f018365 X-MS-TrafficTypeDiagnostic: BN8NAM04HT109: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jfnwh1Up+HXBc9MYsb5GNsIFGiV0e4tIAnX9H4KoALPMJRfVJ7OgTjeGNmUe2H9ZpclgevwDNaP+gooNg8O/7LBGtFrILnp2S87BHVVgpFkWq14egOSw7gt+mGAwlGrd+B/WksC1CXZ81DkT8TOMwhLfd7y/ok0Qvfo2JPv0jU57CRqcYAZLLvw1VquF+ICFrYHsysJAf+SmqvVXaWjXGejKXzpi608lnqlcK0nDbif5S0qSlLf3QezI+KVWl00oGONwBM/y4zKhgGrpneXSxfO9ZzS5mhPOEt/Md+ASrCiadzcXliqMoidzYD3bZjvjSZHdLUvCv01dZeox+785v+9k8qhxLpGolFhgwn4vGVA3M7tHFwpr8Z5ULj2vEX9fez80BrfBNKRV+TIKVdMHyaj7AhRb57thhfmr8wHun8CBnVq7iEpSuIX1I/4PSEY5 X-MS-Exchange-AntiSpam-MessageData: GC1ArqqOoF/yL1IQU076J7t/gNo/q7BYazPVXPSPPp29qZMwuLpS23ykqY+RakimuKHYEENio+wSRnKbCm3u9o7E5Hfsj7ayw0f8XewKKqodkQG//8gwlGR+fl+/S2EAj1OFoFcp2Dmwz80TAozbcqcGIG3RBeyVO8HBqC/qzUPe3+t2bzLxjDcGUi0HVwao6vRDyCPBUiXZ3In9in53gw== X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-Network-Message-Id: da2f6e13-91f7-41d5-0ed3-08d93f018365 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2021 15:36:38.7367 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: BN8NAM04FT005.eop-NAM04.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8NAM04HT109 Received-SPF: pass client-ip=40.92.45.57; envelope-from=gabriel376@hotmail.com; helo=NAM04-DM6-obe.outbound.protection.outlook.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.1 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Jo=C3=A3o T=C3=A1vora writes: > Thanks Lars, > > I think it'd be great to skip the `safe-length` and similar potentially > costly calls if the user decides he doesn't want this info (which > I suppose is icomplete-matches-format =3D nil) > > Jo=C3=A3o > Hi Joao, Thanks for your inputs, makes a lot of sense to shortcut this piece of code in case the user option is nil. Here is an updated version of the patch: --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Add-option-icomplete-matches-format.patch >From d1e81cf0a31a2f5ac714c3cf6dc2cada527cb7a4 Mon Sep 17 00:00:00 2001 From: Gabriel do Nascimento Ribeiro Date: Sun, 4 Jul 2021 12:31:26 -0300 Subject: [PATCH 1/1] Add option icomplete-matches-format * lisp/icomplete.el (icomplete-matches-format): New user option. --- lisp/icomplete.el | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/lisp/icomplete.el b/lisp/icomplete.el index 576fced015..ce914c2f24 100644 --- a/lisp/icomplete.el +++ b/lisp/icomplete.el @@ -97,6 +97,12 @@ icomplete-with-completion-tables :type '(choice (const :tag "All" t) (repeat function))) +(defcustom icomplete-matches-format "%s/%s " + "Format of the current/total number of matches for the prompt prefix." + :version "28.1" + :type '(choice (const :tag "No prefix" nil) + (string :tag "Prefix format string" "%s/%s "))) + (defface icomplete-first-match '((t :weight bold)) "Face used by Icomplete for highlighting first match." :version "24.4") @@ -696,12 +702,11 @@ icomplete-exhibit (overlay-put icomplete-overlay 'before-string (and icomplete-scroll - (let ((past (length icomplete--scrolled-past))) - (format - "%s/%s " - (1+ past) - (+ past - (safe-length completion-all-sorted-completions)))))) + icomplete-matches-format + (let* ((past (length icomplete--scrolled-past)) + (current (1+ past)) + (total (+ past (safe-length completion-all-sorted-completions)))) + (format icomplete-matches-format current total)))) (overlay-put icomplete-overlay 'after-string text)))))))) (defun icomplete--affixate (md prospects) -- 2.32.0 --=-=-=-- From unknown Sun Aug 17 22:08:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49321: 28.0.50; [PATCH] Add option icomplete-matches-format Resent-From: Gabriel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Jul 2021 15:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49321 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: 49321@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16254139448921 (code B ref -1); Sun, 04 Jul 2021 15:53:01 +0000 Received: (at submit) by debbugs.gnu.org; 4 Jul 2021 15:52:24 +0000 Received: from localhost ([127.0.0.1]:43046 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m04Pw-0002Jp-Cg for submit@debbugs.gnu.org; Sun, 04 Jul 2021 11:52:24 -0400 Received: from lists.gnu.org ([209.51.188.17]:33198) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m04Pt-0002Jf-0c for submit@debbugs.gnu.org; Sun, 04 Jul 2021 11:52:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47902) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m04Ps-0007P6-Ny for bug-gnu-emacs@gnu.org; Sun, 04 Jul 2021 11:52:20 -0400 Received: from mail-bn8nam11olkn2026.outbound.protection.outlook.com ([40.92.20.26]:10049 helo=NAM11-BN8-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m04Pq-0000Wn-S7 for bug-gnu-emacs@gnu.org; Sun, 04 Jul 2021 11:52:20 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bnKrcGLPqCH5wsDwpnFZJWOrB7ptXio7b5ws7h0B2mIQ2fsIlYnYwwz2DT76wQ5fdauqfs0kPuAzsEjwkAwl1j9L3NgS+r41xeigDNIW+zIJgXwYeCdHvfD1qa4AYf0k5gUxRY5CsN3xmK5a5FpJyMo8F/tNsv5xqulF9QcEinOI5dzdZGRCMG9SYUjjbBYkrYBAyM+2c45TczcSvlhXKKCkW94gs2QfdBmOmNLByuNG5Uwh0UIWoBP6H3bf3tCIse/Idfzl+8bQ0eU1nnvuwQmNRa2tlKery1Zj7N7fTEan4w44VHwKKcLmEW7sHEn1r2QBCYIIII+8dogSBg8UBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZYJkM5j/xyO3GcwCIV2skDpgIyweKy+oundrhyL8Qkk=; b=O6peU07bE/v+1d37LQplX44Ec7kBe3XeMAZWDy5v9rcSpqVM2wewfC3KfMrktAB/GUAPxxUllchAszmAAkm7AghLqS2TiZlPtqsD/zNgrr1t2EcdysmkdcXeDEXTq2z2zw1ytzHg8AbeUWQeWiaQQYFK3LRrZUC4pDKgFlt8+qc6CYlFhXnuJLKNczs5TCNkhHTvB+k++HtXszXYZ1rBH/A5Omlh9sHoFqp6hGIxNGWp5ZI6yHTLG4aPmsUxJuF/HFJu7b/aXxA8ysitf4PUE55FoHVCD9JCWw9eBfRUFiXw6DrTboHmN3Ks6eSfwJPdDiXSxU/GddEuS4qukNHATg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZYJkM5j/xyO3GcwCIV2skDpgIyweKy+oundrhyL8Qkk=; b=WudGgcSSe9mSJAyf7jYtbCLdOBuSLVD9qBtOqhWt9HgAWkf0j3edJz9hlyPG01LUcDPHLVnzr6PK8TfUncbbnr8nvlaqDCotYSKNEP0WfTcmkB2TqZY2Kq6cZk2JRAW/qcHFG76pDeDn1GafB4+qNo0r0iTB9DnCIbtbM71IvmFbLaIc1ZArtgm/+i3Z22Qw8ITaQMFDUqkIX+WLk3nPnmUPC+K9aJ7PR+S09HJpG7YjPlulBCh9CmCHL7Vdr70vfEThNRgedc/lMkYVLcUZDrg83BXDxX54pJW24rat8hkbXO+ToJ2LczP3Aw+w5P2n3Mn9SFlbl/S725Slkw1UBA== Received: from DM6NAM11FT048.eop-nam11.prod.protection.outlook.com (2a01:111:e400:fc4d::50) by DM6NAM11HT040.eop-nam11.prod.protection.outlook.com (2a01:111:e400:fc4d::201) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.22; Sun, 4 Jul 2021 15:52:17 +0000 Received: from CH2PR01MB5879.prod.exchangelabs.com (2a01:111:e400:fc4d::44) by DM6NAM11FT048.mail.protection.outlook.com (2a01:111:e400:fc4d::370) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.22 via Frontend Transport; Sun, 4 Jul 2021 15:52:17 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:53719EBA94418B184DCF3EEFDCBF92D9A5549209262C249E43D4453D9D33804D; UpperCasedChecksum:0C343DDC26FEEC025484EEB8570AD01A39B46CB85BC59B29FBF5D9598A85279A; SizeAsReceived:7711; Count:45 Received: from CH2PR01MB5879.prod.exchangelabs.com ([fe80::5c64:1750:c3c7:c182]) by CH2PR01MB5879.prod.exchangelabs.com ([fe80::5c64:1750:c3c7:c182%2]) with mapi id 15.20.4287.033; Sun, 4 Jul 2021 15:52:17 +0000 From: Gabriel References: <87czry2mzu.fsf@gnus.org> Date: Sun, 04 Jul 2021 12:49:05 -0300 In-Reply-To: (Gabriel's message of "Sun, 04 Jul 2021 12:33:26 -0300") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Content-Type: text/plain X-TMN: [zQ5s4w/COSx6DfdtI1kMkgecwhUM70XgGERHUNqz36+Vv5J/xJm8F6uVq80U/buW] X-ClientProxiedBy: CP2P15201CA0021.LAMP152.PROD.OUTLOOK.COM (2603:10d6:102:1a::31) To CH2PR01MB5879.prod.exchangelabs.com (2603:10b6:610:3c::12) X-Microsoft-Original-Message-ID: <878s2m5bbi.fsf@hotmail.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from desktop (2804:431:c7f2:3723:2e97:3346:1d59:b110) by CP2P15201CA0021.LAMP152.PROD.OUTLOOK.COM (2603:10d6:102:1a::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.21 via Frontend Transport; Sun, 4 Jul 2021 15:52:16 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 45 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 85ba2f21-0650-4c6b-c689-08d93f03b2fb X-MS-TrafficTypeDiagnostic: DM6NAM11HT040: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: RwHB9/K1yhYUXVMXiCk9o/PDEX0xyqbEpnUmH2cUHZjwEiQO05kRye9Qf88By9FGYEErvqtOmvVuuX9O2wSKsfgd4Fxk+W68Y1MSRMSZufg5d6qv4+CSjUZ1gTAkYaaEyND01AkTiUdavmsmE+2uqadW+HDC2340jk8Ei2m81g/NHLhVGAouNq/kNLMqLFiT4FXdL5aDCWu7BR58AzkL+UV9zMcIx/asBaCgQCowRi7J/xZ+GBoH3IAliair4oCuK4UatiGOHmPd1IgT1eKdd9ZDdbxcktTQYhFv5ibj25dFDo6dSEEU+3cjIZai1iahh00/t6NQMwBeNAtFsm+6NMp2I4nVUSjfa/CoqH0qgrah4Tn4ghqZcu2qcRFuL1N27W6Kn4FvXugtJ4MhsyGMcXaD+hmusJe4FPxWSLD0heSQTu9n8I120x4R7+HT71GFOaMcOZ187wEtaE/oRXldcEVlVKcWrOHj9Z3MBGS1kuI= X-MS-Exchange-AntiSpam-MessageData: TRWQuJrXHt3Xrt8L1OYZjlX7drXwlrueI9PF1Y/KaXmR5qSdaSZwyMO84wn3G89SFFLouyqZzEbWYucaXuxV8hJMT0b2K6RZiUoTM4cUu6T8c6oeTWjBiyIakfgnSDHWlbzLWkjlLly39QruZxHCAguvk1dyHEXiu01Cu8a74fC/Pp3svn6YgGc3+IzLl3MvK9ZllbKtBsrP2jzkkP8q+w== X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-Network-Message-Id: 85ba2f21-0650-4c6b-c689-08d93f03b2fb X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2021 15:52:17.2990 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT048.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6NAM11HT040 Received-SPF: pass client-ip=40.92.20.26; envelope-from=gabriel376@hotmail.com; helo=NAM11-BN8-obe.outbound.protection.outlook.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.1 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) By the way, there is an open thread in #emacs-devel [1] about making 'icomplete-scroll' into a defcustom, which makes sense to me. In this case, I am not sure if/how the matches prefix should work. The 'current value' may not make sense, since it's a rotating list, but the 'total value' continues to be an important info for the user. I will be glad to send new patches, if necessary. [1] https://lists.gnu.org/archive/html/emacs-devel/2021-06/msg00827.html Regards, Gabriel From unknown Sun Aug 17 22:08:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49321: 28.0.50; [PATCH] Add option icomplete-matches-format Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Jul 2021 16:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49321 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Gabriel Cc: 49321@debbugs.gnu.org Received: via spool by 49321-submit@debbugs.gnu.org id=B49321.16267106928199 (code B ref 49321); Mon, 19 Jul 2021 16:05:01 +0000 Received: (at 49321) by debbugs.gnu.org; 19 Jul 2021 16:04:52 +0000 Received: from localhost ([127.0.0.1]:60045 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5VlE-00028A-38 for submit@debbugs.gnu.org; Mon, 19 Jul 2021 12:04:52 -0400 Received: from quimby.gnus.org ([95.216.78.240]:46942) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5VlD-00027s-2z for 49321@debbugs.gnu.org; Mon, 19 Jul 2021 12:04:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=TWQRJdinZkJFjxeF5smcfMpDMlENKDZVBDV2C7IWs+E=; b=qP/E38k7B8u3tsIFYQo7S49Fr5 qkrM/535VlKO84d0F+B9Da4AnZB+rJhMR1NfSr3qQJ1bVAyyVwqvRnBCjCZHN6rwD4glBnKuezjq+ cHdMad/dnxI8bgcGo35R/euIopefEOqU6O8PU6LBk0SP1NP3nZ2hkd4eQUOb2zLU7bEs=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m5Vl4-0000AS-Hx; Mon, 19 Jul 2021 18:04:45 +0200 From: Lars Ingebrigtsen References: <87czry2mzu.fsf@gnus.org> X-Now-Playing: Chuck Person's _Chuck Person's Eccojams Vol. 1_: "B3" Date: Mon, 19 Jul 2021 18:04:42 +0200 In-Reply-To: (Gabriel's message of "Sun, 04 Jul 2021 12:33:26 -0300") Message-ID: <87pmvejnmt.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Gabriel writes: > Thanks for your inputs, makes a lot of sense to shortcut this piece of > code in case the user option is nil. Here is an updated version of the > patch: Thanks; applied to Emacs 28. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Gabriel writes: > Thanks for your inputs, makes a lot of sense to shortcut this piece of > code in case the user option is nil. Here is an updated version of the > patch: Thanks; applied to Emacs 28. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 19 12:04:59 2021 Received: (at control) by debbugs.gnu.org; 19 Jul 2021 16:04:59 +0000 Received: from localhost ([127.0.0.1]:60048 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5VlL-00028a-AX for submit@debbugs.gnu.org; Mon, 19 Jul 2021 12:04:59 -0400 Received: from quimby.gnus.org ([95.216.78.240]:46956) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5VlG-000280-L1 for control@debbugs.gnu.org; Mon, 19 Jul 2021 12:04:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=OSir3dgFxmk02vW90onP/kmBUb6GB+8meGls7wmLfGU=; b=tIEyhMyO1lrVC5H75y7nW3ylxn 325SmVwLcMrA9cmRT2CshWkswm9tcLedDVaJkiG19Kt5w25EJzaCfUwDs7kK+f6ifo0WISGikuxDm pa+BKefJSd1L98ivm+eAZwiqwIw6QRJVsY04tVzYWMFbQVm254np249813GHZqfGbbs8=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m5Vl9-0000Aa-44 for control@debbugs.gnu.org; Mon, 19 Jul 2021 18:04:49 +0200 Date: Mon, 19 Jul 2021 18:04:46 +0200 Message-Id: <87o8ayjnmp.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #49321 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 49321 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 49321 28.1 quit