From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kai Grossjohann Newsgroups: gmane.emacs.help Subject: Re: Enriched Fill, and soft newlines Date: Sat, 27 Nov 2004 21:18:12 +0100 Message-ID: <86fz2voxkr.fsf@ketchup.de.uu.net> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1101588705 29883 80.91.229.6 (27 Nov 2004 20:51:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 27 Nov 2004 20:51:45 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Nov 27 21:51:40 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CY9Xg-00034A-00 for ; Sat, 27 Nov 2004 21:51:40 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CY9gz-0005at-9H for geh-help-gnu-emacs@m.gmane.org; Sat, 27 Nov 2004 16:01:17 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CY9gn-0005Z3-Qx for help-gnu-emacs@gnu.org; Sat, 27 Nov 2004 16:01:05 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CY9gn-0005Ye-BK for help-gnu-emacs@gnu.org; Sat, 27 Nov 2004 16:01:05 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CY9gn-0005Yb-85 for help-gnu-emacs@gnu.org; Sat, 27 Nov 2004 16:01:05 -0500 Original-Received: from [80.91.229.2] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CY9X0-0003Yw-Py for help-gnu-emacs@gnu.org; Sat, 27 Nov 2004 15:50:59 -0500 Original-Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1CY9Wz-0004CP-00 for ; Sat, 27 Nov 2004 21:50:57 +0100 Original-Received: from p5487cb14.dip.t-dialin.net ([84.135.203.20]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 27 Nov 2004 21:50:57 +0100 Original-Received: from kai by p5487cb14.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 27 Nov 2004 21:50:57 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 30 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: p5487cb14.dip.t-dialin.net User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:hcGyHGaaND4AEbLGRblEYZztL1E= 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: main.gmane.org gmane.emacs.help:22377 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:22377 KKramsch writes: > I would like to have Emacs automatically insert "soft newlines" to > wrap around the lines in a paragraph, and I would appreciate it > very much if someone could explain to me how to do this. There is longlines.el which can add soft newlines when the file is read, and remove them again when the file is written. Then end result is that you see normal word-wrapped lines in Emacs, but the file on disk uses the Windows-like "each paragraph a single very long line" style. > My understanding from the documentation was that all I had to do > was to load the Enriched and Fill modes, but when I do this the > filling appears to be done by inserting *hard* newlines, since when > I change the width of a window displaying a buffer in the Enriched > Fill mode, the positions of the breaks within the lines do not > change to reflect the new width. What you are looking for is not called soft newlines in the Emacs world, it is called display word wrap. The Emacs C code needs to be changed to achieve this. Perhaps there are experimental implementations in some people's working copies, but afaik none of them has been checked into the Emacs CVS repository. Display word wrap has been the subject of a number of heated discussions in the Emacs devloper list. I think the consensus is now that display word wrap is a useful thing. Kai