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#60527: 30.0.50; Typing SPC in a minibuffer with completion Date: Tue, 3 Jan 2023 20:14:57 +0000 Message-ID: References: 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="37639"; mail-complaints-to="usenet@ciao.gmane.io" To: Stefan Monnier , "60527@debbugs.gnu.org" <60527@debbugs.gnu.org> Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 03 21:16:22 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 1pCnht-0009aW-MN for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 03 Jan 2023 21:16:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pCnhg-00062z-8T; Tue, 03 Jan 2023 15:16:08 -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 1pCnha-00062c-TI for bug-gnu-emacs@gnu.org; Tue, 03 Jan 2023 15:16:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pCnha-0000Yn-DM for bug-gnu-emacs@gnu.org; Tue, 03 Jan 2023 15:16:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pCnhZ-0008Nm-Vn for bug-gnu-emacs@gnu.org; Tue, 03 Jan 2023 15:16:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 Jan 2023 20:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60527 X-GNU-PR-Package: emacs Original-Received: via spool by 60527-submit@debbugs.gnu.org id=B60527.167277690732152 (code B ref 60527); Tue, 03 Jan 2023 20:16:01 +0000 Original-Received: (at 60527) by debbugs.gnu.org; 3 Jan 2023 20:15:07 +0000 Original-Received: from localhost ([127.0.0.1]:46742 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pCngg-0008MW-Eu for submit@debbugs.gnu.org; Tue, 03 Jan 2023 15:15:06 -0500 Original-Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]:41908) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pCngc-0008MJ-UG for 60527@debbugs.gnu.org; Tue, 03 Jan 2023 15:15:05 -0500 Original-Received: from pps.filterd (m0246627.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 303JnLaZ020120; Tue, 3 Jan 2023 20:15:01 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2022-7-12; bh=muCl5sdh7FdkB94yWxeb9sXw7ecxd4FxZNXM+3ckqkQ=; b=gQnxgeUzf2hbnC4eemyBL9nbabZ31QwyN1Jeo51Gkf+xOGPWu/QuDHrqzB622g7wlHz0 qqC4vwnhlyIHP4XeACVcddKkp5Ofv/gbsN77sCcDlyrQ569975VpP92ERbHjn0icNOP0 TTq2dWaBW+sJgADJKFy9pIcqnAqXNk04wsLbnLamLsYkNEWqYHVKldsaaAa+aAtYw4ve +MTpGZvC+40ige6S4MV+XMbO2qOcODZeLSoUoLlYrJR7AQU3lXOHw4W1NtF6PxD2WtJ5 o4uOAXuOiTrJU5OSrzos7InlRipuD4OXD1/vihZdDd9UwP1Ga3Z0C2bzR3jSdvNCtzDw BQ== Original-Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3mtbp0w15u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 03 Jan 2023 20:15:01 +0000 Original-Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 303KDuXn005684; Tue, 3 Jan 2023 20:15:00 GMT Original-Received: from nam04-mw2-obe.outbound.protection.outlook.com (mail-mw2nam04lp2169.outbound.protection.outlook.com [104.47.73.169]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3mvu7gr0ec-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 03 Jan 2023 20:15:00 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hpX9065dYDc+Yq+4Wkf7SyKtZTxIgKY9K3duUTjmRw9Oqm9Lgg0zUhJTHbs8bdlHRqgkTNiKiIXG5wH58qYAyq0v3X74S31mab5NlXZqNOhEicJKa8YdnjUl/weOUNVylqH6qzjfXkntnXTxL44L9nXxoILsAySUthqV1U+FK5g3Oaq2GcB63QyHynLtVRExFHbP/YepL2Nly/fv0Ceajvg/ZLdDs5jdo5aEkfYJaQrDAhXiWAZL+bwWA6gZ5/4o7dPRBS5+i+9Sb6mmSNS9uSC7ZwccowVH3rO8edERPz6XRXMJ8053vw/MLTWzzKnOPh/eOGWjSN+dA58R+UyePQ== 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=muCl5sdh7FdkB94yWxeb9sXw7ecxd4FxZNXM+3ckqkQ=; b=jm4UzUqCWl2rYzEVYmsCcZkFTm2QwPgD0b79W2tPFgeaHR458I943Mm0FjMdNZgh5s04NQt41MLvYioPjE8Tuyta7UDs+Q1krmxxCD10tUM+PTJJqaQlBQtw0+Bw2BUPiFLuWPWpvcokp32b0tSzP7q3aCV3/Zk14OtfV2oKO00FN4F3QDDvqmSYPE2xF6uIGOcvuO6WpAxkngUU3wS4F9bqLvkDxt8DsMH732+zZOcbGS5j0RoQ3hLLLbhJMMUYoAgn7qih7XY7KVVgHk9d7tTyd/ctuseS9Jwfyx4n7UgbUZV6AFrqOvOdt1JkjXEv1gb88iCNWQPqccwzYudArQ== 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=muCl5sdh7FdkB94yWxeb9sXw7ecxd4FxZNXM+3ckqkQ=; b=ANa8KBvq/UneKb7yayUJ2aOZriBv19IHusAHAabhzJI9ruuc8wZBMv/V95DDDAusxyLmuHzkXl61rO+8d7cRt3sPJ7ndJQsTYJNxh4M65AmYiUrJAxXA0PRa4NIFeMhKsfMpaKy9u0yq+yNpoyXUpmZM2D0y8WXl5Q/W1j1EnH8= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by PH0PR10MB4518.namprd10.prod.outlook.com (2603:10b6:510:38::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.19; Tue, 3 Jan 2023 20:14:57 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::7c3c:e53d:5276:ef29]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::7c3c:e53d:5276:ef29%8]) with mapi id 15.20.5944.019; Tue, 3 Jan 2023 20:14:57 +0000 Thread-Topic: [External] : bug#60527: 30.0.50; Typing SPC in a minibuffer with completion Thread-Index: AQHZH6aBfXiGFkBydEyQxgPy5XBbza6NHiAA In-Reply-To: Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ0PR10MB5488:EE_|PH0PR10MB4518:EE_ x-ms-office365-filtering-correlation-id: 8790a3fd-a891-45c8-80ea-08daedc72f8f x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: LOHsMvGl/o2lwh3WItQkEGf1GSBqO7XKZ+nqz3WVPhAwVd2/qlBzs/nPpxS9VnM54vYrIuQfGu3+ynpTi/rcwXTlHl1MTScKDBXPyOVPX1YJJaQt1LKOhSXaDw1PrSnD4AWSqjqZyZCwE0lGiJxFek/gh/Go9gvyMusB7fg5tPejpLUDJOAAON4RCLojriLD5DeIFvdi0VCyYTptiRfMDu5b668aXedNjHkfA+O0rPOZVrMfxiYeefbJsqZxwSLh9M6r5Ma2IgajwoyG5rRXqB2KVsD7ZAKWAGbiSqJx4khEWSM8yZb+u/47589l0JCcjrNer2GEl2g03G0DZbDW1D98AOHiGmFqDFY9Zm44K/bOpMxu6vVi+Cvu7zPgfCK/fuHhhAtxiwTwtTVsmG0E/FSJ0VQFZhEMGnYYUlYQG7H4DNYIfJ6BXEYH7cU+XxOa+k1Y45jZpnc4FPbTjmFr3ZW25HwF2sYa4499g9IDQuNHpnwrhaC0LY3kNkJJB17YoxBbJdtfGUtursBs53/thWYYgzvenH9sZ3PYJtJfGKQOwrH4u7GXLEyYbGRYI4C5Fw3qwgVtoVnTqyTpmPdwp1D0HKV7Z9QwfTmi11BQVMZ/QeR6R+pYMsXizhRfBCokqKhsz9QqornqAhHnqB72CqEfN3LByy7ZWBnuuv4GXRbF+LW+SJKv9hEUaoAsIhKL0vnVXgjVgcnaTpIJJfvtr5Tc0RLFp/2c3lQHbZdkp1A= 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:(13230022)(376002)(366004)(396003)(39860400002)(346002)(136003)(451199015)(44832011)(83380400001)(2906002)(52536014)(8936002)(41300700001)(8676002)(66446008)(64756008)(66476007)(66946007)(76116006)(66556008)(38100700002)(122000001)(38070700005)(186003)(26005)(478600001)(55016003)(33656002)(71200400001)(9686003)(296002)(316002)(5660300002)(7696005)(6506007)(86362001)(110136005)(22166006); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: 5+gVRiyJdnrSbsKDFIjgvYO5Qnadx+Nff6k53aqdlvirtXoNLQvzqAb+PC0m0qFdt2iqX5+4+MhBsEonRRsR2uCn0QysXsAXv2wELCt1ghsm78Hxkm0kCbDsdTGSJVIt9nMm5pWgzvAa9iVIs0u+xdICNx2U/vipB5vMwIt8uKqhxsJhNW4F/r993uVl/yUlX++ZJSrTP6rnQTIEAzXncim9KrIqvnzqzgTE8Jl2TIN9a7nEh9YaAaUrdv2W5SJ0vr00H/3TaiFwBMxs7fXa69YiGgO2gpu9p+yhCvrvIyvQIcOerfN1ah8w6Hg3QIdP45ovLHYzhRvCY3zKdMsVOyxt+efZV2UEGH1TTagEmAUwc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kpgXflMC077UkfnjTNNlfXNlH1RobnhcdOBV2xhTZ9kMEcsjiSpOJ9Ul6MsX+dtHvtCIgDWKRBJFT6yXJzmBRcyN9F2FNuJKtIzlrlPjw1LBrtNXSimkFIqUQ0ITsixt+yFQ4xGj95rmHGMgm/+A6AwfP5tbydM+bkN+4tr35QZ9S54xDvrkA8CZ7u6JjAHtnNxxygWSwBuwQUFxNBkAPOs0G0LnSkEdAFQ9cqXJObI37qamJG/Wr 9uPll4ZzvthvmJmlEQqXYZXdgeWiojj+ZFDi3Iy3EKH16lP/xzqOlJFgKeushycTlUKAdW8QeYpQ1rFJz0 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: 8790a3fd-a891-45c8-80ea-08daedc72f8f X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Jan 2023 20:14:57.8242 (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: hKFka5infZ3tpWUVnZjH92VhnIcw3+5OedppvU5fQmEHXmZtHiSxCPVdfPXSblNfOMitftZuHOcdzdyMbA7g5g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR10MB4518 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2023-01-03_07,2023-01-03_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 mlxlogscore=999 adultscore=0 phishscore=0 mlxscore=0 suspectscore=0 malwarescore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301030172 X-Proofpoint-GUID: 0amTXHGaYV7Zh6sR1Dk5kP6xWgF9gd8y X-Proofpoint-ORIG-GUID: 0amTXHGaYV7Zh6sR1Dk5kP6xWgF9gd8y 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:252432 Archived-At: > I wish the SPC binding to `minibuffer-complete-word` would go because it > makes it hard to type SPC in the minibuffer whenever there's completion. Finally. Bravo - bonne initiative ! > Typing a SPC in a "minibuffer with completion" can be needed when the > things we want to complete contains a SPC character (e.g. file names, > which is why we disable that SPC binding when completing file names), > but also when using completion styles like `orderless` which make the > use of a SPC character to specify how to select the > completion candidates. >=20 > So my favorite option is indeed to simply remove this binding. > Those few users who like it and use it (probably long-time users of > Emacs) could easily get it back with: >=20 > (define-key minibuffer-local-completion-map > " " 'minibuffer-complete-word) >=20 > Another option is to change `minibuffer-complete-word` so that instead > of beeping "No match", it inserts a SPC when there's no completion and > `require-match` is nil (after checking that the command was invoked via > SPC). >=20 > Yet another option would be to let callers of `completing-read` indicate > that it's likely the users will sometimes want to type a SPC character > for this specific minibuffer input (i.e. `completing-read` would then > use a map like `minibuffer-local-filename-completion-map`). >=20 > Currently packages which want to use `completing-read` to let the users > enter a string that will often contain spaces are reduced the either > telling their users "Add this `define-key` thingy in your .emacs because > the defaults suck" or having to use a `minibuffer-with-setup-hook` > workaround that forcefully rebinds SPC during that minibuffer session, > which may be the wrong thing to do if SPC was binding to something else > than `minibuffer-complete-word`. > Both of those options are undesirable, IMO. We should instead improve > the defaults to make such recommendations and workarounds unnecessary. FWIW, Icicles removes `SPC' for word completion by default (since 2005, i.e., nearly the beginning). It puts word completion on a different key (`M-SPC', by default). ____ icicle-word-completion-keys is a variable defined in `icicles-opt.el'. Its value is ([(meta 32)]) Documentation: Key sequences to use for minibuffer prefix word completion. A list of values that each has the same form as a key-sequence argument to `define-key'. It is a list mainly in order to accommodate different keyboards. Because file names, in particular, can contain spaces, some people prefer such a key sequence to be non-printable, such as `M-SPC'. This is the default value in Icicles. But because the spacebar is such a convenient key to hit, other people prefer to use `SPC' for word completion, and to insert a space some other way. The usual way to do that is via `C-q SPC', but command `icicle-insert-a-space' is provided for convenience. You can bind this to `M-SPC', for instance, in `minibuffer-local-completion-map', `minibuffer-local-completion-map', and `minibuffer-local-must-match-map'. You can customize this variable. ____