From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Drew Adams <drew.adams@oracle.com>
Newsgroups: gmane.emacs.devel
Subject: RE: [External] : Re: Question about completion behavior
Date: Sat, 12 Mar 2022 20:25:46 +0000
Message-ID: <SJ0PR10MB5488DD1144C44CBB20749FB4F30D9@SJ0PR10MB5488.namprd10.prod.outlook.com>
References: <jwv35jreshd.fsf-monnier+emacs@gnu.org> <831qzbg5j2.fsf@gnu.org>
 <20220309101159.4k3uma2ztvldlqiz@Ergus>
 <20220309114654.zq3h3u47btmt7q2u@Ergus> <83tuc7e066.fsf@gnu.org>
 <87y21ji6ht.fsf@yahoo.com> <jwvk0d3uj98.fsf-monnier+emacs@gnu.org>
 <87lexiiqnk.fsf@yahoo.com> <20220310102157.wmmn7bkkdbux7aug@Ergus>
 <8735jqhxdr.fsf@yahoo.com> <20220310140331.xa53sex6wywkr56l@Ergus>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="4113"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: Po Lu <luangruo@yahoo.com>, Eli Zaretskii <eliz@gnu.org>,
 Stefan Monnier <monnier@iro.umontreal.ca>
To: Ergus <spacibba@aol.com>, "emacs-devel@gnu.org" <emacs-devel@gnu.org>
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Mar 12 21:27:32 2022
Return-path: <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>
Envelope-to: ged-emacs-devel@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 <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>)
	id 1nT8Kp-0000qi-VU
	for ged-emacs-devel@m.gmane-mx.org; Sat, 12 Mar 2022 21:27:32 +0100
Original-Received: from localhost ([::1]:53264 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>)
	id 1nT8Ko-0007ek-H4
	for ged-emacs-devel@m.gmane-mx.org; Sat, 12 Mar 2022 15:27:30 -0500
Original-Received: from eggs.gnu.org ([209.51.188.92]:57502)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <drew.adams@oracle.com>)
 id 1nT8JJ-0006qZ-3z
 for emacs-devel@gnu.org; Sat, 12 Mar 2022 15:25:57 -0500
Original-Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:39928)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <drew.adams@oracle.com>)
 id 1nT8JG-00033D-JQ; Sat, 12 Mar 2022 15:25:56 -0500
Original-Received: from pps.filterd (m0246631.ppops.net [127.0.0.1])
 by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 22CDVYJB010652; 
 Sat, 12 Mar 2022 20:25:50 GMT
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com;
 h=from : to : cc :
 subject : date : message-id : references : in-reply-to : content-type :
 content-transfer-encoding : mime-version; s=corp-2021-07-09;
 bh=qukiO3hPiFlph1eV3ip4el70Zg3MRTbwhsXLi8AQfsc=;
 b=Arzp2rGbRlUoymUccp3EpUoXwn7++YRcfT5XRSNdjMS2mrRdAuzH3v5aevj28ToesbCQ
 Snd6z72Fl8mso6U+vXDvfAFRD7mNPA205+aC00/8B8uH9avA+HGxbvtC3sXEaCEPRzx9
 TnuHWzQHYj+rXkUscN50/T7wM80WiM9cg6tVJ0T5lYYAI7a0Iy2g6QxgTN2vf8FJx9nO
 Mv5jLVdsd7HkJfZK4CqrLsQMIFnFEzD4JgiMFXDgs/jvxz8B8mB1ZqkG3sQzU0cQB3mx
 F0gnBFFlGm8YELtkWQOKb5i2szUtRFSQSP8aMSEIsEsv1V0ZZ3W2+ZBbbSxFk+AUqCoS dg== 
Original-Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79])
 by mx0b-00069f02.pphosted.com with ESMTP id 3erja28vp4-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Sat, 12 Mar 2022 20:25:49 +0000
Original-Received: from pps.filterd (userp3020.oracle.com [127.0.0.1])
 by userp3020.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 22CKPmam090761;
 Sat, 12 Mar 2022 20:25:48 GMT
Original-Received: from nam12-bn8-obe.outbound.protection.outlook.com
 (mail-bn8nam12lp2169.outbound.protection.outlook.com [104.47.55.169])
 by userp3020.oracle.com with ESMTP id 3ermyg4n66-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Sat, 12 Mar 2022 20:25:48 +0000
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=EdeyyPkLl2C91aBZLRWCOrYtgFVdLThiPjqpOiIxhcdtT1LFGastYyjU4vJYeenIiYISs4mHM2/d/qqFTJnztfum2GaQmdKbRdloN/zryRIraVx0Tksrp6hee2d6s03td8d1RG6Vc1bOUiDabRBfOQxDjSNS4C9fA3xAoQ1PbIrqW56Rx7uDdhRRNxnFtu3gLoSn9mpGv72IKmUpgCy3gFsf9ronQNM4RjH2t7xNMsOhZ8+i7qz5YYR+kVgUIKpr5tdMRa73WY/ED/Z9JlsurfkMWKKlpbaiYSY9Ij/cRRbRVA5ROnUGts9AhqQhu3yv9XZnAGEbcdvIqoJcp1iSIQ==
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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
 bh=qukiO3hPiFlph1eV3ip4el70Zg3MRTbwhsXLi8AQfsc=;
 b=kLkyisgsiRlVs2Igak+kMX+AjULb2xJsxVp0EMAPbJQoIux2Iqgp7HDnf/TBxppy6HegN0iymPJOSnSm9q6T193E0l7AWWvpi+pipkqYTeEGILki8hkXwx7hmKH0IervHE5sD/1l38aEbJS0gUHeINggYWRYitmPxyZk4tboZYs0zMTz5pfLsHhtn5HHuMomLjAEXpei8uA0fJ1jkbwCbedLbszsUi7g+xXMkyaVS9ILkGMGhkqz56MMS25WB3rXvnvEdDIuJHunle4X0+CFkVdDi5RZsQEo+X/5VhVQnRjSIt6DdPqegDK5DlgLStdlCCshBNGcJtqutwEb7eDabQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
 smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com;
 dkim=pass header.d=oracle.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=qukiO3hPiFlph1eV3ip4el70Zg3MRTbwhsXLi8AQfsc=;
 b=jU3Nkj424MZl3ggGNDE6+U5EFvnOlODwePOrRwe4ALrDWbGtaluoqVhiGA+eAhcn1dQjcvQwEQULs4myX5HFcvYsGc01ItUqds04VS9WxNkGBc5jUp4rRTl91vH6KS4Zx2UR21ujBOUmZSwbH3rugD6Oqb/BaRphYmAjl2wVf50=
Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19)
 by CO1PR10MB4689.namprd10.prod.outlook.com (2603:10b6:303:98::19)
 with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5061.22; Sat, 12 Mar
 2022 20:25:46 +0000
Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com
 ([fe80::ec69:8077:89b0:4379]) by SJ0PR10MB5488.namprd10.prod.outlook.com
 ([fe80::ec69:8077:89b0:4379%6]) with mapi id 15.20.5061.026; Sat, 12 Mar 2022
 20:25:46 +0000
Thread-Topic: [External] : Re: Question about completion behavior
Thread-Index: AQHYNIfIm7Aj3OShXkyuohYC8bvPP6y8KZJg
In-Reply-To: <20220310140331.xa53sex6wywkr56l@Ergus>
Accept-Language: en-US
Content-Language: en-US
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 24254540-d862-461b-6d03-08da04667d74
x-ms-traffictypediagnostic: CO1PR10MB4689:EE_
x-microsoft-antispam-prvs: <CO1PR10MB4689A16A406C0510D4D150E4F30D9@CO1PR10MB4689.namprd10.prod.outlook.com>
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: c+0LtDLAGt9HtusqkiJvZ1wPTDqpiQQ0INAqrwY6i7Ixej0BDtN6AC328xRhHCdpn9xXo9NlPOc9PmGGQYY2B+c9lvu+MdWc0k3pahknlzJBqpQcEKNXQNMmJR76G3DbzW6O9J23dAuBaY3e7bOanhm4x0LNV//y2YXMwIR1oBmFTsaaO97xqIejp0XKojgwZpjWzCy4sGbq1QUBDqttCNXrDi9OPm9Sjy7RYYB8gXdQB3d40NwvxjLS8PDlfFTYfzKtVvD7fqvo4jFqEDOQ4aYtGTJ1n1zg/G3zf1yeS0MAxpkXLIeashIxZSqEc0WIgX062kR9Ol97Hyx6BBPxHjbvpex7L8wxe7bjMyetpyClddDEW6AnSqsu+FJkArYG88UIUDGJm0x1CH/2TRIFEo403QbjIHWW9dGkjaLn8KbHtacxy6KplI6sevMbOlaJA3t7alVk1lM4CqC/QeLrtxf6JjEPXEmExGWkZ5QLBb6oTEK01ZCC6XpvCKGs1vt+Hz7QMSVB++f9LTke+qH66/vmDLxMidPpnZ6WCVAyUV/1vqJkCemiVzy8gQNm8Y5CpuPvWXLjGJ0QhyLjpye5Gub342RVWYUs/3aqPy1E7nNmkkcw9KdGc9LZSzyYa1zlw0Sc/7jgAyQaLVl6XkY7/Bav82HIo91XjewmDncJGhX/TT7b7JvnZkL5FoOzh+Urm2sioEjdyazRw4KavugASw2A+XICC9lVd3QERCUXTOfEtTgr3N5NMWuE9vo6F
 3rr6+CH1N50pgBaHtaTIzILRgBVHh+61ds4mhEXzmURTas=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
 IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE;
 SFS:(13230001)(366004)(71200400001)(55016003)(54906003)(38070700005)(110136005)(122000001)(38100700002)(86362001)(8936002)(52536014)(4326008)(64756008)(8676002)(66946007)(66556008)(66476007)(66446008)(966005)(76116006)(316002)(186003)(26005)(44832011)(83380400001)(6506007)(7696005)(508600001)(9686003)(5660300002)(33656002)(2906002);
 DIR:OUT; SFP:1101; 
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Cm0x4Ou6bQfUKIZ5A+kFgJXli7fxw8vjK3YxVc9p1pHlDN0Lh3yXX/tCC5vM?=
 =?us-ascii?Q?TI493W0PPmAFr8cI8qrrPsPrN810sEP9rJYAy4rt8L3J5QAFhCbIvnd//3WD?=
 =?us-ascii?Q?uTYe7dEhWtJbmTecTgfESs7iLNuDtyyERpFTwefpmCNyVfLg13HoS7fHNFTX?=
 =?us-ascii?Q?nMDoJX11W/TfSI+/gINQs08CTGNHyY0erNt4tEmObYLoQt1c6yf8qcE15MO6?=
 =?us-ascii?Q?vnL6mzHG5qu/Y2tg+PammA61iSn+gXRr7OzYc8oU2ex1SpZRmuBvDOX89JiU?=
 =?us-ascii?Q?utdgnqr4yWM/oyBp1r6UXKjlnnnTGuCCwJLjqXNwhR/yVIS2SBFzvLTetQu7?=
 =?us-ascii?Q?aOGhB2MWpta2L3aqzNt0NtckBS+P3WwaK3rm1TZU1efFsiio2v2IZLYgcnaK?=
 =?us-ascii?Q?SwxNGEA5T7Y9eTAoTWUNrOU3+jIj7xmQJj5iNkZmNyVovZaDVL1gg+MJVgQV?=
 =?us-ascii?Q?yqz7pQANCruwMQAGBw1jEdW91l5bcv0DULRaxYjR1SQzhfLpighpLAKbqhM6?=
 =?us-ascii?Q?HYx6SeJbiNucbjtWV78+JPCMWVPtrfTSFB1JTDbB6GOMv1SP2MQqQcanNriN?=
 =?us-ascii?Q?O2Ys2sjuiZMUTSYGQyt8hlEK5ReBtJq3bTD+8fTHOGkXrX0u+E7ShxlQhxBI?=
 =?us-ascii?Q?NE 
X-OriginatorOrg: oracle.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 24254540-d862-461b-6d03-08da04667d74
X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Mar 2022 20:25:46.3053 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: siWLpeS9QioeOnzFuXORo/jS7MLYHoYmVNiKn3qqQ08gQAfVhh6iomAHBP+ILFmhj85ICoj9cIoZYhqttd27qg==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR10MB4689
X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10284
 signatures=693139
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0
 mlxscore=0 spamscore=0
 mlxlogscore=999 adultscore=0 malwarescore=0 bulkscore=0 phishscore=0
 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000
 definitions=main-2203120123
X-Proofpoint-ORIG-GUID: 2RycV5_GjPNn42IK9FlTPcr0TNRbphEM
X-Proofpoint-GUID: 2RycV5_GjPNn42IK9FlTPcr0TNRbphEM
Received-SPF: pass client-ip=205.220.177.32;
 envelope-from=drew.adams@oracle.com; helo=mx0b-00069f02.pphosted.com
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 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_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001,
 SPF_HELO_NONE=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: emacs-devel@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Emacs development discussions." <emacs-devel.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-devel>,
 <mailto:emacs-devel-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/emacs-devel>
List-Post: <mailto:emacs-devel@gnu.org>
List-Help: <mailto:emacs-devel-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-devel>,
 <mailto:emacs-devel-request@gnu.org?subject=subscribe>
Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org
Original-Sender: "Emacs-devel"
 <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>
Xref: news.gmane.io gmane.emacs.devel:287053
Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/287053>

> configure the Initial line in the Completions buffer
> ... add a sort of counter there to indicate the
> total number of candidates

I assume you mean the current number of candidates,
i.e., the matches of your current minibuffer input.
(For empty input this is the number of candidates
in the matching domain, i.e., all-completions.)

A better place for such a count, IMO, as well as
for other info about the current completion state
(completion style/mode, sort order etc.), is the
_mode-line_ of the `*Completions* window.

That's what Icicles does.  (In Icicles you can
change things like completion style/mode, and
sort order on the fly, and their defaults can be
configured per command.)

E.g., `M-x forw TAB' might show you this in the
*Completions* mode-line:

 18 candidates, vanilla completion, sorting alphabetical (reversed)
 ^^^^^^^^^^^^^

(Plus other completion status info.)

You can limit the number of candidates displayed,
in which case, e.g., "142 candidates shown/3247",
meaning that you're shown 142 out of 3247 total.

And (by default) when cycling, the *Completions*
mode-line briefly shows you short help about the
current candidate (it then returns to showing the
current general completion status).

E.g. `M-x forw TAB', with candidate `forward-char'
current (which means highlighted in *Completions*
and present in the minibuffer), briefly shows the
first line of its doc string:

 Move point N characters forward (backward if N is negative)

And `C-x C-f' foo TAB', might show this briefly
for the current file-name candidate:

 Bytes: 10083, Saved: 1/14/2022 12:52:46 PM, Access: 3/12/2022 11:05:27 AM,=
 Perm: -rw-rw-rw-

More info about what's shown:

https://www.emacswiki.org/emacs/Icicles_-_Completions_Display#CompletionsMo=
deLine