Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't load php-mode on OS X #86

Closed
diegueins680 opened this issue Apr 16, 2013 · 3 comments
Closed

Can't load php-mode on OS X #86

diegueins680 opened this issue Apr 16, 2013 · 3 comments
Labels

Comments

@diegueins680
Copy link

When I use the 2008 version of php-mode.el from the following link I don't have any issues, and Emacs color codes my php code correctly:

http://php-mode.sourceforge.net

However, when I replace php-mode.el with the current version, emacs displays the following error:

An error has ocurred while loading '~/.emacs':

File error: Cannot open load file, php-mode

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.

This is the output of doing such:

Debugger entered--Lisp error: (error "Invalid modifier in string")
eval-buffer(#<buffer  *load*<2>> nil "/Users/dsaa-temp/elisp/php-mode.el" nil$
load-with-code-conversion("/Users/dsaa-temp/elisp/php-mode.el" "/Users/dsaa-t$
require(php-mode)
eval-buffer(#<buffer  *load*> nil "/Users/dsaa-temp/.emacs" nil t)  ; Reading$
load-with-code-conversion("/Users/dsaa-temp/.emacs" "/Users/dsaa-temp/.emacs"$
load("~/.emacs" t t)
#[nil "^H\205\276^@   \306=\203^Q^@\307^H\310Q\202A^@ \311=\2033^@\312\307\31$
command-line()
normal-top-level()
@akf
Copy link

akf commented Oct 1, 2013

Hey, I was just having the same problem, having copied my emacs configuration over from a linux box (with GNU emacs 23.3.1) to a Mac (with emacs 22.1.1).

Installing the latest release of php-mode (version 1.12) fixed it for me. The version I had previously installed was 1.10.

@ejmr
Copy link
Collaborator

ejmr commented Oct 1, 2013

Thank you @akf for the information. Unfortunately I do not have access to a Mac for testing PHP Mode, so every bit of info like this is very useful to have.

@syohex
Copy link
Collaborator

syohex commented Jan 29, 2015

I cannot reproduce this issue.

Mac users should not use /usr/bin/emacs. It is too old(22.1).
Most packages don't work on it.

It is easy to install newer Emacs via homebrew or macports.
I recommend mac users to use them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants