From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nikolaj Schumacher Newsgroups: gmane.emacs.help Subject: Re: how do you strip leading white spaces in c-mode or similar? Date: Sun, 08 Jul 2007 11:16:24 +0200 Message-ID: References: <1183595671.444536.287460@r34g2000hsd.googlegroups.com> <1183685346.183441.17470@n60g2000hse.googlegroups.com> <87odipq0pr.fsf@baldur.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1183886212 17084 80.91.229.12 (8 Jul 2007 09:16:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 8 Jul 2007 09:16:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 08 11:16:51 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 1I7Sst-0002fN-1n for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Jul 2007 11:16:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I7Sss-0000a1-CM for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Jul 2007 05:16:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I7SsS-0000Xq-TO for help-gnu-emacs@gnu.org; Sun, 08 Jul 2007 05:16:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I7SsQ-0000UP-Nc for help-gnu-emacs@gnu.org; Sun, 08 Jul 2007 05:16:24 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I7SsQ-0000Tp-Dl for help-gnu-emacs@gnu.org; Sun, 08 Jul 2007 05:16:22 -0400 Original-Received: from fmmailgate01.web.de ([217.72.192.221]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I7SsQ-0006Zq-0F for help-gnu-emacs@gnu.org; Sun, 08 Jul 2007 05:16:22 -0400 Original-Received: from smtp05.web.de (fmsmtp05.dlan.cinetic.de [172.20.4.166]) by fmmailgate01.web.de (Postfix) with ESMTP id 6BCD28DC20B6 for ; Sun, 8 Jul 2007 11:16:20 +0200 (CEST) Original-Received: from [89.59.156.30] (helo=wednesday) by smtp05.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.108 #197) id 1I7SsN-0002Uh-00 for help-gnu-emacs@gnu.org; Sun, 08 Jul 2007 11:16:19 +0200 In-Reply-To: (Eli Zaretskii's message of "Fri\, 06 Jul 2007 18\:52\:51 +0300") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (darwin) X-Sender: n_schumacher@web.de X-Provags-ID: V01U2FsdGVkX18YUjgqVq8qa4pXFdNgO8bSp/vRTRKQNPMlB3bx QkLi/AFzJE4/D2Xehv6S2/R60UDJWdMBfnaCnPLps0D6XvkQzE 9tYyPu1ClPgX/1UCTJrg== X-detected-kernel: Linux 2.4-2.6 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:45534 Archived-At: Eli Zaretskii wrote: >> From: Nikolaj Schumacher >> Date: Fri, 06 Jul 2007 14:48:38 +0200 >> >> Eli Zaretskii wrote: >> >> >> From: Tassilo Horn >> >> Date: Fri, 06 Jul 2007 12:35:12 +0200 >> >> >> >> That's strange, anyway. Here, my emacs (22.1) removes trailing >> >> whitespaces in the current line as soon as I go to the next line... >> > >> > It does that for me, too. >> >> `newline' doesn't. Only `newline-and-indent' does. > > Why should anyone use `newline' instead of `newline-and-indent'? I'm not advising anyone on using it, if that's what you mean. :) It just appeared the OP was using `newline' (isn't it the default?) and I wanted to clear up the confusion. regards, Nikolaj Schumacher