From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: uzibalqa Newsgroups: gmane.emacs.help Subject: Re: Making new menu after Tools using keymap-set-after Date: Wed, 19 Jul 2023 21:00:22 +0000 Message-ID: References: <5CJ7IA6FUfpae6IJLkriZ9erzWkJP7y-GsJUYNBD1MXDgZG2q6Ho1gAxhmD_yf1fDZ9Ycw520lPskK17X77xwjM3n_VruWHV6kP7owNkWEo=@proton.me> <83jzux59hs.fsf@gnu.org> <29fb2GtvrRLnbZsTQfLCxN53auLjOAMICAUTFo4F9ghAVjIrKdAagZFf5k9NG0njuVyI381ZDnm62ZIg_FiLJ9fAjtNdKuDgNTsu8CEIdF4=@proton.me> <83ilag63ji.fsf@gnu.org> <878rbcp8qp.fsf@gmail.com> <83ilaf509w.fsf@gnu.org> 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="18771"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 19 23:01:21 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 1qMEIS-0004ki-Da for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 19 Jul 2023 23:01:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qMEHt-0003dW-Sz; Wed, 19 Jul 2023 17:00:47 -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 1qMEHq-0003bL-I8 for help-gnu-emacs@gnu.org; Wed, 19 Jul 2023 17:00:42 -0400 Original-Received: from mail-4027.protonmail.ch ([185.70.40.27]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qMEHm-0001O7-Vx for help-gnu-emacs@gnu.org; Wed, 19 Jul 2023 17:00:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1689800429; x=1690059629; bh=D5A71pyYo0j60UkF4wy1YC0TkVRKCWCQ8Yn6y6cct2s=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=hr2DdZG1po9ALP7OiJm+zAMHfj308ydmJhCiwSeM46ARPywaqK3oCTt/IMlXWpjfi 2LGTFluqR0ZHfa5tpd1i7utR7hDxf+Hxw6e2gJKTZUEDxuRCfaBNWQ4xqFuv6O3taz 1U1Sm2TlFmPwjxt6yByAtmvDGHxzWNjI8ajnsZBOG9bNzwF7BESWNYMwDBwbbqM25J rCXgyhut3+9VfjrACWs8x4qfLEey5J2KsfG8uIH/BZcIhyU1mYmcYzqQrQfrXf0mOJ jFe0sy94h2oCEjsohd5p/gN8sOZABm8lRTm/YCEKyLHpe35DshcTTxKYL3qbei21qN lNC5ulC9JZU1w== In-Reply-To: <83ilaf509w.fsf@gnu.org> Feedback-ID: 52887082:user:proton Received-SPF: pass client-ip=185.70.40.27; envelope-from=uzibalqa@proton.me; helo=mail-4027.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: 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:144346 Archived-At: ------- Original Message ------- On Thursday, July 20th, 2023 at 4:33 AM, Eli Zaretskii wrote= : > > Date: Wed, 19 Jul 2023 15:58:10 +0000 > > From: uzibalqa uzibalqa@proton.me > >=20 > > On Wednesday, July 19th, 2023 at 9:10 PM, Robert Pluim rpluim@gmail.com= wrote: > >=20 > > > > > > > > On Wed, 19 Jul 2023 08:08:32 +0000, uzibalqa uzibalqa@proto= n.me said: > > >=20 > > > uzibalqa> (defvar mcp-kdf (make-sparse-keymap "MCP")) > > >=20 > > > uzibalqa> (keymap-set-after global-map > > >=20 > > > uzibalqa> " " (cons "MCP" mcp-kdf) 'tools) > > >=20 > > > uzibalqa> complains about 'tools > > >=20 > > > Works for me in emacs-30, it gives me an 'MCP' menu just after > > > Tools. What error are you seeing? > > >=20 > > > Robert > > > -- > >=20 > > With GNU Emacs 29.0.50, I get > >=20 > > Debugger entered--Lisp error: (error "tools is not a valid key definiti= on; see =E2=80=98key-valid-p=E2=80=99") >=20 >=20 > 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. Got the function to work by installing emacs-30.0.50.1