From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Heime Newsgroups: gmane.emacs.help Subject: RE: [External] : Re: About Package using a menu Date: Tue, 18 Oct 2022 20:14:06 +0000 Message-ID: References: <87czaqyr2j.fsf@dataswamp.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="24217"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Christopher Dimech , Emanuel Berg , "help-gnu-emacs@gnu.org" To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 18 22:18:24 2022 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 1okt2e-00063k-5W for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 18 Oct 2022 22:18:24 +0200 Original-Received: from localhost ([::1]:60936 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1okt2c-00051m-UD for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 18 Oct 2022 16:18:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51924) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oksyq-0004yr-B7 for help-gnu-emacs@gnu.org; Tue, 18 Oct 2022 16:14:28 -0400 Original-Received: from mail-4325.protonmail.ch ([185.70.43.25]:42471) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oksyn-0002B0-BE for help-gnu-emacs@gnu.org; Tue, 18 Oct 2022 16:14:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1666124062; x=1666383262; bh=UMePaJfKYjiJBAxZ5xDiKJwM9AGjEGv4hT85bw5Db1o=; 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; b=CP89PQfP/6TAz8eXEtc931z/IM6epKrk188pBqrEN+3KsAhAdReqy8pdmnYtwoRkg jJFhzW7nWD5nU6Cbf4ewgkBb9skhb6iWqa5tM0N6+u9QW7Ft9fVHcXALYt8S9dhwE4 0rVyqKF3MHo/6zN9ckOfCMtmlPEiNNc7T3uZQ2Ew23VR483Mf21TYfpvJDEcinuhn/ zMxo3nBElBJWvr5xmhURjGO7EAXRSrWzaDrZxxrxFacDrRotlU1qt0QLSt3O+LpJim bOBWdGXS6o/xJN0dbr2A2qoBq33ENOU95MX+BaIBmq1uHEBDtlzB8aASYMBiKR9D3N keUroRsNB+WuQ== In-Reply-To: Feedback-ID: 57735886:user:proton Received-SPF: pass client-ip=185.70.43.25; envelope-from=heimeborgia@protonmail.com; helo=mail-4325.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, FREEMAIL_FROM=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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" Xref: news.gmane.io gmane.emacs.help:140135 Archived-At: Sent with Proton Mail secure email. ------- Original Message ------- On Tuesday, October 18th, 2022 at 6:14 PM, Drew Adams wrote: > > Have been playing with constructing a "Xepty menu" with a "Daphne subme= nu", > > but how do I make it to display? >=20 >=20 > Keep reading. >=20 > Node Menu Keymaps has everything you need. > Node Menu Example shows you an example. > Etc. Have managed to display a parent menu. Would you holp a bit on how to inse= rt a submenu? Here is the making of a parent menu "xepty-menu". (defvar xepty-menu (make-sparse-keymap "xepty")) (define-key-after global-map [menu-bar xepty-menu] (cons "Xepty" (make-sparse-keymap "xepty")) 'tools ) -------------------- Here I want to make submenu "daphne-menu" (define-key daphne-menu [xepty-menu] '(menu-item "Continue Replace" multifile-continue :help "Continue last tags replace operation")) (define-key daphne-menu [xepty-menu] '(menu-item "Replace in tagged files" tags-query-replace :help "Interactively replace a regexp in all tagged files")) (define-key daphne-menu [xepty-menu] '(menu-item "--")) ---------------------------- How can I add submenu daphne-menu in the following? (define-key global-map [menu-bar xepty-menu daphne] '("Next Line" . next-line))