Re: Coding style for emacs

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Coding style for emacs
Дата
Msg-id 200609022223.k82MNSm17071@momjian.us
обсуждение исходный текст
Ответ на Re: Coding style for emacs  ("Jim C. Nasby" <jim@nasby.net>)
Ответы Re: Coding style for emacs  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Jim C. Nasby wrote:
> On Sat, Sep 02, 2006 at 07:22:45PM +0100, Gregory Stark wrote:
> > "Jim C. Nasby" <jim@nasby.net> writes:
> > 
> > > Has anyone considered adding vi/vim options to the files themselves?
> > > Granted, not a trivial task, but it would ensure anyone using vim would
> > > have the correct settings. I don't know if emacs has the same ability
> > > (I've seen the "Hey emacs, this is a C file" stuff...)
> > 
> > Certainly it does; it even knows that certain variables are safe to allow
> > files to set without warning the user and it has the indention marked as such.
> > 
> > I think this would be what you would want.
> > 
> > /*
> >  * Local variables:
> >  * eval: (c-set-style "bsd")
> >  * tab-width: 4
> >  * c-basic-offset: 4
> >  * End:
> >  */
> > 
> > But it would have to be on the end of every single file which would be pretty
> > heavyweight.
> 
> Yeah, which is the real question... do people think it's worth it enough
> to move towards doing that? Of course the nice thing is that *anyone*
> (even me :) ) could produce a patch to do that.

No. It is obstructive and hard to maintain.

--  Bruce Momjian   bruce@momjian.us EnterpriseDB    http://www.enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [PATCHES] Use of backslash in tsearch2
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Developer's Wiki