From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Johna Newsgroups: gmane.emacs.help Subject: how do you strip leading white spaces in c-mode or similar? Date: Wed, 04 Jul 2007 17:34:31 -0700 Organization: http://groups.google.com Message-ID: <1183595671.444536.287460@r34g2000hsd.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1251" X-Trace: sea.gmane.org 1183624604 7965 80.91.229.12 (5 Jul 2007 08:36:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 5 Jul 2007 08:36:44 +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 10:36:43 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 1I6MpN-00026M-UN for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Jul 2007 10:36:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I6MpN-0000xv-5v for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Jul 2007 04:36:41 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!r34g2000hsd.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-NNTP-Posting-Host: 209.6.126.113 Original-X-Trace: posting.google.com 1183595671 29773 127.0.0.1 (5 Jul 2007 00:34:31 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 5 Jul 2007 00:34:31 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4) Gecko/20061201 Firefox/2.0.0.4 (Ubuntu-feisty),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: r34g2000hsd.googlegroups.com; posting-host=209.6.126.113; posting-account=OoXo5Q0AAADYRjNnqsJ9LnKrYbt_HEYk Original-Xref: shelby.stanford.edu gnu.emacs.help:149885 X-Mailman-Approved-At: Thu, 05 Jul 2007 04:36:15 -0400 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:45478 Archived-At: Hi, I googled around to no avail. Basically I am frustrated with the default indentation in c-mode (or similar modes) because it inserts unnecessary white space(s) on empty lines. I want all empty lines to contain nothing but '\n'. Instead they contain "\n\t" or "\n ". The preferred solution that I am looking for is a way to inhibit white space insertion on empty lines across all modes that have anything to do with programming languages. Example: ------------------------------------ int foo(int x) { int y = x/2; // the preceding empty line contains superfluous and annoying white space! return y; } -------------------------------------