Non-destructive word-wrap

topic posted Fri, July 7, 2006 - 11:32 PM by  Theron Ttlåx
I think this is a faq, but anyone know how to get a non-destructive wordwrap?

In a totally unrelated note, anyone using cvs emacs 22? I just compiled on a fresh fedora core 5 and got `out of pure space' warnings. I tweaked the const in the header file and recompiled and it went away, but i am wondering if there is a better solution.

But mainly question 1 above....
  • Re: Non-destructive word-wrap

    Sat, July 8, 2006 - 12:55 AM
    Can you clarify what you mean by "non-destructive"? Does M-x auto-fill-mode not do what you want? And if not, how so?

    I've been building emacs from cvs at least once a month usually, for the past 8 years or so. The last time was 6/22 and I didn't run into any purespace problems at the time. When was your pull date?
    • Re: Non-destructive word-wrap

      Sun, July 9, 2006 - 1:25 AM
      Let's say you are writing something that is meant to be a paragraph and you are going to need to convert it to some other document format some time down the line. `auto-fill-mode' will add actual line-breaks to the lines. So if emacs is set to 72 chars wide, it will make a document with lines that long.

      I hate to bring up Windoze here, but notepad.exe (for example) has a non-destructive word-wrap. it wraps words, but that is only an artifact of the display, not the actual content of the file. So you can read your work nicely wrapped while you're working on it, but if you later send it to some other program, it won't have all those line-breaks hard-coded by auto-fill-mode.

      Anyway, what i was hoping for may just be too much against the grain of what emacs is designed for. Dunno.

      As for the build, it was just a few days ago (don't remember the exact date). 22.0.50.1. Maybe i'll try again later. It's not a big deal as it works so far with the edit i made.
      • Bug
        Bug
        offline 0

        Re: Non-destructive word-wrap

        Fri, July 14, 2006 - 3:36 AM
        Get longlines-mode from www.emacswiki.org/cgi-bin/wiki/LongLines
        [To use it, save it somewhere, and put the line
        (load-file "/path/to/longlines.el")
        in your Emacs init file.
        M-x longlines-mode, etc. ]

        It's surprising that such a feature wasn't in the default Emacs installation all these years, but I think it will be included from next time.
        • Re: Non-destructive word-wrap

          Sat, July 15, 2006 - 7:49 PM
          Bwa-ha-ha-ha! That's hilarious. In fact being as i am using cvs emacs it is included. All i needed was M-x longlines-mode.

          Thank you! Funny thing is i'm sure i've heard of it somewhere.


          In another note, i re-built emacs from newer sources (a few days later) and the puremem problem went away. So the One True Editor is all good again.

Recent topics in "Emacs"

Topic Author Replies Last Post
eMergency eLisp 0 January 25, 2008
pretty quiet 0 September 14, 2007
Emacs 22 released Theron Ttlåx 0 June 5, 2007
ViewMail with smtpmail? offlinealex 0 November 29, 2006
ASP/JScript - MMM? Unsubscribed 2 July 28, 2006