all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: kai.grossjohann@uni-duisburg.de (Kai Großjohann)
Subject: Re: C formatting
Date: Sat, 28 Dec 2002 14:03:02 +0100	[thread overview]
Message-ID: <84isxe5m9l.fsf@lucy.cs.uni-dortmund.de> (raw)
In-Reply-To: 3E0D9996.3050603@free.fr

Oodini <svdbg@free.fr> writes:

> Well, it doesn't do exactly what I want.
> After the "if", when I press Enter, Emacs put an extra indent, whereas
> I want it to put the cursor under the "if". I guess it supposes I put
> the opening brace af the end of the line where there is the "if".

Did you try typing the open brace?  It might move to the left.

If it doesn't, you can still try TAB after typing the open brace.

I guess if there is no brace after if, you do want the next line to
be indented.  So you want:

    if (some_condition)
        some_action;

instead of

    if (some_condition)
    some_action;

Right?  Obviously, Emacs can't know whether you will be typing a
brace or not, after you hit RET.

-- 
Ambibibentists unite!

  parent reply	other threads:[~2002-12-28 13:03 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-28  0:17 C formatting Oodini
2002-12-28  0:39 ` Bijan Soleymani
2002-12-28 11:47   ` Oodini
2002-12-28 11:50     ` Oodini
2002-12-28 12:32       ` Jesper Harder
2002-12-28 13:05     ` Kai Großjohann
2002-12-28 13:13       ` Oodini
2002-12-28  1:11 ` chris.danx
2002-12-28 12:31   ` Oodini
2002-12-28 12:57     ` chris.danx
2002-12-28 13:03       ` Oodini
2002-12-28 13:03     ` Kai Großjohann [this message]
2002-12-28 11:05 ` Kai Großjohann
2002-12-28 12:52   ` Oodini
2002-12-28 13:50     ` Kai Großjohann
2002-12-28 13:53     ` Kai Großjohann

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=84isxe5m9l.fsf@lucy.cs.uni-dortmund.de \
    --to=kai.grossjohann@uni-duisburg.de \
    /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.