From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.devel Subject: Re: master 859190f 2/3: Convert some keymaps to defvar-keymap Date: Thu, 14 Oct 2021 13:53:26 +0000 Message-ID: <9865db3af5c5d28dc032@heytings.org> References: <20211004081724.6281.11798@vcs0.savannah.gnu.org> <87h7dm9en7.fsf@gnus.org> <818f9907c2b1fe8b54b1@heytings.org> <83tuhlnkxm.fsf@gnu.org> <818f9907c2f359a71f49@heytings.org> <83czo9nj4g.fsf@gnu.org> <818f9907c244b9db0bea@heytings.org> <834k9lnd2i.fsf@gnu.org> <818f9907c2dff3b49971@heytings.org> <83k0ign3zj.fsf@gnu.org> <818f9907c26fb6f0233a@heytings.org> <838rywm7a7.fsf@gnu.org> <9865db3af5547c6ca15c@heytings.org> <9865db3af561bf9f05d1@heytings.org> <87lf2vyej8.fsf@gnus.org> <9865db3af5710fbcc443@heytings.org> <87h7djybv9.fsf@gnus.org> <9865db3af54c5432a529@heytings.org> <87czo7ybhj.fsf@gnus.org> <9865db3af596e2553d9d@heytings.org> <8735p3yb6o.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12810"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , Stefan Kangas , emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Oct 14 15:54:40 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 1mb1Bv-000392-I0 for ged-emacs-devel@m.gmane-mx.org; Thu, 14 Oct 2021 15:54:39 +0200 Original-Received: from localhost ([::1]:49388 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mb1Bu-0001EY-Hr for ged-emacs-devel@m.gmane-mx.org; Thu, 14 Oct 2021 09:54:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43138) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mb1Aq-0000Xt-Cg for emacs-devel@gnu.org; Thu, 14 Oct 2021 09:53:32 -0400 Original-Received: from heytings.org ([95.142.160.155]:51156) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mb1An-00056s-MM; Thu, 14 Oct 2021 09:53:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1634219606; bh=2dVDb+ptqYsCii98hqm+FFde1vuY92vZ3QiiNmBJD/Y=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=L/mYD/dgvcv2y+SS5yilZryZcsDsO/lDnHRmwVzoaybK2MH0y7I0d4/SWa+Fon4mi MISWPQjLPOxhNzjChQIHFjt1fe4vit+AIvIuY82Y3dJX+gpk2yGiqRqH/ZS4dcMZrT ETThUKAIc4MNAhCN8hsMhswVg9qbPFTx+CrQFmNcYubtGmH/W8CXteK05TcGR7XLCY 7HpskPKIIcQmWgu9xl3dkXSd/NXrqdQ9O5gg15h5Z1M5ecHt8GwgSS+YnkjW4nBRj4 0EV7bxMi2aZAk92p1ax96ujUiyQB1wgYUwAy1439b/DY7Wb+I3AHZoC1NXSPAQBzC1 FxJkT5Oqd2qGg== In-Reply-To: <8735p3yb6o.fsf@gnus.org> Received-SPF: pass client-ip=95.142.160.155; envelope-from=gregory@heytings.org; helo=heytings.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, 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:277025 Archived-At: >> Sorry for the confusion, what I said was unclear: with the proposed >> (proof of concept) patch (see below), such a sequence would not be >> transformed by kbd, because it does not contain "C-" or something >> similar. > > That's even more confusing. If you want to only use kbd syntax, then > you have to use kbd explicitly for some key bindings (if you want to > bind "fp", for instance), but not for others. > (kbd "fp") == "fp", so why would you need to use kbd explicitly to bind "fp"? With the patch: (local-set-key "f" some-command) binds f (local-set-key "fp" some-command) binds f p (local-set-key "f p" some-command) binds f SPC p (local-set-key "C-p" some-command) binds C-p (local-set-key "M-p" some-command) binds M-p (local-set-key "C-M-p" some-command) binds C-M-p But if you want to bind C - p (capital C, dash, p) you have to use a vector: (local-set-key [(C) (-) (p)] some-command) binds C - p