From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: "word processor" text files Date: Mon, 31 Jul 2006 09:04:03 -0600 Organization: IHS Message-ID: References: <20060731095631.26900.qmail@brouhaha.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1154358416 17123 80.91.229.2 (31 Jul 2006 15:06:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 31 Jul 2006 15:06:56 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 31 17:06:54 2006 Return-path: Envelope-to: geb-bug-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 1G7ZLX-0004bn-5k for geb-bug-gnu-emacs@m.gmane.org; Mon, 31 Jul 2006 17:06:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G7ZLW-00084M-PE for geb-bug-gnu-emacs@m.gmane.org; Mon, 31 Jul 2006 11:06:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G7ZLV-00083t-MH for bug-gnu-emacs@gnu.org; Mon, 31 Jul 2006 11:06:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G7ZLS-000833-PL for bug-gnu-emacs@gnu.org; Mon, 31 Jul 2006 11:06:16 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G7ZLS-000830-JQ for bug-gnu-emacs@gnu.org; Mon, 31 Jul 2006 11:06:14 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1G7ZO8-000229-Sm for bug-gnu-emacs@gnu.org; Mon, 31 Jul 2006 11:09:01 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1G7ZKw-0004UJ-Pa for bug-gnu-emacs@gnu.org; Mon, 31 Jul 2006 17:05:44 +0200 Original-Received: from 207.167.42.206 ([207.167.42.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 31 Jul 2006 17:05:42 +0200 Original-Received: from ihs_4664 by 207.167.42.206 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 31 Jul 2006 17:05:42 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: bug-gnu-emacs@gnu.org Original-Lines: 40 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 207.167.42.206 User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) In-Reply-To: <20060731095631.26900.qmail@brouhaha.com> X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:15251 Archived-At: Paul Rubin wrote: > I wish there were a way to edit "word processor"-format text files in > Emacs. I don't mean .doc or anything like that, just .txt files with > no newlines except between paragraphs. The idea is the text flows > automatically as you add stuff, or if you insert in the middle. > Newline ends a paragraph. > > The actual goal is to AVOID using a word processor (right now I use > OpenOffice for this type of file, but I'd rather use Emacs). The > usual reason is that I want to write some text to paste into a web > browser form. The browser wants to fill text itself, and any newlines > in the input turn into incorrectly placed line breaks. > > Am I missing something? ,----[ C-h f longlines-mode RET ] | longlines-mode is an interactive autoloaded Lisp function in `longlines'. | (longlines-mode &optional arg) | | Toggle Long Lines mode. | In Long Lines mode, long lines are wrapped if they extend beyond | `fill-column'. The soft newlines used for line wrapping will not | show up when the text is yanked or saved to disk. | | If the variable `longlines-auto-wrap' is non-nil, lines are automatically | wrapped whenever the buffer is changed. You can always call | `fill-paragraph' to fill individual paragraphs. | | If the variable `longlines-show-hard-newlines' is non-nil, hard newlines | are indicated with a symbol. | | [back] `---- So: (add-hook 'text-mode-hook (lambda () (longlines-mode 1))) -- Kevin