From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: nuxdoors@cegetel.net Newsgroups: gmane.emacs.bugs Subject: Re: reindent-then-newline-and-indent doesn't indent properly in emacs 22.1 Date: Tue, 16 Oct 2007 22:39:21 +0200 Message-ID: <47152179.5020502@cegetel.net> References: <470FFCF1.5050201@cegetel.net> <4710849B.30104@gmx.at> <471145BA.6050600@cegetel.net> <471400AD.90805@cegetel.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7BIT X-Trace: ger.gmane.org 1192567240 10712 80.91.229.12 (16 Oct 2007 20:40:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Oct 2007 20:40:40 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 16 22:40:41 2007 Return-path: Envelope-to: geb-bug-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 1IhtDS-00017S-4g for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Oct 2007 22:40:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IhtD9-0004RS-Gi for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Oct 2007 16:40:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IhtD6-0004RB-QN for bug-gnu-emacs@gnu.org; Tue, 16 Oct 2007 16:40:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IhtD3-0004QZ-Gi for bug-gnu-emacs@gnu.org; Tue, 16 Oct 2007 16:40:15 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IhtD3-0004QQ-Bs for bug-gnu-emacs@gnu.org; Tue, 16 Oct 2007 16:40:13 -0400 Original-Received: from sp604003mt.neufgp.fr ([84.96.92.56] helo=smTp.neuf.fr) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IhtD2-0004tZ-De for bug-gnu-emacs@gnu.org; Tue, 16 Oct 2007 16:40:13 -0400 Original-Received: from [86.67.5.121] by sp604003mt.gpm.neuf.ld (Sun Java System Messaging Server 6.2-5.05 (built Feb 16 2006)) with ESMTP id <0JQ000BPHUQPQA70@sp604003mt.gpm.neuf.ld> for bug-gnu-emacs@gnu.org; Tue, 16 Oct 2007 22:40:01 +0200 (CEST) In-reply-to: User-Agent: Icedove 1.5.0.12 (X11/20070607) X-detected-kernel: by monty-python.gnu.org: Windows 98 (3 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16767 Archived-At: Stefan Monnier wrote: > I've installed a similar patch, thank you, Thank you, this is very much appreciated. You need to delete both spaces ways though. That's why i chose to use (just-one-space 0) over (delete-horizontal-space t) when i didn't realise that (delete-horizontal-space) would do the same thing. Richard Stallman wrote: > There is no reason to delete spaces after point. > Those will end up at the start of the next line > and indentation will adjust them. If you want to keep the same behaviour as before you need to delete both ways. That is needed for the special case where the function is called while the point is whithin the line indentation. In this case the newly introduced save-excursion form might leave the point in the middle of white spaces. If you then delete only backward, spaces will be left on the line. Fabrice