From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lin Jian via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#62673: 28.2; The example in "(elisp) Prefix Keys" is wrong Date: Wed, 05 Apr 2023 14:43:43 +0800 Message-ID: <87pm8iu8jr.fsf@linj.tech> Reply-To: Lin Jian Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15795"; mail-complaints-to="usenet@ciao.gmane.io" To: 62673@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 05 08:52:25 2023 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 1pjx0L-0003sz-G9 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 05 Apr 2023 08:52:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pjx01-0005EK-J8; Wed, 05 Apr 2023 02:52:05 -0400 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 1pjwzz-0005EA-0I for bug-gnu-emacs@gnu.org; Wed, 05 Apr 2023 02:52:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pjwzy-0003F7-8i for bug-gnu-emacs@gnu.org; Wed, 05 Apr 2023 02:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pjwzx-0002uo-R7 for bug-gnu-emacs@gnu.org; Wed, 05 Apr 2023 02:52:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lin Jian Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Apr 2023 06:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 62673 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.168067747411006 (code B ref -1); Wed, 05 Apr 2023 06:52:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Apr 2023 06:51:14 +0000 Original-Received: from localhost ([127.0.0.1]:50701 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjwzB-0002rQ-I7 for submit@debbugs.gnu.org; Wed, 05 Apr 2023 02:51:13 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:51642) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjwz9-0002r9-Ri for submit@debbugs.gnu.org; Wed, 05 Apr 2023 02:51:12 -0400 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 1pjwz5-0005Ai-Ie for bug-gnu-emacs@gnu.org; Wed, 05 Apr 2023 02:51:11 -0400 Original-Received: from mail.linj.tech ([5.255.109.209]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pjwz3-0002lN-4R for bug-gnu-emacs@gnu.org; Wed, 05 Apr 2023 02:51:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linj.tech; s=mail; t=1680677458; bh=1cPBPr01/4ImQkDFyxlCC8lJEqJ+xMDuTgIxXq4vc5E=; h=From:To:Subject:Date; b=DImkpnrO4OEavNjqe9emk6LdZo0ErLKkpPInmIZLVKRVKcMUtNreCW1m4sdjfJSiW 0ssC2PqxfuzKocXexXJNLyr7+2IyNoi2JmHk/exDd5FFM+HqXWSXj/CZ3oZFPN6wok L077V7bN4BqRZhGcVQWEf5sDj2KPfKf/TMz59otYAc7pjlcHzOOjfT+PDPCE60bb16 0S2WEG+NnfIIqY3PwO7gpcLwJcHnmetI9ALnM5y8NctLn1+yy8+xxRnbH+2rhKrJAo e+JuDAirKYrvVcAFe7CsjTZN+BVIUaUI0qg8O4CtQ5DKLNDNiejE8Rq+gZ2lYtXza0 JDxJMA2Z13YOA== Received-SPF: pass client-ip=5.255.109.209; envelope-from=me@linj.tech; helo=mail.linj.tech 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_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:259248 Archived-At: Reproducing steps: 1. emacs -Q 2. eval the example in the *scratch* buffer 2.1. (use-local-map (make-sparse-keymap)) => nil ;; good 2.2. (local-set-key "\C-p" ctl-x-map) => (keymap ...) ;; bad: manual says it returns nil 2.3. (key-binding "\C-p\C-f") => find-file ;; good 2.4. (key-binding "\C-p6") => 2C-command ;; bad: manual says it returns nil