From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: daniel Newsgroups: gmane.emacs.help Subject: Re: create large menu on the fly Date: Fri, 7 Jun 2013 10:19:06 +0100 Message-ID: References: <51B1748B.9000803@easy-emacs.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1370596786 21480 80.91.229.3 (7 Jun 2013 09:19:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Jun 2013 09:19:46 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: =?ISO-8859-1?Q?Andreas_R=F6hler?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 07 11:19:47 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ukspm-0007tk-Fn for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Jun 2013 11:19:46 +0200 Original-Received: from localhost ([::1]:38990 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ukspm-0004MF-1I for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Jun 2013 05:19:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50950) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkspY-0004MA-J3 for help-gnu-emacs@gnu.org; Fri, 07 Jun 2013 05:19:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UkspT-00039P-IL for help-gnu-emacs@gnu.org; Fri, 07 Jun 2013 05:19:32 -0400 Original-Received: from mail-pb0-x230.google.com ([2607:f8b0:400e:c01::230]:50953) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkspT-00039H-Bw for help-gnu-emacs@gnu.org; Fri, 07 Jun 2013 05:19:27 -0400 Original-Received: by mail-pb0-f48.google.com with SMTP id md4so4452096pbc.35 for ; Fri, 07 Jun 2013 02:19:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=I2lC8f9FMq3x/Ogv7KAvyU3Z5gdw4Y03kU2dp7r+8O0=; b=hNnZmsAEDY+hbqHVYk4fEvy3RP5bhOqnmnS9chT0kauo2f7xoNR+SdFSwNqg6MQlL2 +ldyiE+Qz8hMXPkRv3TDjw/DkueoFeMT0YYhDluejNk/NdP01Z0Qm8AjAI0POcOUZmOE 1NC69MIMiMlx8U+CDdrQ2kOsYApNmGoxAXNEIzoO3X29ANgtIJGZArG3JtqZkasIoKCN tVlT95h6WbUQBDepQNroCU6PSfsp/WSOsGPqzWvTLxX3GARNzUe5Cz33V0GLcS+h8Ay5 Yq3hhAbsX66LxXdD88Xq6yFQqQb0sk2rIRfuzroECjFHvbVhdRwKQAvStcOZB/46pv2+ k9tw== X-Received: by 10.68.232.194 with SMTP id tq2mr43087900pbc.133.1370596766394; Fri, 07 Jun 2013 02:19:26 -0700 (PDT) Original-Received: by 10.70.89.129 with HTTP; Fri, 7 Jun 2013 02:19:06 -0700 (PDT) In-Reply-To: <51B1748B.9000803@easy-emacs.de> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c01::230 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:91371 Archived-At: 2013/6/7 Andreas R=F6hler > From a first entry call your Build-function. > When created, pass it to the mode-map, i.e. redefine mode-map. Reload > mode. Extended menu should appear. > And so on. > Below an example how to create a menu entry from a single known command i= n > python-mode.el. > I saw your code in devel/python-mode-util.el which is not loaded by default in python-mode. Don't know how to execute it! Can you give more details? 2013/6/7 Stefan Monnier > Oddly enough, Emacs's current C code can't do that: the C code traverses > the whole menu, turns it into a new data-structure using the format > expected by the UI toolkit, and passes it to the toolkit. > In that case there is no problem because I just optimize my filesystem menu generation so it is much faster. Anyway, I wish to know!