Bug 67952 - Bad Emacs code in site-start.d/php-mode-init.el
Summary: Bad Emacs code in site-start.d/php-mode-init.el
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: emacs
Version: 7.3
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Trond Eivind Glomsrxd
QA Contact: Aaron Brown
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-07-04 19:16 UTC by Eli Barzilay
Modified: 2007-04-18 16:43 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-07-04 19:16:08 UTC
Embargoed:


Attachments (Terms of Use)

Description Eli Barzilay 2002-07-04 19:16:04 UTC
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:
  "\\.php\\'".

Version-Release number of selected component (if applicable):


How reproducible:
Always

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.


Additional info:

I mailed once saying that there are many examples of bad elisp
code in the RedHat rpms.

Comment 1 Trond Eivind Glomsrxd 2002-07-08 22:09:34 UTC
Fixed in emacs-21.2-11


Note You need to log in before you can comment on or make changes to this bug.