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: scroll-lock-mode and goal-column Date: Thu, 03 Jul 2008 18:10:48 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1215123072 8820 80.91.229.12 (3 Jul 2008 22:11:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Jul 2008 22:11:12 +0000 (UTC) Cc: emacs-devel@gnu.org To: Ralf Angeli Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 04 00:11:59 2008 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 1KEX1x-0003Ba-22 for ged-emacs-devel@m.gmane.org; Fri, 04 Jul 2008 00:11:57 +0200 Original-Received: from localhost ([127.0.0.1]:37456 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KEX16-0006bG-9D for ged-emacs-devel@m.gmane.org; Thu, 03 Jul 2008 18:11:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KEX11-0006ao-Mz for emacs-devel@gnu.org; Thu, 03 Jul 2008 18:10:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KEX10-0006aU-9E for emacs-devel@gnu.org; Thu, 03 Jul 2008 18:10:58 -0400 Original-Received: from [199.232.76.173] (port=55517 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KEX10-0006aN-1Q for emacs-devel@gnu.org; Thu, 03 Jul 2008 18:10:58 -0400 Original-Received: from mercure.iro.umontreal.ca ([132.204.24.67]:45078) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KEX0z-00029U-QN for emacs-devel@gnu.org; Thu, 03 Jul 2008 18:10:57 -0400 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 923682CFB03; Thu, 3 Jul 2008 18:10:57 -0400 (EDT) Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id A236A3FE0; Thu, 3 Jul 2008 18:10:48 -0400 (EDT) Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 8E75112ED12; Thu, 3 Jul 2008 18:10:48 -0400 (EDT) In-Reply-To: (Ralf Angeli's message of "Mon, 30 Jun 2008 22:31:08 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) 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:100314 Archived-At: >>> And if I open the raw dir file the behavior is even worse, meaning >>> point will not jump back into the previous column at all once it got >>> stuck to column 0. >> >> I actually much prefer this behavior because it's consistent with the >> simple `last-command' problem, so it should be easy to fix. > I'm not sure what to let-bind `last-command' to, but setting Any of `scroll-up' or `scroll-down'. > `this-command' seems to work. (See attached patch. No ChangeLog entry, Yes, it should work as well. > The only problem now is that once the `forward-line' movement kicks in > at the start or end of a buffer, point will be moved to column 0 again. Oh, indeed. That needs more work. > However, I'd prefer the column to be preserved. Since this behavior of > `forward-line' is by design, I'm not sure if we can get rid of the > manual preservation of the goal column. How 'bout using next-line? Stefan