Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 389193

Summary: app-emacs/xslide - wrong regex for auto-mode-alist in 50xslide-gentoo.el
Product: Gentoo Linux Reporter: Juhos Csaba-Zsolt <csaba.juhos>
Component: Current packagesAssignee: Emacs project <emacs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patches the regexes used in auto-mode-alist.

Description Juhos Csaba-Zsolt 2011-11-01 14:15:49 UTC
The regex matches ".xsl" anywhere in the path of the visited file, not just at the end of its name,
so for example, if I visit
~/projects/bdsyslog.xsl/js/bdsyslog.js
xsl-mode will be used instead of javascript-mode.


Reproducible: Always
Comment 1 Juhos Csaba-Zsolt 2011-11-01 14:16:47 UTC
I'm attaching a patch.
Comment 2 Juhos Csaba-Zsolt 2011-11-01 14:19:12 UTC
Created attachment 291437 [details, diff]
Patches the regexes used in auto-mode-alist.
Comment 3 Ulrich Müller gentoo-dev 2011-11-01 20:09:21 UTC
Fixed, without revbump. I've also replaced the append by an add-to-list (otherwise the list will become longer each time site-gentoo.el is reloaded).

Thank you for reporting this bug.