Making php-mode Compatible with Emacs 23

Posted by Kristopher Johnson on Stack Overflow See other posts from Stack Overflow or by Kristopher Johnson
Published on 2009-05-22T14:10:45Z Indexed on 2010/03/16 19:51 UTC
Read the original article Hit count: 362

Filed under:
|

I am using Emacs 23 and php-mode.el 1.5.0. When I have this in my .emacs:

(require 'php-mode)

I get this error message when Emacs starts:

Warning (initialization): An error occurred while loading `/Users/kdj/.emacs':

error: `c-lang-defconst' must be used in a file

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the `--debug-init' option to view a complete error backtrace.

If I evaluate (require 'php-mode) after Emacs starts, I don't get any error messages.

I found a blog entry which indicates that this problem is specific to Emacs 23 (that is, there is no error with Emacs 22.x), but it doesn't give any solutions.

Don't know if this matters, but I'm using Mac OS X, and I built Emacs from the current CVS sources, using ./configure --with-ns.

Anybody know what's going on here, and/or how I can fix it?

© Stack Overflow or respective owner

Related posts about emacs

Related posts about php-mode