From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tom Browder Newsgroups: gmane.emacs.help Subject: Re: Function menu missing from top window bar!! Date: Fri, 30 Dec 2016 18:07:52 -0600 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1483147112 31480 195.159.176.226 (31 Dec 2016 01:18:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 31 Dec 2016 01:18:32 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Dec 31 02:18:28 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cN8JR-00078h-Ve for geh-help-gnu-emacs@m.gmane.org; Sat, 31 Dec 2016 02:18:22 +0100 Original-Received: from localhost ([::1]:42100 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cN8JW-0000ZC-QF for geh-help-gnu-emacs@m.gmane.org; Fri, 30 Dec 2016 20:18:26 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46678) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cN7Du-00004z-Oe for help-gnu-emacs@gnu.org; Fri, 30 Dec 2016 19:08:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cN7Dt-0003vF-Qg for help-gnu-emacs@gnu.org; Fri, 30 Dec 2016 19:08:34 -0500 Original-Received: from mail-oi0-x236.google.com ([2607:f8b0:4003:c06::236]:35953) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cN7Dt-0003uy-LM for help-gnu-emacs@gnu.org; Fri, 30 Dec 2016 19:08:33 -0500 Original-Received: by mail-oi0-x236.google.com with SMTP id v84so435404345oie.3 for ; Fri, 30 Dec 2016 16:08:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Jq44ZyADVOH6dg4/4yAUHL6IXDfYgUbQTg6mNw+joyM=; b=MtDK7amJYfb8SK3RWfrGx/Vm8oyKFh8iQaOziBlr60ICkJx7FoaAqL7J3InixLIHwE SI1VjVv+pOiLB92K5O1gMKvAJ0pQPeWp8mKqm6lfMXnnqGQtQkLXoBd0fpYSZL8UEH85 012pcoqpJHPOayV1NNEdxLv/0cvoo5ORlgA7oNDrrXUwSRNlJ0S5WCOTfG0FoPJzsFDo Vp+7aovHPTfsdub/i6eOMEhdmSTDUfSs5ZEOJzXL+axwZpLtaGzEIafbV0xuuFuPejBv ZQkR8zeRJIMShDHLviCP4Cbf6piAUg34LY5oZqTapii9nYoIQOzXJwnUbY3xdlFMz+et z6/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Jq44ZyADVOH6dg4/4yAUHL6IXDfYgUbQTg6mNw+joyM=; b=DT9JAhx8xnAPhY8OOKnQQKUvHcufha4z9B10Igw/sDb8pIKfp+ntF7loyYxlZDKtz+ llhTmm1rrcravegVOjJ5UFYWAGOjjUzgpa2a4eH5jDe5ghUhW6mcaYM2IHDv/2dUtrFU QumM3mZyip94DgCWWMVJt8CnD96zFHlP2uK+BZXQh6fMk5SQ5MT7Bpn7gTmJ7I1vUPVA xpUJi2mfaua0bG64OhaG5oegx3m9SloKn43/u3Bh+/tKWvixktdxyLSu0yi+Ab/vN1Z3 x+290g2c0yjCEe9c+KesUgxIM0zQnL2x2j5Uz375WofN0ax+QSCnPD2qMfrRdlYTGlOu E/ig== X-Gm-Message-State: AIkVDXL3akYeqrTDItmlsDWoKVYkti2C6ZM8Tzu33qHc69BrmgVKw3eOrb5QIWu0ljAAnePlAqHIVWMlH+jCkg== X-Received: by 10.157.7.138 with SMTP id 10mr15110845oto.27.1483142912924; Fri, 30 Dec 2016 16:08:32 -0800 (PST) Original-Received: by 10.157.26.106 with HTTP; Fri, 30 Dec 2016 16:07:52 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4003:c06::236 X-Mailman-Approved-At: Fri, 30 Dec 2016 20:17:44 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:112024 Archived-At: On Fri, Jul 15, 2016 at 8:56 AM, Stefan Monnier wrote: > > > 1. A top bar menu button that shows the function declarations for > > various languages. Click on a desired function and point goes there. > > You mean XEmacs's func-menu (IIRC)? It's called "imenu" in Emacs. > Try M-x imenu RET or M-x imenu-add-menubar-index RET Okay, I have that working. Now I just need to sort the entries. Here is the fragment of code that does the menu entry: ;;======================================= (defvar perl6-imenu-generic-expression `( ;; the names are in reverse desired order since they are evaluated here last first ("Classes" ,perl6-classes-regex 1) ("Variables" ,perl6-vars-regex 1) ("Subs/Methods" ,perl6-subs-regex 1) ) "Define interesting points in the Perl 6 buffer for `imenu'. This is used to set `imenu-generic-expression' when Perl 6 mode is entered. Subsequent changes to `perl6-imenu-generic-expression' will not affect existing Perl 6 buffers because imenu-generic-expression is a local variable.") ;;============================================ Now, how do I get each submenu sorted by name? I see reference to a sort option, but not clear on how to add it to what I have. Thanks. Best regards, -Tom