[Catalyst-dev] Ignoring Emacs temp files

Kieren Diment diment at gmail.com
Mon Aug 27 14:33:07 GMT 2007


Applied (changeset 6741 and 6742 - don't ask) , thanks :-)

On 27/08/07, Dave Rolsky <autarch at urth.org> wrote:
> When you're editing a buffer in emacs, it will create a temporary symlink
> in the same directory of the file in the form ".#<filename>".
>
> Since these have the same .pm ending as normal modules, Catalyst will
> attempt to load them on startup, and they get included in the watch list
> for the restarting HTTP server. I've attached two patches to tighten up
> the regexes involved so as to avoid this problem.
>
> The first is for Catalyst.pm itself. When using Module::Pluggable::Object,
> it passes a regex to ignore any class name that include ".#", which isn't
> a valid Perl class name anyway (this could be further tightened to really
> only accept valid class names).
>
> The Other is for Catalyst::Devel, and it tweaks the $restart_regex in the
> foo_server.pl script it generates. It basically excludes any path that
> has ".#" at the beginning of the filename or after a slash.
>
>
> -dave
>
> /*===================================================
> VegGuide.Org                        www.BookIRead.com
> Your guide to all that's veg.       My book blog
> ===================================================*/
> _______________________________________________
> Catalyst-dev mailing list
> Catalyst-dev at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst-dev
>
>
>



More information about the Catalyst-dev mailing list