[Catalyst-dev] Ignoring Emacs temp files

Dave Rolsky autarch at urth.org
Tue Aug 28 16:50:32 GMT 2007


On Tue, 28 Aug 2007, Jonathan Rockway 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>".
>
> Thanks kd++ and autarch++ :)  This has been an open issue for over a
> year because we've been waiting for users to compile a list for every
> editor and patch MPO accordingly.  I only use emacs, so all I could
> provide was similar to Dave's patch.  With this applied, I am happy :)

Ronald Kimball pointed out (off-list) that my patch for the helper script 
will also catch things like ".#dir/file.pm". That's not exactly what I 
intended, but on the other hand why would we want to include that?

He suggested this:

  ^(?!\.#)[^/]*(?:/(?!\.#)[^/]*)*(?:\.yml$|\.yaml$|\.pm)$

I think that's correct. This would all be much simpler if we could run the 
regex against just the file name.


-dave

/*===================================================
VegGuide.Org                        www.BookIRead.com
Your guide to all that's veg.       My book blog
===================================================*/



More information about the Catalyst-dev mailing list