From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: lampshade Newsgroups: gmane.emacs.help Subject: Flymake PHP Emacs Date: Thu, 3 Jan 2008 21:52:21 -0800 (PST) Organization: http://groups.google.com Message-ID: <2c194b7e-454c-4a2d-860c-568824c3c6c4@m34g2000hsf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1199428854 2830 80.91.229.12 (4 Jan 2008 06:40:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Jan 2008 06:40:54 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 04 07:41:11 2008 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 1JAgEw-0001lC-PO for geh-help-gnu-emacs@m.gmane.org; Fri, 04 Jan 2008 07:41:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JAgEa-0004c4-Ac for geh-help-gnu-emacs@m.gmane.org; Fri, 04 Jan 2008 01:40:48 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!m34g2000hsf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 61 Original-NNTP-Posting-Host: 76.85.192.52 Original-X-Trace: posting.google.com 1199425941 20526 127.0.0.1 (4 Jan 2008 05:52:21 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 4 Jan 2008 05:52:21 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: m34g2000hsf.googlegroups.com; posting-host=76.85.192.52; posting-account=djMGgQoAAAAG8TIKtb_BitRJthuSPo1H User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.11) Gecko/20071204 Ubuntu/7.10 (gutsy) Firefox/2.0.0.11, gzip(gfe), gzip(gfe) Original-Xref: shelby.stanford.edu gnu.emacs.help:155060 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:50467 Archived-At: Hello, I've been trying to get flymake to work with PHP based off of a blog post I saw here http://www.blik.it/2007/02/21/syntax-checking-for-php-in-emacs/ But I've run into problems with it. When I try to enable it, I receive the error Flymake: Configuration error has occured while running (php -l myfile.php). Flymake will be switched OFF Nothing else appears in the message buffer. my .emacs looks like (add-to-list 'load-path "~/.emacs.d/") (load "~/.emacs.d/flymake.php.el") (require 'flymake-php) (add-hook 'php-mode-user-hook 'flymake-php-load) ;; Flymake PHP Extension (require 'flymake) (defconst flymake-allowed-php-file-name-masks '( ("\\.php3\\'" flymake-php-init) ("\\.inc\\'" flymake-php-init) ("\\.php\\'" flymake-php-init)) "Filename extensions that switch on flymake-php mode syntax checks") (defconst flymake-php-err-line-pattern-re '("(Parse|Fatal) error: (.*) in (.*) on line ([0-9]+)" 3 4 nil 2) "Regexp matching PHP error messages") (defun flymake-php-init () (let* ((temp-file (flymake-init-create-temp-buffer-copy 'flymake-create-temp-inplace)) (local-file (file-relative-name temp-file (file-name-directory buffer-file-name)))) ;;(list "php" (list "-f" local-file "-l")))) (list "php" (list "-l" local-file)))) (defun flymake-php-load () (setq flymake-allowed-file-name-masks (append flymake-allowed-file- name-masks flymake-allowed-php-file-name-masks)) (setq flymake-err-line-patterns (cons flymake-php-err-line-pattern-re flymake-err-line-patterns)) (flymake-mode t) (local-set-key "C-cd" 'flymake-display-err-menu-for-current-line)) (provide 'flymake-php) Any ideas? Thanks in advance,