help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help with speedbar and tags in PHP mode?


From: n8vo
Subject: Help with speedbar and tags in PHP mode?
Date: Tue, 30 Oct 2007 11:34:26 -0700
User-agent: G2/1.0

Hi, I'm pretty new to emacs, and I am having much trouble getting
functions and methods in PHP files to appear in the tag hierarchy in
my speedbar.  I can get it to work for other languages (Perl, C and
Lisp at least), but the best I've been able to blunder up for a PHP
file, if I open the file and explicitly enter php-mode (instead of a
MMM mode) is one tag, for the class:

[-] Dp.php
1: {-} Classes
2:  > Dp

But it doesn't show any of the methods inside the class, or any tags
inside other files in the directory structure.

The *Messages* buffer shows this is happening for most PHP files
Fetching etags... [2 times]
Sorry, no support for a file of that extension

my .emacs file has these explicit settings from the Customize menus:
 '(php-mode-speedbar-open t)
 '(php-speedbar-config nil)
 '(speedbar-load-hook nil)
 '(speedbar-show-unknown-files t)
 '(speedbar-supported-extension-expressions (quote (".php" ".pac"
".js" "\\.\\(inc\\|php[s34]?\\)" ".[ch]\\(\\+\\+\\|pp\\|c\\|h\\|xx\
\)?" ".tex\\(i\\(nfo\\)?\\)?" ".el" ".emacs" ".l" ".lsp" ".p" ".java"
".f\\(90\\|77\\|or\\)?" ".ada" ".p[lm]" ".tcl" ".m" ".scm" ".pm" ".py"
".g" ".s?html" ".ma?k" "[Mm]akefile\\(\\.in\\)?")))
 '(speedbar-track-mouse-flag t)
 '(speedbar-use-imenu-flag t)
 '(speedbar-verbosity-level 10)


I've scoured the wiki and stared at speedbar.el, but I can't figure
out why it's not working.
>From what I understand, it should be using imenu and never getting to
the part where it says "no support for a file of that extension"....

Versions:
 Windows XP with cygwin
 23.0.0.1 (i386-mingw-nt5.1.2600)
 php-mode 1.2.0 (from http://php-mode.sourceforge.net)
 xml/sgml/mmm/etc webdev mode as described in " Emacs WebDev
Environment" by Darren Brierton at (http://www.dzr-web.com/people/
darren/projects/emacs-webdev/#mmm)

Can anyone help me or ask clarifying questions to point me in the
right direction?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]