From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: uzibalqa via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#64699: Invalid key definition for keymap-set-after Date: Tue, 18 Jul 2023 10:00:06 +0000 Message-ID: Reply-To: uzibalqa Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4636"; mail-complaints-to="usenet@ciao.gmane.io" To: 64699@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 18 12:01:29 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 1qLhWK-0000z8-I1 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 18 Jul 2023 12:01:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qLhW2-0008WD-7c; Tue, 18 Jul 2023 06:01:15 -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 1qLhVu-0008W1-Qj for bug-gnu-emacs@gnu.org; Tue, 18 Jul 2023 06:01:03 -0400 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 1qLhVu-0006E7-Dt for bug-gnu-emacs@gnu.org; Tue, 18 Jul 2023 06:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qLhVu-00047t-7v for bug-gnu-emacs@gnu.org; Tue, 18 Jul 2023 06:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: uzibalqa Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 18 Jul 2023 10:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 64699 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.168967444015824 (code B ref -1); Tue, 18 Jul 2023 10:01:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Jul 2023 10:00:40 +0000 Original-Received: from localhost ([127.0.0.1]:51594 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qLhVY-00047A-4J for submit@debbugs.gnu.org; Tue, 18 Jul 2023 06:00:40 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:33562) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qLhVW-00046w-O0 for submit@debbugs.gnu.org; Tue, 18 Jul 2023 06:00:39 -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 1qLhVP-0008T6-LT for bug-gnu-emacs@gnu.org; Tue, 18 Jul 2023 06:00:32 -0400 Original-Received: from mail-40135.protonmail.ch ([185.70.40.135]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qLhVL-0005xm-0C for bug-gnu-emacs@gnu.org; Tue, 18 Jul 2023 06:00:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1689674422; x=1689933622; bh=X0WIEg08Grv88pA88rGosuB21zZn58XO9vyJfgx1sPU=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=StnEW7tTAxyxCTqmNUKxSvQMxdW9fuF5KMiKb9y4Q8KD5q2dQHgjABbzVrCTHh4WM 2LEc0c7rR8gE/YLrG6c0UxbectJlcEnK6Bj4za0gPxRbgOH9T8khWKwxtNZ4WngOKO 6f+Jxzu0XtcGkjBQ/SjEq5N7QPvdIw1atUkWuB8CJ9jOyKnsHKJH2Wo1QvFWU28zcu Pq/EaIe3AuCK9gIxVBjeQzsyoK/LHWCbSBNJ6qQA8wcVVli5OhJKIZxBFqd7SCf82x QLe/BlRe3sPuqnH71p9D7QXVMHekyfca8Y6A494ruc2daRspQvoaTIX6S0lPU388qX 6aguOLOZVGP8w== Feedback-ID: 52887082:user:proton Received-SPF: pass client-ip=185.70.40.135; envelope-from=uzibalqa@proton.me; helo=mail-40135.protonmail.ch 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, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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:265430 Archived-At: It is recommended that 'keymap-set-after' is used instead of 'define-key-af= ter'. But replacing (defvar mcp-kdf (make-sparse-keymap "MCP")) (define-key-after global-map [menu-bar mcp-topm] (cons "MCP" mcp-kdf) 'tools) with=20 (defvar mcp-kdf (make-sparse-keymap "MCP")) (keymap-set-after global-map [menu-bar mcp-topm] (cons "MCP" mcp-kdf) 'tools) gives the following error (error "[menu-bar mcp-topm] is not a valid key definition;...") signal(error ("[menu-bar mcp-topm] is not a valid key definition;...")) error("%S is not a valid key definition; see `key-valid-p..." [menu-bar m= cp-topm]) keymap--check([menu-bar mcp-topm]) keymap-set-after((keymap #^[nil nil keymap=20 #^^[3 0 set-mark-command move-beginning-of-line backward-char mode-specific= -command-prefix delete-char move-end-of-line forward-char keyboard-quit hel= p-command indent-for-tab-command electric-newline-and-maybe-indent kill-lin= e recenter-top-bottom newline next-line open-line previous-line quoted-inse= rt isearch-backward isearch-forward transpose-chars universal-argument scro= ll-up-command kill-region Control-X-prefix yank suspend-frame ESC-prefix to= ggle-input-method abort-recursive-edit nil undo self-insert-command self-in= sert-command self-insert-command self-insert-command self-insert-command ..= .] #^^[1 0 #^^[2 0=20 #^^[3 0 set-mark-command move-beginning-of-line backward-char mode-specific= -command-prefix delete-char move-end-of-line forward-char keyboard-quit hel= p-command indent-for-tab-command electric-newline-and-maybe-indent kill-lin= e recenter-top-bottom newline next-line open-line previous-line quoted-inse= rt isearch-backward isearch-forward transpose-chars universal-argument scro= ll-up-command kill-region Control-X-prefix yank suspend-frame ESC-prefix to= ggle-input-method abort-recursive-edit nil undo self-insert-command self-in= sert-command self-insert-command self-insert-command self-insert-command ..= .] self-insert-command self-insert-command self-insert-command self-insert-= command self-insert-command self-insert-command self-insert-command self-in= sert-command self-insert-command self-insert-command self-insert-command se= lf-insert-command self-insert-command self-insert-command self-insert-comma= nd self-insert-command self-insert-command self-insert-command self-insert-= command self-insert-command self-insert-command self-insert-command self-in= sert-command self-insert-command self-insert-command self-insert-command se= lf-insert-command self-insert-command self-insert-command self-insert-comma= nd self-insert-command] self-insert-command self-insert-command self-insert= -command self-insert-command self-insert-command self-insert-command self-i= nsert-command self-insert-command self-insert-command self-insert-command s= elf-insert-command self-insert-command self-insert-command self-insert-comm= and self-insert-command] self-insert-command self-insert-command self-inser= t-command self-insert-command self-insert-command self-insert-command self-= insert-command self-insert-command self-insert-command self-insert-command = self-insert-command self-insert-command self-insert-command self-insert-com= mand self-insert-command self-insert-command self-insert-command self-inser= t-command self-insert-command self-insert-command self-insert-command self-= insert-command self-insert-command self-insert-command self-insert-command = self-insert-command self-insert-command self-insert-command self-insert-com= mand self-insert-command self-insert-command self-insert-command self-inser= t-command ...] (67108908 . text-scale-decrease) (67108910 . text-scale-incr= ease) (f5 . modus-themes-toggle) (paste . clipboard-yank) (copy . clipboard= -kill-ring-save) (cut . clipboard-kill-region) (f18 . clipboard-yank) (f16 = . clipboard-kill-ring-save) (f20 . clipboard-kill-region) (C-wheel-down . m= ouse-wheel-text-scale) (C-wheel-up . mouse-wheel-text-scale) (C-mouse-5 . m= ouse-wheel-text-scale) (C-mouse-4 . mouse-wheel-text-scale) (C-M-wheel-down= . mouse-wheel-global-text-scale) (C-M-wheel-up . mouse-wheel-global-text-s= cale) (C-M-mouse-5 . mouse-wheel-global-text-scale) (C-M-mouse-4 . mouse-wh= eel-global-text-scale) (M-wheel-right . mwheel-scroll) (M-wheel-left . mwhe= el-scroll) (M-wheel-down . mwheel-scroll) (M-wheel-up . mwheel-scroll) (M-m= ouse-7 . mwheel-scroll) (M-mouse-6 . mwheel-scroll) (M-mouse-5 . mwheel-scr= oll) (M-mouse-4 . mwheel-scroll) (S-wheel-right . mwheel-scroll) (S-wheel-l= eft . mwheel-scroll) (S-wheel-down . mwheel-scroll) (S-wheel-up . mwheel-sc= roll) (S-mouse-7 . mwheel-scroll) (S-mouse-6 . mwheel-scroll) (S-mouse-5 . = mwheel-scroll) (S-mouse-4 . mwheel-scroll) (wheel-right . mwheel-scroll) (w= heel-left . mwheel-scroll) (wheel-down . mwheel-scroll) ...) [menu-bar mcp-= topm] ("MCP" keymap "MCP") tools) mcp-menubar() eval-buffer(# nil "/home/hagbard/Opstk/bin/gungadi= n-1.0/typex/oktant/..." nil t) ; Reading at buffer position 10068 load-with-code-conversion("/home/hagbard/Opstk/bin/gungadin-1.0/typex/okt= ant/..." "/home/hagbard/Opstk/bin/gungadin-1.0/typex/oktant/..." nil t) require(mcp)