Re: [HACKERS] Source code format votes

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Peter Mount <petermount(at)it(dot)maidstone(dot)gov(dot)uk>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [HACKERS] Source code format votes
Date: 1999-12-24 17:21:30
Message-ID: 12659.946056090@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
>> BTW, Bruce suggested adding Local-variables settings to all the source
>> files to push Emacs into making the right settings, but I much prefer
>> doing it as above. Local-variables is an insecure feature if you ask
>> me; I keep it disabled.

> OK. I just know some developers added them on their own, so it
> certainly is an issue for them.

Yes, I notice Thomas has all of the .sgml files set up with
Local-variables settings. I think that adding a pgsql-sgml-mode
along the same lines as I just illustrated would be a much better
way of handling it.

> Also, is there a way to add a dot-file in a directory to control default
> formatting, but still allow the main .emacs to be read?

I don't think so. If there were, it'd have the same kinds of security
risks as Local-variables has (visit someone else's file, auto-execute
someone else's code ... not cool).

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Vince Vielhaber 1999-12-24 17:52:17 Re: [HACKERS] Source code format votes
Previous Message Oleg Broytmann 1999-12-24 16:56:03 Re: [HACKERS] Source code format votes