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#41890: bug#42210: bug#41890: 28.0.50; [PATCH]: Add bindings for project.el Date: Wed, 22 Jul 2020 02:38:52 +0300 Organization: LINKOV.NET Message-ID: <87zh7s8mlv.fsf@mail.linkov.net> References: <87mu50b43d.fsf@warpmail.net> <87pn92t1ye.fsf@iris.silentflame.com> <874kqcsnu5.fsf@iris.silentflame.com> <54a1ed24-9d0e-4671-eb70-9d8c253e7aac@yandex.ru> <87y2ngg64e.fsf@iris.silentflame.com> <99e82681-e645-2888-3d24-26698ee0c7e0@yandex.ru> <871rl6gmip.fsf@iris.silentflame.com> <874kq1d7wf.fsf@iris.silentflame.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29063"; 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: "Basil L. Contovounesios" , "Philip K." , 41890@debbugs.gnu.org, 42210@debbugs.gnu.org, Dmitry Gutov To: Sean Whitton Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 22 01:41:21 2020 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 1jy1sv-0007UM-3w for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 22 Jul 2020 01:41:21 +0200 Original-Received: from localhost ([::1]:59616 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jy1ss-0002RR-IJ for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 21 Jul 2020 19:41:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52238) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jy1sc-0002RE-QB for bug-gnu-emacs@gnu.org; Tue, 21 Jul 2020 19:41:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57355) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jy1sc-0008Lv-HW for bug-gnu-emacs@gnu.org; Tue, 21 Jul 2020 19:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jy1sc-0004tv-EE for bug-gnu-emacs@gnu.org; Tue, 21 Jul 2020 19:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Jul 2020 23:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41890 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 41890-submit@debbugs.gnu.org id=B41890.159537483618788 (code B ref 41890); Tue, 21 Jul 2020 23:41:02 +0000 Original-Received: (at 41890) by debbugs.gnu.org; 21 Jul 2020 23:40:36 +0000 Original-Received: from localhost ([127.0.0.1]:40666 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jy1sC-0004sx-Im for submit@debbugs.gnu.org; Tue, 21 Jul 2020 19:40:36 -0400 Original-Received: from relay6-d.mail.gandi.net ([217.70.183.198]:35407) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jy1s9-0004sc-7Y; Tue, 21 Jul 2020 19:40:35 -0400 X-Originating-IP: 91.129.108.250 Original-Received: from mail.gandi.net (m91-129-108-250.cust.tele2.ee [91.129.108.250]) (Authenticated sender: juri@linkov.net) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 3ABB0C0002; Tue, 21 Jul 2020 23:40:23 +0000 (UTC) In-Reply-To: <874kq1d7wf.fsf@iris.silentflame.com> (Sean Whitton's message of "Mon, 20 Jul 2020 17:33:04 -0700") 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:183367 Archived-At: >>> How about having a project-other-window-commands defcustom for C-x 4 p, >>> and using the entirety of project-prefix-map for C-x 5 p and C-x t t? >>> C-x 4 p can prompt as per my patch, and C-x 5 p and C-x t t could just >>> put a static message in the minibuffer like other-frame-prefix and >>> other-tab-prefix do at present. >> >> Just to clarify: are you proposing this because you really like how the >> prompt works, yet can't find a good way to incorporate it for the two >> other prefixes? > > I wouldn't say that I really like the prompt, but it could be useful to > someone to see the bindings available to them, when we're sure it's > going to fit. While the prompt is active, the key '?' and 'C-h' could (and I think should) display a list of *ALL* available key bindings from the project keymap in the *Help* buffer (like e.g. 'query-replace' does after typing 'C-h'). > I do think we should avoid binding commands under C-x 4 where the > versions under C-x p would already display in another window -- I think > it is potentially quite confusing to have bindings with identical > behaviour under both C-x 4 p and C-x p. Shouldn't some key sequence force displaying the project buffer in the same window (when a version under C-x p displays it in another window)? > But that means we need the defcustom, because a user could use > display-buffer-alist to change which commands under C-x p will use > another window. I now understand that your top message above implies that a user could customize display-buffer-alist to display a buffer in another window, but usually users don't customize display-buffer-alist to display a buffer in another frame/tab?