Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 389193 - app-emacs/xslide - wrong regex for auto-mode-alist in 50xslide-gentoo.el
Summary: app-emacs/xslide - wrong regex for auto-mode-alist in 50xslide-gentoo.el
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Emacs project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-01 14:15 UTC by Juhos Csaba-Zsolt
Modified: 2011-11-01 20:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patches the regexes used in auto-mode-alist. (50xslide-gentoo.el.patch,324 bytes, patch)
2011-11-01 14:19 UTC, Juhos Csaba-Zsolt
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.