From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-15?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.help Subject: Re: help with double spaces etc. Date: Thu, 26 Sep 2002 10:27:05 +0200 Organization: University of Dortmund, Germany Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1033029980 19205 127.0.0.1 (26 Sep 2002 08:46:20 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 26 Sep 2002 08:46:20 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17uUHq-0004zd-00 for ; Thu, 26 Sep 2002 10:46:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17uUHx-0007B0-00; Thu, 26 Sep 2002 04:46:25 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!news.stealth.net!news.stealth.net!eusc.inter.net!Informatik.Uni-Dortmund.DE!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Original-NNTP-Posting-Host: lucy.cs.uni-dortmund.de Mail-Copies-To: never User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:R+Qmq4JdUjQwIO+blbtdYqGzrhY= Original-Xref: nntp.stanford.edu gnu.emacs.help:105329 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:1881 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1881 Todd Wylie writes: > I would really like to be able to have a mode in emacs that would > let the user view text in a different manner than emacs saves the > buffer ... almost a "revert on save" ability. For example, I would > really like to view text in emacs as double-spaced with auto-fill > word-wrapping - but to lose the wrapping and line returns when > saved. > Are there any libraries that do something like this? I've never > written lisp -- is this a very hard thing to write? The "format" feature allows this. See the variable format-alist. If you have a shell command which double-spaces a file (well, standard input) and another un-double-spaces it, then you almost need no Lisp at all. kai -- ~/.signature is: umop ap!sdn (Frank Nobis)