From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim Johnson Newsgroups: gmane.emacs.help Subject: Re: imenu :: menu not visible in php-mode Date: Fri, 13 Aug 2010 19:40:11 -0500 Organization: AkWebsoft Message-ID: <-eedne0ONpZ2ePjRnZ2dnUVZ_o2dnZ2d@supernews.com> References: Reply-To: tim@johnsons-web.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1291866057 31553 80.91.229.12 (9 Dec 2010 03:40:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 03:40:57 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 09 04:40:53 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQXNF-0003FH-4l for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 04:40:53 +0100 Original-Received: from localhost ([127.0.0.1]:49614 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQXNE-0001EN-DT for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 22:40:52 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!news2.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.supernews.com!news.supernews.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Fri, 13 Aug 2010 19:40:10 -0500 Original-Newsgroups: gnu.emacs.help User-Agent: slrn/0.9.9p1 (Linux) Original-Lines: 35 Original-X-Trace: sv3-z24ED0J9+mXMTC880NIZMe8WAZnvsi/Yh+H+c4bEobIyAyyeX0277SwUiFeMz7qTaifKUE3wvx291eK!J7ROEaTpx9QojcMaUdn5JZZE5fSBu0gHhceneiisX7kJoYOqRr1PJY6uEZA/37VvelGne1PXSRYZ!vFumOBb8SA== Original-X-Complaints-To: www.supernews.com/docs/abuse.html X-DMCA-Complaints-To: www.supernews.com/docs/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 Original-Xref: usenet.stanford.edu gnu.emacs.help:180689 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:76567 Archived-At: On 2010-08-13, Tim Johnson wrote: > I am using the nXhtml package with emacs 23.1.1 GTK+ Version 2.20.0 on > linux (ubuntu 10.04). > > "Nxhtml Use Imenu" is set to 'on' in > nXhtml -> nXhtml Help and Setup -> Customize nXhtml > this configuration is saved as > '(nxhtml-use-imenu t) in the custom-set-variables > form in .emacs > > I can also verify that nxhtml-use-imenu is set to t > from emacs itself. Unfortunately, I still don't have > an imenu. > > What else do I need to do? I am answering my own query with a partial solution: I added an add-hook form in .emacs *in addition to* the nXhtml configuration. (add-hook 'php-mode-hook '(lambda () (imenu-add-menubar-index) (setq imenu-sort-function 'imenu--sort-by-name))) And now the index menu is rendered in php-mode. One minor problem: imenu does not appear to be indexing functions where the function name begins with '&' (the ampersand). Not a big deal. Perhaps this will help someone else. Any other comments are welcomed. regards -- Tim tim at johnsons-web.com or akwebsoft.com http://www.akwebsoft.com