From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anselm Helbig Newsgroups: gmane.emacs.help Subject: Re: making Flymake work with PHP Date: Thu, 14 May 2009 20:58:56 +0200 Organization: Freie Universitaet Berlin Message-ID: <87my9fh5ov.wl%anselm.helbig+news2009@googlemail.com> References: <25b6b34d-b9f5-44d1-a969-544e218fe668@n4g2000vba.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1242330102 7717 80.91.229.12 (14 May 2009 19:41:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 May 2009 19:41:42 +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 21:41:35 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 1M4goA-0002Dg-Pv for geh-help-gnu-emacs@m.gmane.org; Thu, 14 May 2009 21:41:35 +0200 Original-Received: from localhost ([127.0.0.1]:44752 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M4goA-0006Wm-88 for geh-help-gnu-emacs@m.gmane.org; Thu, 14 May 2009 15:41:34 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 66 Original-X-Trace: news.uni-berlin.de u5s0Qw9d56menY7S5T2TnwmcLoomsL61xg+qG1as8s/v61ZE/1bqT8ynGr Cancel-Lock: sha1:0SuNsdBPKmxY97gAJYbIYF3KO8g= In-Reply-To: Mail-Followup-To: anselm.helbig+news2009@googlemail.com User-Agent: SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.7 Emacs/22.3 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) Original-Xref: news.stanford.edu gnu.emacs.help:169181 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:64443 Archived-At: 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 =A0'("\\(Parse\\|Fatal\\) erro= r: + > > > \\(.*?\\) 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 the= menus: > > > > =A0 =A0nXhtml > > =A0 =A0 =A0 =A0Tools > > =A0 =A0 =A0 =A0 =A0 =A0 Flymake Mode > > > > Can you please try that? >=20 >=20 > Thanks for you reply! >=20 > 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.=20 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") Kind regards,=20 Anselm --=20 Anselm Helbig=20 mailto:anselm.helbig+news2009@googlemail.com