From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.devel Subject: Interest in keymap-set + use-package (+ bind-key)? Date: Sun, 10 Nov 2024 19:03:28 -0800 Message-ID: <348bdf40-6c00-2f42-4859-a56f40e28833@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2355"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Nov 11 04:04:28 2024 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 1tAKj6-0000YC-D0 for ged-emacs-devel@m.gmane-mx.org; Mon, 11 Nov 2024 04:04:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tAKiF-0005yn-4E; Sun, 10 Nov 2024 22:03:35 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tAKiC-0005yP-EM for emacs-devel@gnu.org; Sun, 10 Nov 2024 22:03:32 -0500 Original-Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tAKiA-0002vN-T4 for emacs-devel@gnu.org; Sun, 10 Nov 2024 22:03:32 -0500 Original-Received: by mail-pj1-x1032.google.com with SMTP id 98e67ed59e1d1-2e9b55b83d2so2000945a91.3 for ; Sun, 10 Nov 2024 19:03:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731294209; x=1731899009; darn=gnu.org; h=content-transfer-encoding:subject:from:to:content-language :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=7kz+KDlc2eNiS77RYABkkm7RtaGUO+ENxpY7dKyIrRc=; b=RzkgXgq6VKSY8vSzVM9eQirkIuDPiO9IMJqDeDXa5Rf+Qeltt7xQs5Y7Bk7FXsvvJw lUCPJ8jsPuou3uZMfupDuL8jmxE3bPUzebfuC6bSan8xUnUq+G5knN83XPHbZkERkMKa gSl/+ChlnyFbqWens6WR5P5oc+l7m9ZvMFcmIElA0ki/qbbAY1foSJRGRrCXILPeiuo6 Yb6fNNeyngt5FGcw52Ovs4+rZMS8Gt/r5JnFYmjRMOM5yrhyGsMLnS+TEd32GM1vOGMV qmKs7bGmSXKBdSk/jznG04yRH8y5XBIluz8Pjj/YHSaazz7JNoYV/GN0p/cfKtg12Ycb gxQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731294209; x=1731899009; h=content-transfer-encoding:subject:from:to:content-language :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=7kz+KDlc2eNiS77RYABkkm7RtaGUO+ENxpY7dKyIrRc=; b=X3KvJOr7iiPtq05agdLHe2NeJ7H/fDr1lou1UVPtenuHBv+4rriHqZ9kcHA0WJdRX/ eiWHSVNMNOcsZFTDJ6KRWBWXDnpX9HvFkDKX90Js83Ulico68BTJuzWB+OvT3pOfMwFR J1GigVgOxZUqisdXcCpwvfymIcWdmjlfk+KjQSpzA9MTsOXH//cvRZgVxKYPbxtw3jlk R5whCzU9lVNbDvRjvtwD3aWVaHVyusNnR3qLAi57fYKodD+sC0nrBuyWdQxba5HPERBE dXMLAQEQ8WwgXqYFffOEIT4AMJ3oVpZNuJEWIlCsqp5/JCkBG8VZDHUxXdw54yO7mB+E cw6w== X-Gm-Message-State: AOJu0YxayBJc5X7WvhVeuB9cpFWDpA/bxMQRRLX7QyZBd7UCpDZYcPtl TDwxBKF8iK6SL62MYXjRD0HwHokrv87rBHbgOWnR1fWhz0H6v8e1hmaGYw== X-Google-Smtp-Source: AGHT+IEn5DvhlHKAL/cVZlNkjGs7gnG6Up/Bbp8PgqDkgXbGB4DfeTXiSa/5itF2LpGL4Mcf6PHTKw== X-Received: by 2002:a17:90b:3c47:b0:2e2:d821:1b78 with SMTP id 98e67ed59e1d1-2e9b14734f1mr14876090a91.0.1731294209191; Sun, 10 Nov 2024 19:03:29 -0800 (PST) Original-Received: from [192.168.1.2] (syn-023-240-098-037.res.spectrum.com. [23.240.98.37]) by smtp.googlemail.com with ESMTPSA id 98e67ed59e1d1-2e9a5feb50bsm7462681a91.53.2024.11.10.19.03.28 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 10 Nov 2024 19:03:28 -0800 (PST) X-Mozilla-News-Host: news://news.gmane.io:119 Content-Language: en-US Received-SPF: pass client-ip=2607:f8b0:4864:20::1032; envelope-from=jporterbugs@gmail.com; helo=mail-pj1-x1032.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:325391 Archived-At: Currently, use-package uses the "legacy" 'define-key' by way of the bind-key package. This trips me up sometimes, since the spellings of keys are slightly different between 'define-key' and the newer 'keymap-set' (I mostly run into this when remapping a command). Would there be any interest in adding support (somehow) to use-package for 'keymap-set' and friends? I'm open to options for the specifics here. For example, bind-key is also useful for providing 'describe-personal-keybindings'. Maybe we could enhance bind-key to optionally work more like 'keymap-set'? That could be with some new option, like 'bind-key-use-keymap-set', or some new function, like 'keymap-bind-key'[1]. Any thoughts? If this is something others would like, I'd be happy to implement this. [1] This could use a better name, but this name should hopefully suffice for discussion purposes.