From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#64656: 29.0.91; Doc of minibuffer histories and completing-read - automatic addition of completions to DEFAULT list Date: Mon, 13 Nov 2023 18:14:12 +0000 Message-ID: References: <83y1jga0nr.fsf@gnu.org> <83o7kb9a40.fsf@gnu.org> <86bkg84de3.fsf@mail.linkov.net> <86jzrhlrub.fsf_-_@mail.linkov.net> <867cmw83zb.fsf@mail.linkov.net> <867cmvcpco.fsf@mail.linkov.net> <86a5rmanrn.fsf@mail.linkov.net> <83edgyzxcx.fsf@gnu.org> <86jzqqj1u2.fsf@mail.linkov.net> <838r76zpsw.fsf@gnu.org> <86v8aakq69.fsf@mail.linkov.net> <83sf5exbv2.fsf@gnu.org> <864jhrwfad.fsf@mail.linkov.net> <86il657qva.fsf@mail.linkov.net> 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="38833"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "64656@debbugs.gnu.org" <64656@debbugs.gnu.org>, Stefan Monnier To: Juri Linkov , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 13 19:15:41 2023 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 1r2bTI-0009rz-PT for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 13 Nov 2023 19:15:41 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r2bT1-0004c4-DP; Mon, 13 Nov 2023 13:15:23 -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 1r2bSz-0004bV-DB for bug-gnu-emacs@gnu.org; Mon, 13 Nov 2023 13:15:21 -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 1r2bSz-000057-4Z for bug-gnu-emacs@gnu.org; Mon, 13 Nov 2023 13:15:21 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r2bTe-0007GT-G7 for bug-gnu-emacs@gnu.org; Mon, 13 Nov 2023 13:16:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Nov 2023 18:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64656 X-GNU-PR-Package: emacs Original-Received: via spool by 64656-submit@debbugs.gnu.org id=B64656.169989930227815 (code B ref 64656); Mon, 13 Nov 2023 18:16:02 +0000 Original-Received: (at 64656) by debbugs.gnu.org; 13 Nov 2023 18:15:02 +0000 Original-Received: from localhost ([127.0.0.1]:59311 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r2bSf-0007EJ-9Q for submit@debbugs.gnu.org; Mon, 13 Nov 2023 13:15:01 -0500 Original-Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:27392) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r2bSc-0007E9-GL for 64656@debbugs.gnu.org; Mon, 13 Nov 2023 13:14:59 -0500 Original-Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3ADHi8It014677; Mon, 13 Nov 2023 18:14:16 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-2023-03-30; bh=b7nc8stFdrgm/rSFjReQt/NzB6fKcJ2cUqvSIYQm7GU=; b=Bv8sgVwCNsyZSDhMq8GOiIHwza9ykhgINBMHXxy8FDkq5oVl+KTNxP0Sof7Gw4ZheXK5 AS9SiNq7s3ch9Ka06g5EOVNJb3LG2o8waBPjgbfkgBNKbWe+Wc+Nnm04AUJSRdS1LIwT NledsPgs1WZc4stziPMauN5tpsL0qclQIFYLTZ4qgu42Yv6n84gy/CpdXmcMlDD5CMKT f1Oj2v5eNTb0s8D+YW1P55zPm49vzsLS9GQ+rCcMO3oAwGEFjWuyUQR7oAxaO18KSHFH 9qKUXXRogZ8UF9R0o/KmMx0UQJ9KVW1EftqoXKRbXmb1CObMeUbdLhEhIklUhpzGeVcR XQ== Original-Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3ua2qjkfet-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 13 Nov 2023 18:14:15 +0000 Original-Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 3ADHjxcS022701; Mon, 13 Nov 2023 18:14:14 GMT Original-Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2169.outbound.protection.outlook.com [104.47.58.169]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3uaxpx1maa-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 13 Nov 2023 18:14:14 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Qj6HEFCk9e1+NSj/a+C9/sccABd1P0OhmwUueFHVJjAJsQ9WnYrBj2O0+VnMN7Glf9QaOhk+ditDFX4iyJOyOLXG0XziEshm7sN3A3Zw9coIgBtipzCkSIC5GJu7fKpghLetk5pEh63vmWpY3yRfL9QM6Dkyuf2zxQryJI3ye+6GVzsjl66KAXOlCymlmRFOVN0MS3qmV+YNvPUm01lYOjvFQzj1tCHOMOh/xkzpr4EcoIhlnbL7UA1A+hIaiKKuWS/510e7yk6vLbw3L0fNmzlRwXtVF9MgIouuaxJruXEbXl4MWy5TTHbAILccWdR79RPzictBXx0DtOXmPGnoVQ== 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=b7nc8stFdrgm/rSFjReQt/NzB6fKcJ2cUqvSIYQm7GU=; b=YLNoiWPL9mmcyHAccJWS90Wm7Se2c9Zf8JeuHD293SE8iCLKLzlXhAOPy+bqiB1DqbA50Leufv5FwBDYhloegljKGdrp401VPskaWy8Fib/lvXTkICbuzSxOtAqbximwmF+VjhezDDb24uhnXoWDxwON27AbjJ1Jr/SwLLHs/NaSTgUqJMoECu6n3haLqEquQBjTjuxaEvHSJTYz3AfLS+YXEQ8dG8D6V0Xf4awiUcsw2pMGvrMEgyrUN4tD7uY3gu+2vckUcQEVerPCD/1NztUYfNtjX1rRl3terIpJ9uvoDGyEQhdC+em7HMu6QxL+Nf6tSljfZlX101OD5RG/Mg== 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=b7nc8stFdrgm/rSFjReQt/NzB6fKcJ2cUqvSIYQm7GU=; b=r/3B2YwdDiO0Zds5aTvu/Ht11j6e2xGrvKlJGDtTLNZEm49tFHb5eSS2DgfgctNyi7Vm7G4jJqJ6KuUtHt7kLRZprzLVqdinzpEcc5uSACFqQlLLIDgwXGqzuNIvGWo1RfA52hmVxv0MehUD7aQkTTtpgyhQW5vuWVbt/90cdq8= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by BY5PR10MB4372.namprd10.prod.outlook.com (2603:10b6:a03:207::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6977.31; Mon, 13 Nov 2023 18:14:12 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::3b4c:a669:c229:47b4]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::3b4c:a669:c229:47b4%6]) with mapi id 15.20.6977.029; Mon, 13 Nov 2023 18:14:12 +0000 Thread-Topic: [External] : Re: bug#64656: 29.0.91; Doc of minibuffer histories and completing-read - automatic addition of completions to DEFAULT list Thread-Index: AQHaFl0ylYmAvSsXL0ium0OZYugthQ== In-Reply-To: <86il657qva.fsf@mail.linkov.net> Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ0PR10MB5488:EE_|BY5PR10MB4372:EE_ x-ms-office365-filtering-correlation-id: ad99372a-5b23-41fd-e565-08dbe474567c x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: yhMIvdQwCxHeoOJiFeHFjvD+Ky3K2hx6XRO21YvPyVojlY1oeD1crKiioEWaF/+HoXBOpAqGwYVM7RuR0K0Ef70NEDqBr31NK1uEiKHfLLAuvsXLmeeieKsHA0dYPM34RHtp4FGCP7Gub0bQ4XyHfiRmsW1rZils09pFROOk4JEjzLlEBaEpTIlCEQ+nBra+Ot7+PW2aJBwLoNe2xyHwSxuh39j9s1pIC+8ydDJ/vI3OEiP2wfYES93buQTtHzNDo0r+Nephms23BKVM2d9TgDXH0rprcVD9IHs5X5VV7aGDpdVNcyY7ipf8SFJyO38Avi7tNYdMeYdWGUKN1QprV8tSm2lz2as/Gp5xAdsUxcli2/+HhkuY6QQk3fmovczQXI+N3Ffhdr+dg4xdGB1YBCrRdV/3XXtv0TU8SKYg/pcvtErZ0w+6wIFDTuVjt82/E+5+LGlXmqaFndLjFxlq2/GdP64J37fsooZvt79mrDEo3qlS19mjLXsT0SDUJ5j0a5rAaXj1GbyKjq0F1OUMRLRGyNwJUtXxZPz3hMuHsNvnx6iyxA6ydOjp/yfcqqliINPa28UCAjnfK7aQ4nXaAHE10EXulkTaXd1DUlyf2I9ziae5CeoCwrEQyysPp1qQ 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:(13230031)(376002)(366004)(396003)(346002)(39860400002)(136003)(230922051799003)(451199024)(186009)(1800799009)(64100799003)(38070700009)(2906002)(44832011)(52536014)(71200400001)(5660300002)(86362001)(41300700001)(33656002)(26005)(110136005)(66556008)(54906003)(9686003)(55016003)(66946007)(76116006)(66476007)(316002)(66446008)(38100700002)(83380400001)(64756008)(478600001)(122000001)(7696005)(6506007)(8676002)(4326008)(8936002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: G4BfZVXgS0Ug2+LDpyOgorvdQp7my0/DH5+tYwlNHHbOQvY6VakCW+Ok9sxmBLS0taD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BhwuuXcT/83uUHGSzWrlpHvch9S6wWuwXteMiBwes7TsKzVJ9+ddcBJ9+ZHc341qMddcpexN671D1YDBK8ogrt2aHlGT0pyAgE9ubzogEaoZ6ezuTLvESHcz3soXOWSBgSTEBdeqQBr8WCNRHEq4kWdgiuKGvF3WhAYlkW29GQyS9jf91WYlXAQ9D0pscjFo2R27QzpHN53aED6nCCJX3rpiANYQ1XUsQeKSJqXeOPXe9ARt7KcLwU0RcrzvsYcZscgOjhIKH+4vHM263xT9fXgpZjTZ6cqVD6eNo47RI2gksF89LuTrVnCEywQqKT3s7QWavRrPCGbsfDqRicdTThXgxdoGYIqvjHalQ/v4M34X3OB+RqSRc8TyTd2UZwCKMSGTVFhS540KayZFbaTy/8z7TgEw5n4Va1VbeohBFKP06kAgFS+toifM6ZfrY7fhm2ZaLPldQFhnKRUGT8AhHXyyNF3CvD2CH6HESF8DFOyulMNkmDTXc5hef6qzQ+qADgzr/+GLT7Ru0/aWbR51L mkiAA8YSyoEBTgsC5jpT9+TsTL5BNfv/ys6fhEUzFDqePMYA9rvAeipTMbl2itG9gDOmYB32EDP6Am9eEqbGngkykIsyR2ILdC 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: ad99372a-5b23-41fd-e565-08dbe474567c X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Nov 2023 18:14:12.0943 (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: bcYJNDdDfIfBefd+FNJf9ua+Yjle255z/C65HLn9OctOX1OonU92yDymRjreij9NdMrC55oqlleaUtgXlq7iHw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR10MB4372 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-13_09,2023-11-09_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 mlxscore=0 bulkscore=0 phishscore=0 suspectscore=0 mlxlogscore=999 spamscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311130150 X-Proofpoint-GUID: bMql8rvtne46CVdvxl06q0Rvyqr4cpfV X-Proofpoint-ORIG-GUID: bMql8rvtne46CVdvxl06q0Rvyqr4cpfV 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:274280 Archived-At: > > The problem reported by this bug report is that the order is random by > > `C-h v M-n M-n' because it uses obarray. No. That is NOT the problem reported. The problem reported is: 1. Initial completions are added to `M-n' automatically, instead of just by a user adding them explicitly to DEFAULTS. 2. Given that BUG, _IF_ it won't be fixed, then the doc should at least make users aware of it and mention how to work around it. Fixing #1 is preferable. Fixing #2 is minimal damage control, IF you won't fix #1. > > There is no such problem for > > `C-x C-f M-n M-n' because the list of default values is truncated > > explicitly in `read-file-name-default' by > > > > (minibuffer-with-setup-hook > > (lambda () > > (setq-local minibuffer-default-add-function > > ... > > > > So maybe to use the same to truncate the list of default values > > for `C-h f', `C-h v', `C-h o'? >=20 > But alas, this won't work for e.g. `C-h w', `C-h S', > and other obarray completions. >=20 > So it's a lose-lose situation. The loss is the introduction of automatically cramming the completion domain ("initial completions") onto the `M-n' queue. Just let programmers themselves control what goes into `M-n', using DEFAULTS. IF anyone really wants to add the completion domain to `M-n' it's trivial to do that, by adding it to DEFAULTS. AFAIK, no one had ever done that, and no one requested the misfeature of adding the domain to `M-n' automatically. We should admit the mistake of introducing this forced polluting of `M-n' and revert that misfeature. Give users back complete control of `M-n' through DEFAULTS - that's what DEFAULTS is for, and its 100% sufficient and flexible for doing the job.