Red Hat Bugzilla – Bug 67952
Bad Emacs code in site-start.d/php-mode-init.el
Last modified: 2007-04-18 12:43:52 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 Galeon/1.2.5 (X11; Linux i686; U;) Gecko/0
Description of problem:
The code in site-start.d/php-mode-init.el uses a bad regexp
for auto-mode-alist, unlike the code in php-mode.el.
What it does is match the *regexp* ".php" causing any file name that
contains any character and then "php" to load in php mode. The pattern should
escape the dot and have an end-of-text anchor:
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. open any file like foophp.c
Actual Results: File got opened in php mode.
Expected Results: Should have been C mode.
I mailed once saying that there are many examples of bad elisp
code in the RedHat rpms.
Fixed in emacs-21.2-11