all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ig0r <ryzhkov.igor@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: making Flymake work with PHP
Date: Thu, 14 May 2009 14:17:13 -0700 (PDT)	[thread overview]
Message-ID: <514f618a-c570-4d5b-9d0c-dfdf0d0ece0a@n21g2000vba.googlegroups.com> (raw)
In-Reply-To: 87my9fh5ov.wl%anselm.helbig+news2009@googlemail.com

On May 14, 9:58 pm, Anselm Helbig <anselm.helbig
+news2...@googlemail.com> wrote:
> 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+news2...@googlemail.com


Anselm, Thank you for your reply!

> Are the php-files you're
> looking at opened in php-mode or nxhtml-mode?
They are opening in php-mode

>What version of emacs
>and nxhtml are you using?
emacs-22.3
nXhtml 1.76-090226

>Obviously, if you're using nxhtml you should
>try to configure flymake for php a second time.
Can you please explain this?

>Are you sure that emacs can find your
>php executable? What happens if you enter this line:
>  M-: (executable-find "php")<RET>
Yes, I'm sure, That command returns path to my php.exe

Cheers,
Igor!


  reply	other threads:[~2009-05-14 21:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-14 14:35 making Flymake work with PHP Ig0r
2009-05-14 15:37 ` Lennart Borgman
     [not found] ` <mailman.7163.1242315464.31690.help-gnu-emacs@gnu.org>
2009-05-14 16:08   ` Ig0r
2009-05-14 18:58     ` Anselm Helbig
2009-05-14 21:17       ` Ig0r [this message]
2009-05-14 22:43         ` Lennart Borgman
     [not found]         ` <mailman.7179.1242341015.31690.help-gnu-emacs@gnu.org>
2009-05-15  0:25           ` Ig0r
2009-05-16 13:38             ` Ig0r

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=514f618a-c570-4d5b-9d0c-dfdf0d0ece0a@n21g2000vba.googlegroups.com \
    --to=ryzhkov.igor@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.