From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bjoern Voigt Newsgroups: gmane.emacs.help Subject: Re: Emacs as an external flowed-text editor? Date: 14 Jun 2006 16:08:38 +0200 Organization: private Message-ID: <87d5dbommx.fsf@chemnitz.dialup.cs.tu-berlin.de> References: <87lks2ociv.fsf@chemnitz.dialup.cs.tu-berlin.de> <87y7w2w57b.fsf@linux.site> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1150296076 7601 80.91.229.2 (14 Jun 2006 14:41:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 14 Jun 2006 14:41:16 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 14 16:41:11 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FqWY7-0007TW-Fy for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Jun 2006 16:40:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FqWY7-0006AZ-18 for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Jun 2006 10:40:51 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news4.google.com!news.glorb.com!news2.volia.net!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 42 Original-X-Trace: news.t-online.com 1150294157 02 12133 40TxvKZ6KbvCGeO 060614 14:09:17 Original-X-Complaints-To: usenet-abuse@t-online.de X-ID: S3-jd-ZbgeFRW8Pp89kLCyNAxkNDP75YI8xyKyuCZr6I6ooBCsjWYZ User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-Xref: shelby.stanford.edu gnu.emacs.help:139840 Original-To: help-gnu-emacs@gnu.org 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:35465 Archived-At: roodwriter@core.com writes: > I'm not exactly clear on what you're asking here. If you're asking for > a traditional word wrap with a carriage return (newline) just at the > end of a paragraph, like word processors do, then try longlines.el. I > just plopped it into my .emacs file, restarted and it works fine. Thank you for the tip with "longlines.el". I think it's possible to compose e-mails with long-lines-mode. The mailer can do the special format=flowed line wrapping after editing the message. But I think, that long-lines-mode is not perfect, if I edit mails which were already stored as a draft with format=flowed encoding or if I edit replies with "> "-paragraphs. The flowed format is defined in RFC 3676 (http://www.rfc-archive.org/getrfc.php?rfc=3676). Flowed-text capable mailers wrap lines after 66 characters (configurable) like other mailer too. But the flowed text format knows two types of line breaks: Hard line breaks: Soft line breaks: I have attached the example output of emacs after calling the function "fill-flowed-test" from gnus/flow-fill.el. http://user.cs.tu-berlin.de/~bjoern/emacs/fill-flowed-test.png The trailing spaces are marked red in the screenshot. A flowed-text capable program can adjust the line wrapping according to the window width. Also a flowed-text capable editor preserves the trailing spaces if it formats a paragraph. Because flow-fill.el is already in Emacs/Gnus it's clear that Emacs can display and compose flowed text. But I don't know what I have to write into my .emacs file to activate this mode. The "fill-flowed" function is not interactively avaliable after loading gnus/flow-fill.el with "load-file", "autoload" or "require". Greetings, Björn