Re: Emacs stanza?

2002-01-07 Thread Bill Stoddard


> -1 (and I'm an emacs user :-)

This is not a veto, just not too keen on the idea.

Bill

> 
> Metadata should be kept seperate from data. I.e., you should put something like this 
>in
> your _emacs file :-)
> 
> ;;;-
> ;;; C language mode personalization parameters for me
> (setq c-mode-hook '(lambda ()
>(setq indent-tabs-mode nil)
>(setq c-file-style "bsd");
>(c-set-offset 'statement-case-intro' ++)
>))
> ;;;-
> ;;; C++ language mode personalization parameters for me
> (setq c++-mode-hook '(lambda ()
>(setq indent-tabs-mode nil)
>(setq c-file-style "bsd");
>))
> 
> Bill
> 
> - Original Message -
> From: "Rodent of Unusual Size" <[EMAIL PROTECTED]>
> To: "Apache Developers" <[EMAIL PROTECTED]>
> Sent: Thursday, January 03, 2002 10:51 AM
> Subject: Emacs stanza?
> 
> 
> > [sent last night, looks like it didn't get through..]
> >
> > I don't know how many people use Emacs to edit the Apache stuff,
> > but would anyone object to a stanza at the bottom of the source
> > files to help put Emacs in the right stylistic mood?  To wit,
> > something like:
> >
> > /*
> >  * Local Variables:
> >  * mode: C
> >  * c-file-style: "bsd"
> >  * indent-tabs-mode: nil
> >  * End:
> >  */
> >
> > This would set the tab stop to 4, and keep TAB characters from
> > being embedded, using spaces always.  And it wouldn't do any
> > harm to non-Emacs users..
> > --
> > #ken P-)}
> >
> > Ken Coar, Sanagendamgagwedweinini  http://Golux.Com/coar/
> > Author, developer, opinionist  http://Apache-Server.Com/
> >
> > "All right everyone!  Step away from the glowing hamburger!"
> >
> 




Re: Emacs stanza?

2002-01-07 Thread Greg Stein

On Thu, Jan 03, 2002 at 10:51:22AM -0500, Rodent of Unusual Size wrote:
> [sent last night, looks like it didn't get through..]
> 
> I don't know how many people use Emacs to edit the Apache stuff,
> but would anyone object to a stanza at the bottom of the source
> files to help put Emacs in the right stylistic mood?  To wit,

It's all right with me! I already have all that set up by default, but it
doesn't hurt to put it into the file, too.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/



Re: Emacs stanza?

2002-01-06 Thread Justin Erenkrantz

On Wed, Jan 02, 2002 at 04:50:06PM -0500, Rodent of Unusual Size wrote:
> I don't know how many people use Emacs to edit the Apache stuff,
> but would anyone object to a stanza at the bottom of the source
> files to help put Emacs in the right stylistic mood?  To wit,
> something like:

I don't know if this got purposely resent on the 6th, but I'll
chime in now and say that I think this isn't a good idea at all.
I think you should be able to configure your editor yourself.  =)

However, if you *must* do this (I don't think you should at all,
but I'll stop short of a veto), I'd think it'd be a better idea 
to follow SVN's convention by adding this to all files:

/* -
 * local variables:
 * eval: (load-file "../emacs-style")
 * end:
 */

Where ../emacs-style is obviously the relative path to emacs-style.
This way we can change the global style by just modifying 
emacs-style rather than all files.  And, it allows some useful 
macros in emacs-style.

FWIW, I don't use emacs...  Go vi.  =)  -- justin




Emacs stanza?

2002-01-05 Thread Rodent of Unusual Size

I don't know how many people use Emacs to edit the Apache stuff,
but would anyone object to a stanza at the bottom of the source
files to help put Emacs in the right stylistic mood?  To wit,
something like:

/*
 * Local Variables:
 * mode: C
 * c-file-style: "bsd"
 * indent-tabs-mode: nil
 * End:
 */

This would set the tab stop to 4, and keep TAB characters from
being embedded, using spaces always.  And it wouldn't do any
harm to non-Emacs users..
-- 
#kenP-)}

Ken Coar, Sanagendamgagwedweinini  http://Golux.Com/coar/
Author, developer, opinionist  http://Apache-Server.Com/

"All right everyone!  Step away from the glowing hamburger!"



Re: Emacs stanza?

2002-01-03 Thread Victor J. Orlikowski

Isn't this what emacs-style is for in the 2.0 tree? To provide hints
to new developers about what to add to their emacs config?

Victor
-- 
Victor J. Orlikowski   | The Wall is Down, But the Threat Remains!
==
[EMAIL PROTECTED]  | [EMAIL PROTECTED] | [EMAIL PROTECTED]



RE: Emacs stanza?

2002-01-03 Thread Lars Eilebrecht

According to Rodent of Unusual Size:

>  This would set the tab stop to 4, and keep TAB characters from
>  being embedded, using spaces always.  And it wouldn't do any
>  harm to non-Emacs users..

-0

ciao...
-- 
Lars Eilebrecht - I really don't think...
[EMAIL PROTECTED]- that these signatures are random...




Re: Emacs stanza?

2002-01-03 Thread Thomas Eibner

On Thu, Jan 03, 2002 at 08:52:05AM -0800, Bruce Korb wrote:
> Rodent of Unusual Size wrote:
> 
> > It ... would save us the inevitable and repetitious
> > pain of style-fixup patches and their effects on people's
> > work-in-process..  Other ASF projects do this (such as
> > PHP), so it wouldn't be a new departure.
> 
> Another approach, used by postgress, is to have a standardized
> set of arguments for ``indent''.  Regular runs of that fix both
> vi users and x-pasted text.  I use the stanza for my stuff, too.

But it's still kinda ugly having to commit indent fixes.

http://httpd.apache.org/dev/styleguide.html has the indent arguments.

-- 
  Thomas Eibner  DnsZone 
  mod_pointer  




Re: Emacs stanza?

2002-01-03 Thread Bruce Korb

Rodent of Unusual Size wrote:

> It ... would save us the inevitable and repetitious
> pain of style-fixup patches and their effects on people's
> work-in-process..  Other ASF projects do this (such as
> PHP), so it wouldn't be a new departure.

Another approach, used by postgress, is to have a standardized
set of arguments for ``indent''.  Regular runs of that fix both
vi users and x-pasted text.  I use the stanza for my stuff, too.



Re: Emacs stanza?

2002-01-03 Thread Rodent of Unusual Size

Bill Stoddard wrote:
> 
> -1 (and I'm an emacs user :-)
> 
> Metadata should be kept seperate from data. I.e., you should
> put something like this in your _emacs file :-)

Which a) would need to be done by every Emacs user individually,
and b) new users would know nothing about.

Whatever.  It just seems to me that adding a few lines to the
source files would save us the inevitable and repetitious
pain of style-fixup patches and their effects on people's
work-in-process..  Other ASF projects do this (such as
PHP), so it wouldn't be a new departure.
-- 
#kenP-)}

Ken Coar, Sanagendamgagwedweinini  http://Golux.Com/coar/
Author, developer, opinionist  http://Apache-Server.Com/

"All right everyone!  Step away from the glowing hamburger!"



Re: Emacs stanza?

2002-01-03 Thread Bill Stoddard

-1 (and I'm an emacs user :-)

Metadata should be kept seperate from data. I.e., you should put something like this in
your _emacs file :-)

;;;-
;;; C language mode personalization parameters for me
(setq c-mode-hook '(lambda ()
   (setq indent-tabs-mode nil)
   (setq c-file-style "bsd");
   (c-set-offset 'statement-case-intro' ++)
   ))
;;;-
;;; C++ language mode personalization parameters for me
(setq c++-mode-hook '(lambda ()
   (setq indent-tabs-mode nil)
   (setq c-file-style "bsd");
   ))

Bill

- Original Message -
From: "Rodent of Unusual Size" <[EMAIL PROTECTED]>
To: "Apache Developers" <[EMAIL PROTECTED]>
Sent: Thursday, January 03, 2002 10:51 AM
Subject: Emacs stanza?


> [sent last night, looks like it didn't get through..]
>
> I don't know how many people use Emacs to edit the Apache stuff,
> but would anyone object to a stanza at the bottom of the source
> files to help put Emacs in the right stylistic mood?  To wit,
> something like:
>
> /*
>  * Local Variables:
>  * mode: C
>  * c-file-style: "bsd"
>  * indent-tabs-mode: nil
>  * End:
>  */
>
> This would set the tab stop to 4, and keep TAB characters from
> being embedded, using spaces always.  And it wouldn't do any
> harm to non-Emacs users..
> --
> #ken P-)}
>
> Ken Coar, Sanagendamgagwedweinini  http://Golux.Com/coar/
> Author, developer, opinionist  http://Apache-Server.Com/
>
> "All right everyone!  Step away from the glowing hamburger!"
>




Emacs stanza?

2002-01-03 Thread Rodent of Unusual Size

[sent last night, looks like it didn't get through..]

I don't know how many people use Emacs to edit the Apache stuff,
but would anyone object to a stanza at the bottom of the source
files to help put Emacs in the right stylistic mood?  To wit,
something like:

/*
 * Local Variables:
 * mode: C
 * c-file-style: "bsd"
 * indent-tabs-mode: nil
 * End:
 */

This would set the tab stop to 4, and keep TAB characters from
being embedded, using spaces always.  And it wouldn't do any
harm to non-Emacs users..
-- 
#kenP-)}

Ken Coar, Sanagendamgagwedweinini  http://Golux.Com/coar/
Author, developer, opinionist  http://Apache-Server.Com/

"All right everyone!  Step away from the glowing hamburger!"