Re: [HACKERS] Source code format votes

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] Source code format votes
Дата
Msg-id 12659.946056090@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] Source code format votes  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: [HACKERS] Source code format votes  (Vince Vielhaber <vev@michvhf.com>)
Список pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Oleg Broytmann
Дата:
Сообщение: Re: [HACKERS] Source code format votes
Следующее
От: Vince Vielhaber
Дата:
Сообщение: Re: [HACKERS] Source code format votes