From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: how do you strip leading white spaces in c-mode or similar? Date: Thu, 05 Jul 2007 09:20:40 -0400 Message-ID: References: <1183595671.444536.287460@r34g2000hsd.googlegroups.com> NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1183641661 567 80.91.229.12 (5 Jul 2007 13:21:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 5 Jul 2007 13:21:01 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 05 15:20:57 2007 connect(): Connection refused Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1I6RGT-00057T-3t for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Jul 2007 15:20:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I6RGS-0004so-Gu for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Jul 2007 09:20:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I6RGE-0004sV-Ua for help-gnu-emacs@gnu.org; Thu, 05 Jul 2007 09:20:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I6RGD-0004sC-GT for help-gnu-emacs@gnu.org; Thu, 05 Jul 2007 09:20:42 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I6RGD-0004s9-BN for help-gnu-emacs@gnu.org; Thu, 05 Jul 2007 09:20:41 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I6RGC-00022o-Pw for help-gnu-emacs@gnu.org; Thu, 05 Jul 2007 09:20:41 -0400 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1I6RGC-0000Hh-AQ for help-gnu-emacs@gnu.org; Thu, 05 Jul 2007 09:20:40 -0400 In-reply-to: <1183595671.444536.287460@r34g2000hsd.googlegroups.com> (message from Johna on Wed, 04 Jul 2007 17:34:31 -0700) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:45483 Archived-At: > From: Johna > 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.