From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.devel Subject: Re: Concern about new binding. Date: Fri, 12 Feb 2021 12:17:54 +0300 Message-ID: References: <20210204070033.pm4ido4hq7a6twif@Ergus> <83sg6brhyg.fsf@gnu.org> <87a6sjpyqs.fsf@gnus.org> <838s83ra3q.fsf@gnu.org> <87mtwjocn7.fsf@gnus.org> <87ft2bim5q.fsf@gmail.com> <87blczij90.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37593"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.0 (3d08634) (2020-11-07) Cc: Thibaut Verron , emacs-devel@gnu.org To: =?utf-8?B?S8Opdmlu?= Le Gouguec Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Feb 12 10:24:18 2021 Return-path: Envelope-to: ged-emacs-devel@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 1lAUgU-0009fn-1Z for ged-emacs-devel@m.gmane-mx.org; Fri, 12 Feb 2021 10:24:18 +0100 Original-Received: from localhost ([::1]:47262 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lAUgT-0008JO-1g for ged-emacs-devel@m.gmane-mx.org; Fri, 12 Feb 2021 04:24:17 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51814) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAUex-0007rN-FT for emacs-devel@gnu.org; Fri, 12 Feb 2021 04:22:43 -0500 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:38065) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAUev-0004pO-3m for emacs-devel@gnu.org; Fri, 12 Feb 2021 04:22:42 -0500 Original-Received: from localhost ([::ffff:41.202.241.3]) (AUTH: PLAIN securesender, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 000000000001E079.00000000602648DD.0000400E; Fri, 12 Feb 2021 02:22:36 -0700 Mail-Followup-To: =?utf-8?B?S8Opdmlu?= Le Gouguec , Thibaut Verron , emacs-devel@gnu.org Content-Disposition: inline In-Reply-To: <87blczij90.fsf@gmail.com> Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:264474 Archived-At: * Kévin Le Gouguec [2021-02-05 01:03]: > Thibaut Verron writes: > > >> - I wouldn't find it outlandish for Magit to do something similar to > >> rg.el: provide a function (say magit-enable-default-bindings) that > >> users can call in their init file to easily setup some bindings under > >> a prefix (that would default to C-c g). > > > > So to be clear, we would ask hundreds/thousands/whatever of users to > > add a change to their init file and possibly change a binding they use > > daily, in order to either make room for, or override a binding they > > mostly never asked for? > > I've used Magit daily for years, and I call magit-status through C-x g > dozens of times an hour. It is very much ingrained in my muscle memory, > and it would take me a lot of frustrating misinputs to retrain myself to > use another binding. You could upgrade the muscle memory and just switch to C-c g or something else. When I was playing with prefixes I have discovered that I just have to split memorizing the prefix and letters behind and whatever prefix I change or introduce I can use it again with those letters behind. I have just tried it and changed my favorit prefix from `s-p' to `C-c p' and I do not even think about the `C-p p' when invoking it, that goes fast as I have put `C-c p' in the prefix slot of the muscle memory and all other keys in the map slot of the muscle memory. I have no other way to express me but that is about how it is. I could change prefix to F5 and have the same effect. Try it out. Here is how I have defined my map. (define-prefix-command 'cf-map) (global-set-key (kbd "s-p") 'cf-map) but then today I have changed it to: (global-set-key (kbd "C-c p") 'cf-map) and (global-set-key (kbd "") 'cf-map) and I can equally and without problems invoke { j} to find people by their phone number or {C-c p j} to do the same. So now I just need to know one time, like 1 second to remember what is the prefix. It does not matter, I can now press {C-c p j} to find people in the database by using the phone number ot {C-c p L} to list all the recently entered people into the database. It may look complex or sound complex. My practical use case is simple. Switching from prefix to prefix is easy for me. Try it out. Excercise few times. Maybe you discover something new. Jean