From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Newsgroups: gmane.emacs.bugs Subject: bug#60527: 30.0.50; Typing SPC in a minibuffer with completion Date: Wed, 04 Jan 2023 08:09:03 +0100 Message-ID: <87bkne22uo.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16474"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Stefan Monnier To: 60527@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 04 08:10:15 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 1pCxuh-00043H-8T for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 04 Jan 2023 08:10:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pCxuV-0004t7-TZ; Wed, 04 Jan 2023 02:10:03 -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 1pCxuU-0004sy-S4 for bug-gnu-emacs@gnu.org; Wed, 04 Jan 2023 02:10:02 -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 1pCxuU-00054J-Cj for bug-gnu-emacs@gnu.org; Wed, 04 Jan 2023 02:10:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pCxuU-0003lP-0H for bug-gnu-emacs@gnu.org; Wed, 04 Jan 2023 02:10:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 Jan 2023 07:10: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.167281615314378 (code B ref 60527); Wed, 04 Jan 2023 07:10:01 +0000 Original-Received: (at 60527) by debbugs.gnu.org; 4 Jan 2023 07:09:13 +0000 Original-Received: from localhost ([127.0.0.1]:47428 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pCxtg-0003jq-S4 for submit@debbugs.gnu.org; Wed, 04 Jan 2023 02:09:13 -0500 Original-Received: from mail-wr1-f52.google.com ([209.85.221.52]:42678) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pCxte-0003ja-HT for 60527@debbugs.gnu.org; Wed, 04 Jan 2023 02:09:11 -0500 Original-Received: by mail-wr1-f52.google.com with SMTP id t15so23177772wro.9 for <60527@debbugs.gnu.org>; Tue, 03 Jan 2023 23:09:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ukqJGRL1vDympwuWJbyYDgx9w2vUVYYKUS1w1fnG5Sw=; b=JaTWPBLRQruWhFNkPC5QcaH4OgALnjj+Q+NoGNoxa88MJ2SRaHF2o/PZWnvJBduL9o WxJR7KbFeSp5pG9IEx5s26YDoEBxrAWaJ+jJuODYMGJZpfATvRLzM8rVuU6Aes55R8sp hzsUk6DU9SnVkVXUBt6A+Qam7FFVojNFm03RA+3FT/xzR2uz6oKh9QVXRQAIf1KTxhY4 JR72TJs86fn+gRSzhtrxJpMNIqdihIMxfvPVd5TcK/DvFXEyLU7v7UWAkDFX2j6CRREW tLrmvmKfMc6mykSfjEdOtEG9tEg6W06WHcW7upsiZMfXJxkNZ2JL4lgApk618VR/ljFz 4q5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=ukqJGRL1vDympwuWJbyYDgx9w2vUVYYKUS1w1fnG5Sw=; b=yv9F09YTGVqhsRUzIdr07TdaC4hNUbJka7M/JuzuYp9is0f8jFEjb7EV6SENsCBs0R 4ByWppjlPRnU3sYi5435RryGJl5fleTA4+dbt1SHXDqrScVCXOpwZU0eZi+YTd7mj7QW moFeVRSWPwdAeqXq+35DzhJpvZuwML03JKpsBsH8dV2NhduAe7JwKl0PQwWzT2/qxcRd fnGrpOi8yQy+s0wvzhv8TIZdFnT2ba5ec0VYzCq/f8ghQVc4K/CndLkUav9lfPNOvcJR jrTTY24WsZHP0LYITpLmHgrrG2TTd9Ogie6R0k4jGek3p1X130leQF/0rhpu3GIj7IZd DfvA== X-Gm-Message-State: AFqh2kp0apRPUbCZy1BiVxcU8Z23rUeUMFhZW6OQWcLoEgrEtSVsjz5h a3TEptlJj2Hzi5J8rvO7i62fetqbr08= X-Google-Smtp-Source: AMrXdXvA1ExJLT5uXlYe3koMHwHrcpaEozlZATtlF3dC26FcaKVkIF7J758k0Kw9MeJnm6M99ufTGg== X-Received: by 2002:a5d:610a:0:b0:27a:cc74:977d with SMTP id v10-20020a5d610a000000b0027acc74977dmr20840985wrt.4.1672816144521; Tue, 03 Jan 2023 23:09:04 -0800 (PST) Original-Received: from amdahl30 ([2a01:e0a:253:fe0:2ef0:5dff:fed2:7b49]) by smtp.gmail.com with ESMTPSA id d11-20020adffd8b000000b00236545edc91sm32874691wrr.76.2023.01.03.23.09.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Jan 2023 23:09:04 -0800 (PST) In-Reply-To: (Stefan Monnier via's message of "Tue, 03 Jan 2023 14:05:17 -0500") 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:252453 Archived-At: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" writes: > 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`). Thinking out loud, not sure how reasonable that idea is: something akin to the *-completion-ignore-case options? E.g. *-completion-literal-spc? (Or *-completion-literal-keys) > 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`. With the suggestion above, packages could define their own *-completion-whatever-its-named option, that may default to letting SPC self-insert; like ebdb defining its own ebdb-completion-ignore-case that defaults to t. Users could then set those options, and possibly set a bare defvar =C3=A0 la completion-ignore-case for those who feel very strongly that SPC has no business completing. (Full disclosure: I find SPC completion somewhat useful, especially for Lisp symbols, because pounding on SPC is much, much easier than reaching for hyphens on AZERTY)