From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Bozhidar Batsov" Newsgroups: gmane.emacs.devel Subject: Re: project prefix and mark-page Date: Wed, 21 Jul 2021 12:20:28 +0300 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=b2e5f32cfbad48d785241d719ca21673 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17823"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Cyrus-JMAP/3.5.0-alpha0-539-g8589ead45b-fm-20210721.001-g8589ead4 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jul 21 11:21:47 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 1m68QF-0004UM-66 for ged-emacs-devel@m.gmane-mx.org; Wed, 21 Jul 2021 11:21:47 +0200 Original-Received: from localhost ([::1]:52184 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m68QE-0005aL-83 for ged-emacs-devel@m.gmane-mx.org; Wed, 21 Jul 2021 05:21:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40252) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m68PP-0004lW-BU for emacs-devel@gnu.org; Wed, 21 Jul 2021 05:20:55 -0400 Original-Received: from mail-io1-xd34.google.com ([2607:f8b0:4864:20::d34]:47103) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m68PN-0005hs-K9 for emacs-devel@gnu.org; Wed, 21 Jul 2021 05:20:55 -0400 Original-Received: by mail-io1-xd34.google.com with SMTP id p186so1571346iod.13 for ; Wed, 21 Jul 2021 02:20:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:user-agent:mime-version:message-id:in-reply-to:references :date:from:to:subject; bh=ssD2KvtchZP3/LXt+Pr4dSXZ03NzgKvThH96v7uwbfo=; b=VrTfgweeldje9qxnnyohhBBdaUePlE4apdSSxhgot8GZB3dc6V4rjvjZeQ2IxjNbyp b20P0N2X8mcaBne7VE13exkziPOVyKBBBjyALurr8gPX8+hXR8jrw+zltLIoAtYrRGx4 Ax53Ux3R+VynmOJpZDXCiX7CnlDkjXXxugAKnwE3hq8vJNoLVpenpor/JYmCVJL6mtaC v8U0cOIagI1G1OSZdFcJ9m+0u/4NvuID6Q4gpzN18Yxgo/HD9mG426EbqOQ0bNq2FOYr vJGgbYlgG/QtbQUssuGdG7fMKlJtttSm+r4xwhKK5Oo1GJf3E8rLjnwmd7zt7kQ3H5B9 iopg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:user-agent:mime-version:message-id :in-reply-to:references:date:from:to:subject; bh=ssD2KvtchZP3/LXt+Pr4dSXZ03NzgKvThH96v7uwbfo=; b=T+5b89iQLzdSPRxswTbW9U6Cz0iQc9uFLySdxiqo8jIpxx0ZFOlmsCHj7cM7G94Zbt JZ6oI7XhdKdHZ9Q893z9EOqi+2pmyQuXmUP3gZiijxvfaLxk/j217STZ6ctImuk1Fj9Y 3Kn78NlfIGj6TJ13MvPad0ugzQc0STrxsPpd8TGKqTZAtGEG5tpXKshD6LW5z08/Mdpe FaIgK6FHrjzJ1CxyvMbYDRspppDZFoeiDp/51gkyCeoalwsiryiWqT5ROSEKMhWx3hyw vkzvYqy30AfijNjZYWJpKIb+y9WQnV2qm3D1w4hVQm3KNxCfspPa3niLrnHxlKLkD+tW RR3g== X-Gm-Message-State: AOAM532UeUAXqLeBjBGwE3pNTIFIhg+7QDlvclpz5FCQm1k3kxwlKr6Z W/GmNLdFSxvk1ZN9VMLpi+788hriMgc= X-Google-Smtp-Source: ABdhPJzbnnYsrH5eFjhCG5M+NI/0cwtPHLdJMlA5ELrytWTBt+LC+ax1URlpnjiFadnqQioHsbUzTQ== X-Received: by 2002:a5d:9ccb:: with SMTP id w11mr21044714iow.174.1626859251024; Wed, 21 Jul 2021 02:20:51 -0700 (PDT) Original-Received: from auth2-smtp.messagingengine.com (auth2-smtp.messagingengine.com. [66.111.4.228]) by smtp.gmail.com with ESMTPSA id 9sm12641545ill.9.2021.07.21.02.20.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Jul 2021 02:20:50 -0700 (PDT) Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailauth.nyi.internal (Postfix) with ESMTP id 9342727C0054 for ; Wed, 21 Jul 2021 05:20:49 -0400 (EDT) Original-Received: from imap43 ([10.202.2.93]) by compute1.internal (MEProxy); Wed, 21 Jul 2021 05:20:49 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrfeeggddufecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgesrgdtre erreertdenucfhrhhomhepfdeuohiihhhiuggrrhcuuegrthhsohhvfdcuoegsohiihhhi uggrrhessggrthhsohhvrdgtohhmqeenucggtffrrghtthgvrhhnpeelkeegtdefjefhge fgheethfeugeehgeehveetvdetieetjedvieelgedvgeevveenucffohhmrghinhepmhgr nhhuvghluhgsvghrthhirdgvuhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpegsohiihhhiuggrrhdomhgvshhmthhprghuthhhphgvrhhsohhn rghlihhthidquddujeeiieduvdekkedqvdeiieejieelgeegqdgsohiihhhiuggrrheppe gsrghtshhovhdrtghomhesfhgrshhtmhgrihhlrdgtohhm X-ME-Proxy: Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id F37ABAC0E8D; Wed, 21 Jul 2021 05:20:48 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::d34; envelope-from=bozhidar.batsov@gmail.com; helo=mail-io1-xd34.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:271402 Archived-At: --b2e5f32cfbad48d785241d719ca21673 Content-Type: text/plain You bring up a valid point, but I think it's not prudent to mess with established keybindings (even if few people are using those). Given how few options we have in the global keymap, I guess we were quite lucky that `C-x p` was available in the first place. I think a simple solution for you would be to just rebind `C-x C-p` (I assume you don't need it) or add local bindings `C-c p` and `C-c C-p`. I'm a big fan of such "symmetric" keybindings and I use them all the time. On Wed, Jul 21, 2021, at 10:49 AM, Manuel Uberti wrote: > Hi, > > since this is more of a curiosity than a bug report I am asking it here. > > I heavily rely on project.el so many of my daily Emacs interactions start with > C-x p. However, if I do not release CTRL quick enough before hitting p I end up > with C-x C-p, which is bound to mark-page. > > Now, after C-x p I usually hit p to select a project or f to find a file in the > current project. So it often happens that by mistake I hit C-x C-p p or C-x C-p > f, which is not what I was after. > > To avoid this, I disabled C-x C-p in my configuration since I never use it. But > I was wondering: is this a "problem" only for me or are C-x p and C-x C-p too > close to be bound to such different commands? > > > Thank you > > -- > Manuel Uberti > www.manueluberti.eu > > --b2e5f32cfbad48d785241d719ca21673 Content-Type: text/html Content-Transfer-Encoding: quoted-printable
You bring up a = valid point, but I think it's not prudent to mess with established keybi= ndings (even if few people are using those). Given how few options we ha= ve in the global keymap, I guess we were quite lucky that `C-x p` was av= ailable in the first place. 

I think a= simple solution for you would be to just rebind `C-x C-p` (I assume you= don't need it) or add local bindings `C-c p`  and `C-c C-p`. I'm a= big fan of such "symmetric" keybindings and I use them all the time.

On Wed, Jul 21, 2021, at 10:49 AM, Manuel Ube= rti wrote:
= Hi,

since this is more of a curiosity than = a bug report I am asking it here.

I heavily= rely on project.el so many of my daily Emacs interactions start with&nb= sp;
C-x p. However, if I do not release CTRL quick enough = before hitting p I end up 
with C-x C-p, which is bou= nd to mark-page.

Now, after C-x p I usually= hit p to select a project or f to find a file in the 
current project. So it often happens that by mistake I hit C-x C-p p o= r C-x C-p 
f, which is not what I was after.

To avoid this, I disabled C-x C-p in my configurati= on since I never use it. But 
I was wondering: is thi= s a "problem" only for me or are C-x p and C-x C-p too 
close to be bound to such different commands?


Thank you

-- 
=
Manuel Uberti



--b2e5f32cfbad48d785241d719ca21673--