From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hong Xu Newsgroups: gmane.emacs.bugs Subject: bug#74999: [PATCH v4] Use `keymap*-set' over `global-set-key'/`define-key' in elisp intro Date: Thu, 26 Dec 2024 14:05:01 -0800 Message-ID: <87h66qp0c2.fsf@topbug.net> References: <86ed1uzwhw.fsf@gnu.org> <20241226214814.52057-1-hong@topbug.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="21909"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.12.8; emacs 29.4 To: 74999@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 26 23:06:25 2024 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 1tQvzt-0005Wy-96 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 Dec 2024 23:06:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tQvzY-0002E3-LH; Thu, 26 Dec 2024 17:06:04 -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 1tQvzW-0002AL-6X for bug-gnu-emacs@gnu.org; Thu, 26 Dec 2024 17:06:02 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tQvzV-0000mn-Tg for bug-gnu-emacs@gnu.org; Thu, 26 Dec 2024 17:06:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=98Ozd33O/0BQvM7XFt2/nZXZ/U6ACWvDDZ2v9mhDKcc=; b=XlnIHcrmbu/Ovhqcy6F1gFdTFMiWSM35I1bIEiCOLihKcygPah8ZmmktYHRwFFqe+acJLcwk8QenSqOSgZ6w1LO8WHxXO3eUP1HMSOdxdXcYQKKatVCJrnYpRORfr8+ligO6HXpzKNGNzdZvb2wCyEssWAECYxrHHRx/iP8YrkhBAkUqcTGamyVhNOl7aFYsZUcC++oQHRgVasOh/ZSsDkAauH/AsqGPu9RdhX6Ekn2G3QmNBFtUMOPq0lcAD5Jv34VQwXYqc5lMuMTDU9JYTXRpqCcaP9SVld5OB19+TH9LGu4cKI1FtyUFTOK1QVhkHhPA/D4kW2Rd/N6ytW/e5g==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tQvzV-0004yu-OK for bug-gnu-emacs@gnu.org; Thu, 26 Dec 2024 17:06:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Hong Xu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Dec 2024 22:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74999 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 74999-submit@debbugs.gnu.org id=B74999.173525070818910 (code B ref 74999); Thu, 26 Dec 2024 22:06:01 +0000 Original-Received: (at 74999) by debbugs.gnu.org; 26 Dec 2024 22:05:08 +0000 Original-Received: from localhost ([127.0.0.1]:42572 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tQvyd-0004uv-St for submit@debbugs.gnu.org; Thu, 26 Dec 2024 17:05:08 -0500 Original-Received: from sender4-of-o52.zoho.com ([136.143.188.52]:21251) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tQvyb-0004sv-TW for 74999@debbugs.gnu.org; Thu, 26 Dec 2024 17:05:06 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1735250704; cv=none; d=zohomail.com; s=zohoarc; b=aEChYaDNZAdpaCryCOCj0N9d3gGfmH90XqMWjnAfNcDqkHcSb59CaOqfYGOPKHBjnnccXbikp+m6orzVJm5ITS8qsp2dPVNhCVt7+eGKvuZzj/6q/RLxGM6V9RWca3mc9/DAt2EBmWH6cfn5WFDeZ6Qa6evsvr6qKjQ9MQtXEs8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1735250704; h=Content-Type:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=98Ozd33O/0BQvM7XFt2/nZXZ/U6ACWvDDZ2v9mhDKcc=; b=AelldNrUYRFaR7uvEUdQ+WVI3uE2wyhcAGTvpl+5QENdtNzL9pXTck0hENS7ynkoZrDT0fiVqs5XLKN7yVI72o2569wo0LBlN2y6dNwDRgXRv/+DZEOlpNrNqEDFofgmvRNSAKe63hs7lDU3E8JIj5EPs76WDTu0NLHcIrPT6k4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=topbug.net; spf=pass smtp.mailfrom=hong@topbug.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1735250704; s=zoho; d=topbug.net; i=hong@topbug.net; h=From:From:To:To:Subject:Subject:In-Reply-To:References:Date:Date:Message-ID:MIME-Version:Content-Type:Message-Id:Reply-To:Cc; bh=98Ozd33O/0BQvM7XFt2/nZXZ/U6ACWvDDZ2v9mhDKcc=; b=WAywRVR8gaC2G98EnVCjYk0iJNzb+otLoMfgwFD8Yi61NhJjkSdW8wWrqEwd3Y0w t1pLok6+m/b23KrPsMQhbwjXmEjmJNSSe6zYn+8+HcFKbJIVCxum5mF6gjE9yoGgA2o PSRcxPXaWBkDJLAYNkoW1xcRt8UUdqzBZnLoGUn8= Original-Received: by mx.zohomail.com with SMTPS id 1735250701917910.776667288921; Thu, 26 Dec 2024 14:05:01 -0800 (PST) In-Reply-To: <20241226214814.52057-1-hong@topbug.net> (Hong Xu's message of "Thu, 26 Dec 2024 13:46:39 -0800") X-ZohoMailClient: External 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:297796 Archived-At: On 2024-12-26 Thu 13:46 GMT-08, Hong Xu wrote: > * doc/lispintro/emacs-lisp-intro.texi (Key Bindings): Since > `global-set-key' and `define-key' are considered legacy, we encourage > `keymap-global-set' and `keymap-set' now. > --- > <...> > > +@findex global-unset-key > +Historically, keys are unbound globally using a lower-function, > +@code{global-unset-key}, which is now considered legacy. Its key > +binding format follows that of @code{global-set-key}. The above key > +unbinding example can be rewritten as: > +@smallexample > +@group > +;;; Unbind 'C-x f' > +(global-unset-key "\C-xf") > +@end group > +@end smallexample > + I'm thinking about dropping this paragraph, because `global-unset-key' isn't commonly seen, and there's no point to over fill an introduction with less used functions. Please advice. -- Hong