On Mon, 2011-03-14 at 07:45 +0100, Mathias Fröhlich wrote: 
> 
> On Sunday, March 13, 2011 17:34:08 Henri Verbeet wrote:
> > Ok, pushed. You had some whitespace issues, I've fixed those, but for
> > future reference please note that r600g uses tabs for indentation.
> Ok. I hoped that I always did so. The coding stlye configuration for the mesa 
> hacking user is tuned for the indentation of the majority of code in mesa 
> which does not use tabs. So r600g changes gets usually hand changed tabs.
> 
> I had, for a different project/source combination, already some kind of 
> folder 
> name matching in my emacs configuration that dynamically switches the coding 
> style. But that is somehow complicated to install and making the directory 
> matches foolproof is not always simple, so that I only use this kind of lisp 
> hackery very seldom.
> 
> How do you solve these kind of differences within a single source tree?

Emacs can load per-directory configuration files. E.g. there's
a .emacs-dirvars file for the dirvars package by Zack in the mesa
toplevel directory. There could be similar files in any subdirectories,
and I understand newer versions of Emacs support a similar mechanism out
of the box, but I'm not familiar with the details. Would be great if
somebody could figure this out and add some files for subtrees that
don't match the general Mesa coding style. Maybe there's something
similar for other editors as well.


-- 
Earthling Michel Dänzer           |                http://www.vmware.com
Libre software enthusiast         |          Debian, X and DRI developer
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to