After installing php-mode, emacs comes up in "C Abbrev" mode for php files

Bug #71581 reported by Christopher Barrington-Leigh
4
Affects Status Importance Assigned to Milestone
emacs-extra (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: php-mode

I have the latest edgy.

Regardless of what's in my .emacs file, after installing php-mode package, emacs comes up in "C Abbrev" mode for .php files.

Related branches

Revision history for this message
Michael Speer (knome-net+linux) wrote :

This happens for me as well. I tracked down the problem to the file /etc/emacs/site-start.d/50php-mode.el

I have attached a patch. ( I think, I am new at sending these to others.

Revision history for this message
Michael Speer (knome-net+linux) wrote :

I have a patch submitted in the comments.

Changed in emacs-extra:
assignee: nobody → knome-net+linux
status: Unconfirmed → Fix Committed
Changed in emacs-extra:
assignee: knome-net+linux → ubuntu-universe-sponsors
Revision history for this message
Michael Speer (knome-net+linux) wrote : The change is to the debian section. Diff included.

This should patch the source. I've reassigned to the motu.

Revision history for this message
Michael Bienia (geser) wrote :

emacs-extra (0.1-1ubuntu1) gutsy; urgency=low

  * debian/php-mode.emacsen-startup:
    Use php-mode instead of c-mode for files ending in .php (LP: #71581).
    (thanks to Michael Speer for the patch)
  * misc/std_comment.el:
    Fix time stamp problem in the template (LP: #67286).
  * debian/php-mode.emacsen-install:
    Fix installation problem with emacs21 (LP: #36055).
  * debian/control: Change Maintainer to XSBC-Original-Maintainer.

 -- Michael Bienia <email address hidden> Tue, 12 Jun 2007 23:24:31 +0200

Changed in emacs-extra:
status: Fix Committed → Fix Released
Benjamin Drung (bdrung)
Changed in emacs-extra (Ubuntu):
assignee: Ubuntu Sponsors for universe (ubuntu-universe-sponsors) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.