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

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

Re: making Flymake work with PHP


From: Anselm Helbig
Subject: Re: making Flymake work with PHP
Date: Thu, 14 May 2009 20:58:56 +0200
User-agent: SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.7 Emacs/22.3 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI)

Hi!

> > > I'm new to emacs and I try to make Flymake work in php-mode.
> > > I have nXhtml installed (it has its flymake)
> > > I've took the flymake-php from:
> > >http://sachachua.com/wp/2008/07/31/emacs-and-php-on-the-fly-syntax-ch...
> > > and added those lines to my ~/.emacs
> >
> > > If I use M-x flymake-display-err-menu-for-current-line it displays an
> > > error in format:
> > > parse error
> > > parse error
> >
> > > But in flymake-php I can see lines:
> > > add-to-list 'flymake-err-line-patterns  '("\\(Parse\\|Fatal\\) error: +
> > > \\(.*?\\) in \\(.*?\\) on line \\([0-9]+\\)$" 3 4 nil 2))
> >
> > > So PHP errors should look like:
> > > "Parse | Fatal error ... in ....php  on line ..  "  ?
> >
> > > What may be the problem for that?
> >
> > > In my ~/.emacs I load nXhtml first:
> >
> > > ;;nXHTML mode and all that comes with it (MuMaMo...)
> > > [...]
> >
> > > Is someone familiar with this?
> >
> > Hi Igor,
> >
> > There is a flymake-php.el included in nXhtml. You turn that on from the 
> > menus:
> >
> >    nXhtml
> >        Tools
> >             Flymake Mode
> >
> > Can you please try that?
> 
> 
> Thanks for you reply!
> 
> I actually do that, but it's behavior is the same. Not a word from
> php :(

Your config files seems to work fine for me. Are the php-files you're
looking at opened in php-mode or nxhtml-mode? What version of emacs
and nxhtml are you using? Obviously, if you're using nxhtml you should
try to configure flymake for php a second time. 

You seem to be running windows. Are you sure that emacs can find your
php executable? What happens if you enter this line:

  M-: (executable-find "php")<RET>

Kind regards, 

Anselm


-- 
Anselm Helbig 
mailto:anselm.helbig+news2009@googlemail.com


reply via email to

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