From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#47699: [PATCH] Improve completion-list-mode-map Date: Mon, 12 Apr 2021 01:36:10 +0300 Organization: LINKOV.NET Message-ID: <87a6q45t2t.fsf@mail.linkov.net> References: <3755fe92dcbf588701ae@heytings.org> <83o8el46rs.fsf@gnu.org> <3755fe92dc6b58671717@heytings.org> <83k0p944s5.fsf@gnu.org> <3755fe92dc4a9ba66a0b@heytings.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13139"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: 47699@debbugs.gnu.org To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 12 00:59:18 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 1lVj30-0003LG-NW for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 12 Apr 2021 00:59:18 +0200 Original-Received: from localhost ([::1]:49932 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lVj2z-0006Vr-QJ for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 11 Apr 2021 18:59:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55230) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVj2k-0006VY-Us for bug-gnu-emacs@gnu.org; Sun, 11 Apr 2021 18:59:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44474) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lVj2k-0007eB-0h for bug-gnu-emacs@gnu.org; Sun, 11 Apr 2021 18:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lVj2j-0003z5-Uq for bug-gnu-emacs@gnu.org; Sun, 11 Apr 2021 18:59:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 11 Apr 2021 22:59:01 +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.161818189115256 (code B ref 47699); Sun, 11 Apr 2021 22:59:01 +0000 Original-Received: (at 47699) by debbugs.gnu.org; 11 Apr 2021 22:58:11 +0000 Original-Received: from localhost ([127.0.0.1]:56020 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lVj1v-0003y0-Bg for submit@debbugs.gnu.org; Sun, 11 Apr 2021 18:58:11 -0400 Original-Received: from relay9-d.mail.gandi.net ([217.70.183.199]:33589) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lVj1u-0003xm-2D for 47699@debbugs.gnu.org; Sun, 11 Apr 2021 18:58:10 -0400 X-Originating-IP: 91.129.96.157 Original-Received: from mail.gandi.net (m91-129-96-157.cust.tele2.ee [91.129.96.157]) (Authenticated sender: juri@linkov.net) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 10BE5FF802; Sun, 11 Apr 2021 22:58:01 +0000 (UTC) In-Reply-To: <3755fe92dc4a9ba66a0b@heytings.org> (Gregory Heytings's message of "Sun, 11 Apr 2021 08:31:00 +0000") 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:203868 Archived-At: >>> 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. >> >> I wonder how many people use this paradigm > > I do, from time to time. I'd be surprised if I were the only one, as > I remember that it's something I already did during the first days I used > Emacs. When you see a window with lots of information appearing, is it not > natural to enter that window and to move around? I use this all the time: type PgUp to switch to the completions buffer, then use the same key PgUp together with PgDn to scroll completions, and use isearch to search in completions. The existing useful key 'q' closes the completions buffer, and switches back to the minibuffer. But then I have such customization, with it using the completions buffer is more handy: (defun choose-completion-no-auto-exit () (interactive) (let ((completion-no-auto-exit t)) (call-interactively 'choose-completion))) (define-key completion-list-mode-map [M-return] 'choose-completion-no-auto-exit) where M-RET inserts the selected completion to the minibuffer without exiting it, and switches back to the minibuffer.