From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ig0r Newsgroups: gmane.emacs.help Subject: Re: making Flymake work with PHP Date: Thu, 14 May 2009 14:17:13 -0700 (PDT) Organization: http://groups.google.com Message-ID: <514f618a-c570-4d5b-9d0c-dfdf0d0ece0a@n21g2000vba.googlegroups.com> References: <25b6b34d-b9f5-44d1-a969-544e218fe668@n4g2000vba.googlegroups.com> <87my9fh5ov.wl%anselm.helbig+news2009@googlemail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1242337447 31003 80.91.229.12 (14 May 2009 21:44:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 May 2009 21:44:07 +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 May 14 23:44:00 2009 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.50) id 1M4iid-0005Tf-LD for geh-help-gnu-emacs@m.gmane.org; Thu, 14 May 2009 23:43:59 +0200 Original-Received: from localhost ([127.0.0.1]:42677 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M4iid-0003Kz-1M for geh-help-gnu-emacs@m.gmane.org; Thu, 14 May 2009 17:43:59 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!n21g2000vba.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 93 Original-NNTP-Posting-Host: 91.124.53.96 Original-X-Trace: posting.google.com 1242335833 32433 127.0.0.1 (14 May 2009 21:17:13 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 14 May 2009 21:17:13 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: n21g2000vba.googlegroups.com; posting-host=91.124.53.96; posting-account=M24cuwoAAABX_45W-BaxkVxNGJ_iyDmp User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729), gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:169185 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:64447 Archived-At: On May 14, 9:58=A0pm, Anselm Helbig 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-c= h... > > > > 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 =A0'("\\(Parse\\|Fatal\\) er= ror: + > > > > \\(.*?\\) in \\(.*?\\) on line \\([0-9]+\\)$" 3 4 nil 2)) > > > > > So PHP errors should look like: > > > > "Parse | Fatal error ... in ....php =A0on line .. =A0" =A0? > > > > > 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 t= he menus: > > > > =A0 =A0nXhtml > > > =A0 =A0 =A0 =A0Tools > > > =A0 =A0 =A0 =A0 =A0 =A0 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: > > =A0 M-: (executable-find "php") > > 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") Yes, I'm sure, That command returns path to my php.exe Cheers, Igor!