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: Sun, 14 Oct 2007 00:24:58 +0200 Message-ID: <471145BA.6050600@cegetel.net> References: <470FFCF1.5050201@cegetel.net> <4710849B.30104@gmx.at> 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 1192314334 4256 80.91.229.12 (13 Oct 2007 22:25:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Oct 2007 22:25:34 +0000 (UTC) Cc: rms@gnu.org To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 14 00:25:24 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 1IgpQB-0002ak-UO for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Oct 2007 00:25:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IgpQ4-0005RP-KL for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Oct 2007 18:25:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IgpQ1-0005Qb-TC for bug-gnu-emacs@gnu.org; Sat, 13 Oct 2007 18:25:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IgpQ0-0005OP-0R for bug-gnu-emacs@gnu.org; Sat, 13 Oct 2007 18:25:13 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IgpPz-0005O7-PW for bug-gnu-emacs@gnu.org; Sat, 13 Oct 2007 18:25:11 -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 1IgpPv-0001Nn-DZ; Sat, 13 Oct 2007 18:25:07 -0400 Original-Received: from [86.77.75.211] by sp604003mt.gpm.neuf.ld (Sun Java System Messaging Server 6.2-5.05 (built Feb 16 2006)) with ESMTP id <0JPV007FFFLR8CL1@sp604003mt.gpm.neuf.ld>; Sun, 14 Oct 2007 00:25:04 +0200 (CEST) In-reply-to: <4710849B.30104@gmx.at> 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:16743 Archived-At: Ok the problem is not occuring in the official version of emacs 22.1, at least not in the same obvious way. Sorry about the alarmous report. I still have found a minor bug related to this in the official version though, described below. I have found the problem to be much more obvious in the latest testing emacs version (22.1+1-2) and will thus file a bug report at debian.org I reported here because i saw the reindent-then-newline-and-indent function on the Savannah CVS Surfing service (which was the same as the one found in my emacs) was making the assumption that indent-according-to-mode was indenting without moving the cursor position, which i thought could be the source of the problem. It turns out this is the source of the problem for my debian version, where i use a develock advised version of lisp-indent-line which leaves the cursor at the beginning of text, just after the indentation characters. It doesn't happen in the official version though because it seems pretty every indentation function included in the various modes keeps the cursor in place ( i didn't test all the modes though of course ). In respect to the official emacs version, here is the description of a bug with indent-to-left-margin (which used to be the default indentation function for the Fundamental Mode so although this isn't even a command and thus not available to alt-x some people might still use it ) : Let's create indentation_test.txt like this : cat > indentation_test.txt <