From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.bugs Subject: bug#47699: [PATCH] Improve completion-list-mode-map Date: Sun, 11 Apr 2021 07:58:04 +0000 Message-ID: <3755fe92dc6b58671717@heytings.org> References: <3755fe92dcbf588701ae@heytings.org> <83o8el46rs.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24385"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 47699@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 11 09:59:10 2021 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 1lVUzt-0006Et-W7 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 11 Apr 2021 09:59:10 +0200 Original-Received: from localhost ([::1]:34800 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lVUzs-0006aS-PD for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 11 Apr 2021 03:59:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40154) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVUzm-0006aM-KC for bug-gnu-emacs@gnu.org; Sun, 11 Apr 2021 03:59:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42366) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lVUzm-00045O-Ce for bug-gnu-emacs@gnu.org; Sun, 11 Apr 2021 03:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lVUzm-0002bO-An for bug-gnu-emacs@gnu.org; Sun, 11 Apr 2021 03:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 11 Apr 2021 07:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47699 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 47699-submit@debbugs.gnu.org id=B47699.16181278879939 (code B ref 47699); Sun, 11 Apr 2021 07:59:02 +0000 Original-Received: (at 47699) by debbugs.gnu.org; 11 Apr 2021 07:58:07 +0000 Original-Received: from localhost ([127.0.0.1]:53912 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lVUyt-0002aE-13 for submit@debbugs.gnu.org; Sun, 11 Apr 2021 03:58:07 -0400 Original-Received: from heytings.org ([95.142.160.155]:34000) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lVUyr-0002a7-N9 for 47699@debbugs.gnu.org; Sun, 11 Apr 2021 03:58:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1618127884; bh=K1sePGqshuezogcQSKxptKJh+2VEOCcz5OKdC9mSyL8=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=tw2hj/98qagNwnSY0pbCH/3JIybcEm944pHoiEDMwGKyyOMzLJYVYZwO+UAqPQdxY qIVm8qb+UCpR5NcbbN5FWHJ1BGueZhkiA1tV25vZ0lZr9kB7msH6CWj0QtkT0UCU71 L72zIoTusiQBmb653Qqo6O5Z/4A7Iwa+ow0g23mpj2XK2VdBtJu1crEGVxx8r+W7LL Yt3WuJ0Iwl7dBspxJS14XuNssN7FAlgaSzg39DjcwQE2+1ba8XBIXhrqzhZ/BVNxtF d859354HFAxO+Wr/20rKKl4C1DNioGlrb6a+N2WYEetdRZTUBmB4ZqDsdM/JU6KSQe fgh58sSEJrwYA== In-Reply-To: <83o8el46rs.fsf@gnu.org> 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" Xref: news.gmane.io gmane.emacs.bugs:203831 Archived-At: >> Currently completion-list-mode-map does not give a specific meaning to >> most keys, which means that most keypresses display an error "Buffer is >> read-only #". I suggest to make it a child of >> special-mode-map, and to bind the "n" and "p" keys to "next-completion" >> and "previous-completion". > > Why just 'n' and 'p'? If we want more commands to move between > completions, I could think about several others: <, >, C-f, C-b, C-n, > C-p, Home, End, the arrow keys, etc. > It's not "just 'n' and 'p'", it adds 'n' and 'p' to the already available choices, completion-list-mode-map already defines: TAB, right = next-completion backtab, left = previous-completion and C-{p,n} and the arrow keys work as usual. > > However, these bindings are only available if one makes *Completions* > the current buffer, right? > Yes, of course. > > Which rarely if ever happens in TAB-completion scenarios, right? If so, > is that really helpful to have these additional bindings, and if so, in > what use cases? > Well, vanilla Emacs defines M-v = switch-to-completions, which opens *Completions* and makes it the current buffer. In a selection-like scenario, it makes sense to switch to the completions buffer where you can freely move around, use isearch, and so forth.