>>>> "Vladimir" == Vladimir G Ivanovic
<vladimir(a)acm.org> writes:
Vladimir> Sounds like this is where a user option is needed. BTW,
Er, you have it. Open up the Tools -> Packages -> Install menu,
install VM, use it. Most of the time, this kind of option does not
belong in Emacs proper, but in the application program.
If you want Emacs to act like Memopad, write a (minor) mode to emulate
Memopad. Or maybe it's already been done. Look into "hard" newlines.
This is a device where newlines are marked according to whether they
were entered by the user (with the Return or Enter keys)---hard, or by
the software in word wrap mode---soft. I have no idea whether it
actually works as you want or not but the feature is there.
Vladimir> I don't think the solution is for XEmacs to _add_
Vladimir> linebreaks, but for the display code to be smart enough
Vladimir> to wrap.
No chance. This is not something that should be done by the redisplay
code. It's just not possible to get it right without both
understanding the semantics of the buffer content and reading the
user's mind about preferences. Not to mention that in the example you
gave, you were looking at something that doesn't conform to the
recommended format for its application (ie, < 78 character lines) and
could easily be illegal if it got another couple hundred characters
longer. Having display cover that up would almost certainly result in
XEmacs generating similarly broken mail, which is not to be tolerated.
If you want the display to be different from what's in the file, use
either an indirect buffer or a separate presentation buffer as VM
does, or a more complex hack like the one used by preview-latex.
--
Institute of Policy and Planning Sciences
http://turnbull.sk.tsukuba.ac.jp
University of Tsukuba Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
Ask not how you can "do" free software business;
ask what your business can "do for" free software.