From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Display-based word wrapping Date: Tue, 24 Jun 2008 14:06:52 -0400 Message-ID: <87k5gen1vn.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1214331123 25866 80.91.229.12 (24 Jun 2008 18:12:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 Jun 2008 18:12:03 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 24 20:12:48 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 1KBD0N-0000Ng-Td for ged-emacs-devel@m.gmane.org; Tue, 24 Jun 2008 20:12:36 +0200 Original-Received: from localhost ([127.0.0.1]:34815 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KBCzY-0000aK-Dk for ged-emacs-devel@m.gmane.org; Tue, 24 Jun 2008 14:11:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KBCzU-0000aD-IO for emacs-devel@gnu.org; Tue, 24 Jun 2008 14:11:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KBCzT-0000a1-3k for emacs-devel@gnu.org; Tue, 24 Jun 2008 14:11:40 -0400 Original-Received: from [199.232.76.173] (port=59728 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KBCzT-0000Zy-1M for emacs-devel@gnu.org; Tue, 24 Jun 2008 14:11:39 -0400 Original-Received: from cyd.mit.edu ([18.115.2.24]:38000) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KBCzS-0004BR-W5 for emacs-devel@gnu.org; Tue, 24 Jun 2008 14:11:39 -0400 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id CD6934E45D; Tue, 24 Jun 2008 14:06:52 -0400 (EDT) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:99857 Archived-At: I've checked in Kim F. Storm's display-based word-wrapping patch, with some modifications. The word-wrapping is controlled by the `word-wrap' per-buffer variable. It is a form of continuation line, so e.g. will not be performed if lines are truncated rather than continued. The default is nil. More work will have to be done to make this really useful for editing documents with long lines: (i) the minor mode for screen-based editing commands being discussed in another thread, (ii) a way to change the continuation/wrapping/truncation margin, and (iii) a way to customize the fringe indicators to avoid displaying tons of continuation line indicators. I have also changed truncate-partial-width-windows to accept integer values specifying a window width below which to truncate lines, and changed the default to 30. I believe the patch should not affect the default behavior where word-wrap is nil, but please be on the lookout. Problem reports are welcome.