From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: next-line screws up column at the EOL Date: Wed, 26 Sep 2007 16:14:22 -0400 Message-ID: References: <46F7E6CE.1010907@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1190837703 24447 80.91.229.12 (26 Sep 2007 20:15:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 26 Sep 2007 20:15:03 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org To: Sam Steingold Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 26 22:14:58 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IadHd-0003GG-EB for ged-emacs-devel@m.gmane.org; Wed, 26 Sep 2007 22:14:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IadHZ-00060F-Pv for ged-emacs-devel@m.gmane.org; Wed, 26 Sep 2007 16:14:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IadHD-0005tE-Ag for emacs-devel@gnu.org; Wed, 26 Sep 2007 16:14:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IadHC-0005t1-P7 for emacs-devel@gnu.org; Wed, 26 Sep 2007 16:14:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IadHC-0005sy-Le for emacs-devel@gnu.org; Wed, 26 Sep 2007 16:14:30 -0400 Original-Received: from tomts25-srv.bellnexxia.net ([209.226.175.188]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IadH5-0004Qs-Fv; Wed, 26 Sep 2007 16:14:23 -0400 Original-Received: from pastel.home ([74.12.208.240]) by tomts25-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070926201422.QPOU19497.tomts25-srv.bellnexxia.net@pastel.home>; Wed, 26 Sep 2007 16:14:22 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 9C443898D; Wed, 26 Sep 2007 16:14:22 -0400 (EDT) In-Reply-To: <46F7E6CE.1010907@gnu.org> (Sam Steingold's message of "Mon\, 24 Sep 2007 12\:33\:18 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) X-Detected-Kernel: Solaris 8 (1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:79935 Archived-At: >> This doesn't fail for me, in sources from Sep 23. > indeed, "emacs -q" DTRT. > but I set track-eol to t in .emacs, and since this change: > 2007-09-16 Stefan Monnier > * simple.el (newline): Simplify use of prefix-numeric-value. > (line-move-partial): Remove unused var `ppos'. > (line-move-1): Replace 9999 with most-positive-fixnum. > (move-end-of-line): Use more efficient single-property search. > (move-beginning-of-line): Remove unused var `start'. > (blink-matching-open): Restructure in a more functional style. > the behavior has changed: when track-eol is nil, the behavior is what I > want (and what I always got when I set track-eol to t), > while when track-eol is t, the behavior is screwed as I described in my > original message. I cannot reproduce your problem. Can you give a recipe starting from "emacs -Q"? My guess is that some code somewhere uses "column + 1" so the most-positive-fixnum causes a wraparound, but I can't find the relevant code. Stefan