all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: seberino@spawar.navy.mil
Cc: help-gnu-emacs@gnu.org
Subject: Re: Please explain diff between K&R, Linux and GNU c-mode styles...
Date: Fri, 25 Oct 2002 14:42:46 -0700	[thread overview]
Message-ID: <20021025144246.A1907@spawar.navy.mil> (raw)
In-Reply-To: <878z0mp9rz.fsf@gnulinux.org.mx>; from kheb@gnulinux.org.mx on Fri, Oct 25, 2002 at 03:02:08PM -0500

Thanks for the description.  I appreciate it.

I can set identation myself with (setq c-basic-offset 3)
but what is the easiest way to get a style with
open bracket on same line *for everything* including functions!!?!!

I want K&R with a slight modification basically.
(Putting "{" in different place for functions seems lame.)

Chris


On Fri, Oct 25, 2002 at 03:02:08PM -0500, Edgar Antonio Luna Díaz wrote:
> seberino@spawar.navy.mil writes:
> 
> > I can't find any description of
> > difference between GNU, K&R and Linux
> > C-mode styles.  Can you please give
> > a 1-2 sentence description of main
> > diff of each?
> This is an off-topic
> 
> GNU: indent 4 or 2 spaces. 
> K&R: 8
> 
> GNU: open bracket is in the next line
> K&R: open bracket is in the same line, except to functions
> declarations.
> 
> Four sentences :P
> 
> 
> -- 
> Edgar Antonio Luna Díaz - http://www.gnulinux.org.mx
> Key Fingerprint=C008 5EAC 5272 AC8C 7589  4821 8B34 6166 8733 8310



-- 
_______________________________________

Dr. Christian Seberino
SPAWAR Systems Center San Diego
Code 2363
49590 Lassing Road, Room A339
San Diego, CA 92152-6147
U.S.A.

Phone: (619) 553-7940
Fax:   (619) 553-1269
Email: seberino@spawar.navy.mil
_______________________________________

  reply	other threads:[~2002-10-25 21:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1035568658.14167.help-gnu-emacs@gnu.org>
2002-10-25 20:02 ` Please explain diff between K&R, Linux and GNU c-mode styles Edgar Antonio Luna Díaz
2002-10-25 21:42   ` seberino [this message]
     [not found]   ` <mailman.1035582199.7294.help-gnu-emacs@gnu.org>
2002-10-26  3:53     ` Edgar Antonio Luna Díaz
2002-10-25 20:12 ` Richard V. Molen
2002-10-25 17:56 seberino

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021025144246.A1907@spawar.navy.mil \
    --to=seberino@spawar.navy.mil \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.