bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: reindent-then-newline-and-indent doesn't indent properly in emacs 22


From: nuxdoors
Subject: Re: reindent-then-newline-and-indent doesn't indent properly in emacs 22.1
Date: Tue, 16 Oct 2007 22:39:21 +0200
User-agent: Icedove 1.5.0.12 (X11/20070607)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]