From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: scroll-lock-mode and goal-column Date: Fri, 13 Jun 2008 18:05:10 +0200 Message-ID: <86abhpgw21.fsf@lola.quinscape.zz> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1213373471 25317 80.91.229.12 (13 Jun 2008 16:11:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Jun 2008 16:11:11 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 13 18:11:54 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 1K7Bqr-0000JA-Ng for ged-emacs-devel@m.gmane.org; Fri, 13 Jun 2008 18:10:10 +0200 Original-Received: from localhost ([127.0.0.1]:40933 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K7Bq3-0002Zh-UN for ged-emacs-devel@m.gmane.org; Fri, 13 Jun 2008 12:09:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K7Bm7-0008FK-Jn for emacs-devel@gnu.org; Fri, 13 Jun 2008 12:05:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K7Bm4-0008C2-Gv for emacs-devel@gnu.org; Fri, 13 Jun 2008 12:05:14 -0400 Original-Received: from [199.232.76.173] (port=58005 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K7Bm4-0008Bm-As for emacs-devel@gnu.org; Fri, 13 Jun 2008 12:05:12 -0400 Original-Received: from mail.quinscape.de ([212.29.44.217]:35636) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K7Bm3-0004wF-Nx for emacs-devel@gnu.org; Fri, 13 Jun 2008 12:05:12 -0400 Original-Received: (qmail-ldap/ctrl 8291 invoked from network); 13 Jun 2008 16:05:09 -0000 Original-Received: from unknown (HELO lola.quinscape.zz) ([10.0.3.43]) (envelope-sender ) by quinx.quinscape.de (qmail-ldap-1.03) with SMTP for ; 13 Jun 2008 16:05:09 -0000 Original-Received: by lola.quinscape.zz (Postfix, from userid 1001) id 413CF8EFE7; Fri, 13 Jun 2008 18:05:10 +0200 (CEST) In-Reply-To: (Stefan Monnier's message of "Fri, 13 Jun 2008 11:49:00 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-AntiVirus: checked by AntiVir MailGate (version: 2.1.3-2; AVE: 7.8.0.55; VDF: 7.0.4.191; host: quinx) 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:99120 Archived-At: Stefan Monnier writes: > Now that scroll-preserve-screen-position preserves the column position, > I think that scroll-lock-mode can be simplified to not mess with the > goal-column any more. Could someone look into this? Im not convinced that scroll-preserve-screen-position _can_ preserve the column position. In the times where only fixed width characters existed, goal-column served the function of maintaining a column position even when one was moving temporarily across lines that had no "point" corresponding to a previous goal column. For preserving screen positions in the presence of variable width fonts, we really need a goal-pixel-position instead in order to have a comparable preservation of movement. Otherwise, moving back and forth "visually" across a line with a larger font, or just moving vertically across proportionally spaced fonts will make us lose track of the actual position. -- David Kastrup