all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kai Grossjohann <kai@emptydomain.de>
Subject: Re: Enriched Fill, and soft newlines
Date: Sat, 27 Nov 2004 21:18:12 +0100	[thread overview]
Message-ID: <86fz2voxkr.fsf@ketchup.de.uu.net> (raw)
In-Reply-To: cntk6b$4ga$1@reader1.panix.com

KKramsch <karlUNDERSCOREkramsch@yahooPERIODcom.invalid> 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

      reply	other threads:[~2004-11-27 20:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-22 21:03 Enriched Fill, and soft newlines KKramsch
2004-11-27 20:18 ` Kai Grossjohann [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86fz2voxkr.fsf@ketchup.de.uu.net \
    --to=kai@emptydomain.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.