unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: "Kévin Le Gouguec" <kevin.legouguec@gmail.com>
Cc: Lars Ingebrigtsen <larsi@gnus.org>,
	"16528@debbugs.gnu.org" <16528@debbugs.gnu.org>,
	Stefan Monnier <monnier@iro.umontreal.ca>,
	Roland Winkler <winkler@gnu.org>
Subject: bug#16528: [External] : bug#16528: 24.3; too many keybindings in minibuffer-local-completion-map
Date: Fri, 20 Aug 2021 21:11:36 +0000	[thread overview]
Message-ID: <SJ0PR10MB5488FDAD41A5731F3B2E0C33F3C19@SJ0PR10MB5488.namprd10.prod.outlook.com> (raw)
In-Reply-To: <87a6lbhp3a.fsf@gmail.com>

> I don't know about good arguments, but FWIW on AZERTY, where '-' is a
> pain to reach for, I enjoy 'SPC' doing word completion and inserting
> hyphens for Elisp symbols on M-x, C-h v, C-h f, etc.

FWIW, Icicles has (always has had) an option for which
keys to use for word-completion.  The default value is
`M-SPC'.

`icicle-word-completion-keys':

  ...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'.

And if Emacs thought that word-completion for AZERTY
keyboards (or anything else) would likely result in
a significant number of users wanting to customize the
key(s) to use for it, Emacs too could offer an option.

Or else users such as yourself would just add a
binding for SPC in the relevant minibuffer keymaps. 

> I'll admit it's a pretty niche use-case, although off the top of my
> head, I can't find much uses for self-inserting SPC/?/C-j in the
> minibuffer either

Hearing that, I'm guessing your use of minibuffer
completion doesn't encounter a lot of different kinds
of completion candidates.  That's fine; users are
different, as are the things they complete.

> (Emacs 28's yank-from-kill-ring comes to mind, but
> '?' and 'SPC' are already self-inserting there[1]).

Individual commands can bind whatever keys in whatever
minibuffer keymaps make most sense for those commands.

But I think the general case, that is, no a priori
knowledge of what kinds of completion candidates might
be used, should treat those 3 keys as self-inserting.

Instead of the commands you mentioned making SPC
self-inserting, commands for which SPC should have
some action _other than_ self-insertion should bind
SPC to that particular action.  That's applying
particular use-case knowledge to completion for that
use case.

The normal and generally expected action for SPC is
self-insertion.  That makes sense for the minibuffer
also, in general.  Any text at all can be a completion
candidate.  And a minibuffer is pretty much a general
editing buffer.





      reply	other threads:[~2021-08-20 21:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-23 13:06 bug#16528: 24.3; too many keybindings in minibuffer-local-completion-map Roland Winkler
2014-01-23 18:03 ` Stefan Monnier
2014-01-23 19:02   ` Roland Winkler
2014-01-23 19:16     ` Drew Adams
2021-08-20 15:00   ` Lars Ingebrigtsen
2021-08-20 16:38     ` bug#16528: [External] : " Drew Adams
2021-08-20 19:51       ` Kévin Le Gouguec
2021-08-20 21:11         ` Drew Adams [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=SJ0PR10MB5488FDAD41A5731F3B2E0C33F3C19@SJ0PR10MB5488.namprd10.prod.outlook.com \
    --to=drew.adams@oracle.com \
    --cc=16528@debbugs.gnu.org \
    --cc=kevin.legouguec@gmail.com \
    --cc=larsi@gnus.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=winkler@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).