From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sean Whitton Newsgroups: gmane.emacs.bugs Subject: bug#41890: bug#42210: bug#41890: 28.0.50; [PATCH]: Add bindings for project.el Date: Thu, 23 Jul 2020 08:06:57 -0700 Message-ID: <87k0yutgmm.fsf@iris.silentflame.com> 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> <87zh7s8mlv.fsf@mail.linkov.net> <87eep449os.fsf@iris.silentflame.com> <87sgdjcbqw.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38685"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "Basil L. Contovounesios" , "Philip K." , 41890@debbugs.gnu.org, 42210@debbugs.gnu.org, Dmitry Gutov To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 23 17:08:12 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 1jycpO-0009vv-SS for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 23 Jul 2020 17:08:11 +0200 Original-Received: from localhost ([::1]:51838 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jycpN-0007qq-QQ for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 23 Jul 2020 11:08:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57932) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jycpG-0007qd-2V for bug-gnu-emacs@gnu.org; Thu, 23 Jul 2020 11:08:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34276) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jycpF-0005ES-On for bug-gnu-emacs@gnu.org; Thu, 23 Jul 2020 11:08:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jycpF-0003kN-JW for bug-gnu-emacs@gnu.org; Thu, 23 Jul 2020 11:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Sean Whitton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Jul 2020 15:08:01 +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.159551683014338 (code B ref 41890); Thu, 23 Jul 2020 15:08:01 +0000 Original-Received: (at 41890) by debbugs.gnu.org; 23 Jul 2020 15:07:10 +0000 Original-Received: from localhost ([127.0.0.1]:45820 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jycoP-0003jB-RI for submit@debbugs.gnu.org; Thu, 23 Jul 2020 11:07:10 -0400 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:37745) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jycoL-0003ic-8w; Thu, 23 Jul 2020 11:07:08 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 1CE505C00A6; Thu, 23 Jul 2020 11:07:00 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Thu, 23 Jul 2020 11:07:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm3; bh=3mIqSQ7D3x9MXOomvrFSI8Iy9u E+58h28BImC8PhUs4=; b=qXVXUV16ulth+idIh0FiL5l9USH5QgGLgXg/ZYetdf A1pHyqhWqXM7mnxj2yImopKUCTjtlEKi550rpd/sceNysXVyFoj+l0K/uB2CPSiB Lh6tzZ1EWWRJqUtnDexKkwkpaH6ZYXFxzF90z/1WtaxTz9pg2elVw7FdTliAEDeG HKaaQpu9nzh//W5c+0SAFLK4kYnCkFX95YkhtAcFxes5dFRQpN6Tdy3ITdF+iqh2 MHbmze/667XiKl9c2vI3v8ursbv7q/jNVOZ0qNbUzZb16pAQ5JYnduDB3vGLZEgV H0gZQI1/ak8X9adfqvW0UVto/zkRG7aHyhwAgmH98n6Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=3mIqSQ 7D3x9MXOomvrFSI8Iy9uE+58h28BImC8PhUs4=; b=tELP65Z/OXxi7N8M7epCE/ Sw2kSwJ3Pwsaov8RoBIWJyR8UpTpaKS5xg6vkYTPjObdyYukLPDFA3Rs5rVuUMwn 7FzpjjImhg8OOjG5zU0SvRCWqbiGPklKFwIeyXf6EFP/y8VQx0BkUUrXWg/zfPNd WEQ+e8kHHKi28K2CELufrz/Zym90Jb7YiNAnHGDyJHZZw886PpBmza/37OJUOGAT +40odFzgyM7J1SeyUC4CmtLLt+hu5Qvg8cNQtr4oH+VHo815/IQvf96dmOYuzhs6 8U9pCrR8VeFHiMFoU4cmi5Bidlu+bMY4XiAr9Fqvkqh1ogPvmVAXJ5GTwu6EOn2g == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrhedugdekjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffujghffffkgggtsehttdertddttddtnecuhfhrohhmpefuvggrnhcuhghh ihhtthhonhcuoehsphifhhhithhtohhnsehsphifhhhithhtohhnrdhnrghmvgeqnecugg ftrfgrthhtvghrnhepgedtvdehgeffhfffvdeffefhgfejffelhfetveffffektefgtdej tdeivddtveehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepshhpfihhihhtthhonhesshhpfihhihhtthhonhdrnhgrmhgv X-ME-Proxy: In-Reply-To: <87sgdjcbqw.fsf@mail.linkov.net> 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:183444 Archived-At: Hello Juri, On Thu 23 Jul 2020 at 03:32AM +03, Juri Linkov wrote: >>> 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'). >> >> What would determine which of the bindings get shown in the prompt, >> then, supposing there were too many to fit them all? > > Maybe it's possible to show all them by using 'read-char-choice' when only > the initial letters are displayed in the prompt like "(f, g, d, v, s, ?): " > or using 'read-answer' or 'read-multiple-choice', e.g.: > > (read-multiple-choice "Select project" > '((?f "Find file") > (?g "Find regexp") > (?d "dired") > (?v "vc-dir") > (?s "shell"))) If we're only displaying single letters, then I'm not sure there is much point in prompting at all? Either someone knows what letter to press or they don't -- in either case the prompt seems useless. >>>> 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)? >> >> It's hard to know what key sequence to use. > > Indeed, it's hard to find a key prefix analogous to 'C-x 4 1'. > Maybe 'C-x 4 1 p'? I'd be cautious about this, because it breaks the general semantics of C-x 4 1. It seems reasonable that someone might have a major-mode in which 'p' displays another buffer, and then they might want to use C-x 4 1 to reuse the same window. -- Sean Whitton