From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Making new menu after Tools using keymap-set-after Date: Wed, 19 Jul 2023 19:33:31 +0300 Message-ID: <83ilaf509w.fsf@gnu.org> References: <83lefd5b1m.fsf@gnu.org> <5CJ7IA6FUfpae6IJLkriZ9erzWkJP7y-GsJUYNBD1MXDgZG2q6Ho1gAxhmD_yf1fDZ9Ycw520lPskK17X77xwjM3n_VruWHV6kP7owNkWEo=@proton.me> <83jzux59hs.fsf@gnu.org> <29fb2GtvrRLnbZsTQfLCxN53auLjOAMICAUTFo4F9ghAVjIrKdAagZFf5k9NG0njuVyI381ZDnm62ZIg_FiLJ9fAjtNdKuDgNTsu8CEIdF4=@proton.me> <83ilag63ji.fsf@gnu.org> <878rbcp8qp.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3589"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 19 18:33:48 2023 Return-path: Envelope-to: geh-help-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 1qMA7X-0000e8-C9 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 19 Jul 2023 18:33:47 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qMA6q-0003uF-P9; Wed, 19 Jul 2023 12:33:04 -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 1qMA6p-0003sJ-Co for help-gnu-emacs@gnu.org; Wed, 19 Jul 2023 12:33:03 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qMA6p-0004sV-5C for help-gnu-emacs@gnu.org; Wed, 19 Jul 2023 12:33:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=mOeGjEJ4IouoRCj4BeMUzT7tY6pNpAGiMh6gjIcvahE=; b=nuHc0e9YPjMTUFxw+aTp 3jsatCo6d5w+lJATr0jSA6UIA+7qIi6Tp+M6KP6Vl2obYx4LVQ8Pp201aRetlGQGvqDa7HT5Yh/o6 irWNFaNu9mVciztgENyZDAeVm9HjG6WzyGposJYOY929nZgZ6saWMmzazpHfbubMwck0/DpAXYtF3 RzyMMDzikFdvyvQtwqZvawq6lsD4jwBdOokOFNqXVOYGnRg9r1MWHpGO5E0/RQhDXrj0unjN562Z0 tMiagj76gD+sTuKQvBjisHd/lpV9Wd0pSvWE7G/3XHmvAX+LbcmWLQxiZj/icLIWfNk3sGE6M/PXz jBUHvTaxLKV9yQ==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qMA6k-0002rb-VI for help-gnu-emacs@gnu.org; Wed, 19 Jul 2023 12:33:00 -0400 In-Reply-To: (message from uzibalqa on Wed, 19 Jul 2023 15:58:10 +0000) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:144334 Archived-At: > Date: Wed, 19 Jul 2023 15:58:10 +0000 > From: uzibalqa > > On Wednesday, July 19th, 2023 at 9:10 PM, Robert Pluim wrote: > > > > > > > > > On Wed, 19 Jul 2023 08:08:32 +0000, uzibalqa uzibalqa@proton.me said: > > > > > > uzibalqa> (defvar mcp-kdf (make-sparse-keymap "MCP")) > > > > uzibalqa> (keymap-set-after global-map > > > > uzibalqa> " " (cons "MCP" mcp-kdf) 'tools) > > > > > > uzibalqa> complains about 'tools > > > > > > Works for me in emacs-30, it gives me an 'MCP' menu just after > > Tools. What error are you seeing? > > > > > > Robert > > -- > > With GNU Emacs 29.0.50, I get > > Debugger entered--Lisp error: (error "tools is not a valid key definition; see ‘key-valid-p’") If this is in "emacs -Q", you probably have a broken snapshot of Emacs 29, the above works with the current emacs-29 branch. If "emacs -Q" does work, then maybe some of your customizations cause the problem.