all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: how do you strip leading white spaces in c-mode or similar?
Date: Thu, 05 Jul 2007 09:20:40 -0400	[thread overview]
Message-ID: <E1I6RGC-0000Hh-AQ@fencepost.gnu.org> (raw)
In-Reply-To: <1183595671.444536.287460@r34g2000hsd.googlegroups.com> (message from Johna on Wed, 04 Jul 2007 17:34:31 -0700)

> From: Johna <nnn4431@mailc.net>
> Newsgroups: gnu.emacs.help
> Date: Wed, 04 Jul 2007 17:34:31 -0700
> 
> Basically I am frustrated with the default indentation in c-mode (or
> similar modes)
> because it inserts unnecessary white space(s) on empty lines.

Not in Emacs, it doesn't.  At least not for me.  That is, when I type
C-j, Emacs does indeed insert indentation, but if I then type another
C-j, the whitespace is removed.

If this does not work for you, please show a sequence of keystrokes
that cause such excess whitespace to appear on empty lines, perhaps
I'm missing something.

> Example:
> ------------------------------------
> int foo(int x)
> {
>       int y = x/2;
> 
> // the preceding empty line contains superfluous and annoying white
> space!

No, it doesn't, at least not in the message you sent.

  parent reply	other threads:[~2007-07-05 13:20 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-05  0:34 how do you strip leading white spaces in c-mode or similar? Johna
2007-07-05  8:49 ` brianjiang
2007-07-05 13:20 ` Eli Zaretskii [this message]
2007-07-05 17:48 ` Peter Lee
2007-07-06  1:29   ` Johna
2007-07-06 10:35     ` Tassilo Horn
2007-07-06 12:32       ` Eli Zaretskii
2007-07-06 12:48         ` Nikolaj Schumacher
2007-07-06 15:52           ` Eli Zaretskii
2007-07-08  9:16             ` Nikolaj Schumacher
2007-07-06 12:41     ` Nikolaj Schumacher

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=E1I6RGC-0000Hh-AQ@fencepost.gnu.org \
    --to=eliz@gnu.org \
    --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.