From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yevgeniy Makarov Newsgroups: gmane.emacs.help Subject: Horizontal scrolling right (towards column 0) whenever possible Date: Mon, 17 Nov 2008 09:38:21 -0800 (PST) Organization: http://groups.google.com Message-ID: <9a16a384-03bf-44dc-ae37-d4b87968da1f@g17g2000prg.googlegroups.com> 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 1226943650 21313 80.91.229.12 (17 Nov 2008 17:40:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Nov 2008 17:40:50 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 17 18:41:52 2008 Return-path: Envelope-to: geh-help-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 1L286e-00005K-CF for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Nov 2008 18:41:48 +0100 Original-Received: from localhost ([127.0.0.1]:44443 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L285V-00035D-U5 for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Nov 2008 12:40:37 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!g17g2000prg.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 40 Original-NNTP-Posting-Host: 132.198.92.84 Original-X-Trace: posting.google.com 1226943502 9858 127.0.0.1 (17 Nov 2008 17:38:22 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 17 Nov 2008 17:38:22 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: g17g2000prg.googlegroups.com; posting-host=132.198.92.84; posting-account=VrMpNwoAAAAcJW5zIxeTjKEfhzPkF5IJ User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.3) Gecko/2008092510 Ubuntu/8.04 (hardy) Firefox/3.0.3, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:164536 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:59870 Archived-At: Hello, This is an Emacs behavior that could not change for years. It is a combination of truncated lines, auto-fill, and horizontal scrolling. I would like to make it so that when auto-fill breaks a line (on typing Space or Enter), the screen scrolls horizontally to the initial default position (i.e., when column 0 is visible) whenever this does not hide the point. Currently, if the second part of the broken line is long enough, the screen does not scroll right (towards column 0), even though it could do so. Here are the steps to reproduce this behavior. (1) Start Emacs with -q option (2) Adjust the frame width to 80 characters (with the mouse) (3) C-x C-f new-text-file.txt (4) M-x toggle-truncate-lines (to enable) (5) M-x auto-fill-mode (to enable) (6) C-u 60 a [Space] C-u 60 a (to create two words 60 characters long separated by one space) (7) [Space] At this point, auto-fill breaks the line, but the screen is not scrolled horizontally. Therefore, column 0 is hidden, even though doing "C-x >" to return the screen to the initial position does not hide the point. The reason I don't like this behavior is that I often type long lines (formulas in LaTeX), and it unnerves me when, after the line is broken, I cannot see the context of what I am typing. I am using this version of Emacs: GNU Emacs 23.0.60.1 (i486-pc-linux-gnu, GTK+ Version 2.12.9) of 2008-09-19 on iridium, modified by Debian (emacs-snapshot package, version 1:20080919-1~hardy1) Any help would be appreciated. Evgeny