help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C formatting


From: Kai Großjohann
Subject: Re: C formatting
Date: Sat, 28 Dec 2002 14:03:02 +0100
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu)

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!
>From help-gnu-emacs-bounces@gnu.org  Sat Dec 28 08:10:09 2002
Path: 
shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!p50876b5f.dip.t-dialin.NET!not-for-mail
From: kai.grossjohann@uni-duisburg.de (Kai =?iso-8859-1?q?Gro=DFjohann?=)
Newsgroups: gnu.emacs.help
Date: Sat, 28 Dec 2002 14:05:49 +0100
Organization: University of Dortmund, Germany
Lines: 15
Message-ID: <84fzsi5m4y.fsf@lucy.cs.uni-dortmund.de>
References: <3E0CED7C.7020002@free.fr> <87ptrnf046.fsf@hurd.crasseux.com>
 <3E0D8F54.7030807@free.fr>
NNTP-Posting-Host: p50876b5f.dip.t-dialin.net (80.135.107.95)
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: fu-berlin.de 1041080762 8293195 80.135.107.95 (16 [73968])
User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50
 (i686-pc-linux-gnu)
Cancel-Lock: sha1:oR6/9zgQ7uI3Lkx+KaidJmbsuOQ=
Xref: shelby.stanford.edu gnu.emacs.help:108544
To: help-gnu-emacs@gnu.org
Subject: Re: C formatting
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
        <mailto:help-gnu-emacs-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/help-gnu-emacs>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
        <mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Sat, 28 Dec 2002 13:10:09 -0000

Oodini <svdbg@free.fr> writes:

> I have already read the doc
> (http://www.sunsite.ualberta.ca/Documentation/Gnu/emacs-18.59/html_node/emacs_150.html),
> before to post and it didn't help me a lot.

Oh, boy, that doc is even older than the book!  I think 18.59 was
current in 1993 or so.

*Please* read the documentation that comes with Emacs!

What you're doing is like trying to apply Windows 3.1 documentation
to Windows XP.  (I think the timeframe is about right.  Is it?)
-- 
Ambibibentists unite!
>From help-gnu-emacs-bounces@gnu.org  Sat Dec 28 08:15:08 2002
Path: 
shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!feeder2-1.proxad.net!news3-2.free.fr!not-for-mail
Message-ID: <3E0DA371.6040102@free.fr>
Date: Sat, 28 Dec 2002 14:13:21 +0100
From: Oodini <svdbg@free.fr>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; fr-FR;
        rv:1.0.1) Gecko/20020823 Netscape/7.0
X-Accept-Language: fr-fr, fr
MIME-Version: 1.0
Newsgroups: gnu.emacs.help
References: <3E0CED7C.7020002@free.fr> <87ptrnf046.fsf@hurd.crasseux.com>
        <3E0D8F54.7030807@free.fr> <84fzsi5m4y.fsf@lucy.cs.uni-dortmund.de>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 32
Organization: Guest of ProXad - France
NNTP-Posting-Date: 28 Dec 2002 14:12:31 MET
NNTP-Posting-Host: 212.11.42.3
X-Trace: 1041081151 news3-2.free.fr 22334 212.11.42.3:3287
X-Complaints-To: abuse@proxad.net
Xref: shelby.stanford.edu gnu.emacs.help:108545
To: help-gnu-emacs@gnu.org
Subject: Re: C formatting
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
        <mailto:help-gnu-emacs-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/help-gnu-emacs>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
        <mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Sat, 28 Dec 2002 13:15:08 -0000

Kai Großjohann a écrit:
> Oodini <svdbg@free.fr> writes:
> 
> 
>>I have already read the doc
>>(http://www.sunsite.ualberta.ca/Documentation/Gnu/emacs-18.59/html_node/emacs_150.html),
>>before to post and it didn't help me a lot.
> 
> Oh, boy, that doc is even older than the book!  I think 18.59 was
> current in 1993 or so.

Haha !

> *Please* read the documentation that comes with Emacs!

I do, I do...
I read even the most recent one, now.

> What you're doing is like trying to apply Windows 3.1 documentation
> to Windows XP.  (I think the timeframe is about right.  Is it?)

Why not ??
Emacs proposes us an editor in text mode, even in 2002 :  :->
Some dust has come to my nose, and then thought that a '93 doc would 
have been OK. ;-)

-- 
  .      .
  .  .:::.          ###           \|/        `  ___  '
    :(o o):  .     (o o)         (o o)      -  (O o)  -
ooO--(_)--Ooo-ooO--(_)--Ooo-ooO--(_)--Ooo-ooO--(_)--Ooo-


reply via email to

[Prev in Thread] Current Thread [Next in Thread]