5 ms·
Emacs word-wrap does it the "sane" way out of the box in 26.3. The current version is 29.3. I tested it with that exact text just now. I doubt it would have got
by jrootabega 2y ago
Emacs word-wrap does it the "sane" way out of the box in 26.3. The current version is 29.3. I tested it with that exact text just now. I doubt it would have gotten worse after 26.3, so something in the author's config or build is probably messing it up. Maybe he's using an even older version. Or maybe he mistakenly doesn't actually have word-wrap set.
- tom_ 2y agoEmacs 30.0.50 wraps charwise for me when invoked with emacs -Q. (The manual describes this as continuation lines: https://www.gnu.org/software/emacs/manual/html_node/emacs/Continuation-Lines.html https://www.gnu.org/software/emacs/manual/html_node/emacs/Co...) Word wrap is available with M-x word-wrap-whitespace.
- Ferret7446 2y agoDo you want to display long lines, or do you want to add newlines to the file? Generally, the former is only used occasionally for code (where wrapping by words isn't usually useful), and human language text uses the latter.
- jrootabega 2y agoAgreed for a completely unconfigured emacs process. But the article mentions enabling word-wrap. (That's one possible point of confusion for some - he means a variable/mode/feature with the name of "word-wrap", not just a generic word wrapping behavior.) It seems that that feature still does the sensible thing up through version 30. And from what I can tell from the mailing list, word-wrap-whitespace is an enhancement of the default word-wrap behavior that allows you to define your own whitespace chars to trigger a wrap. But from an outsider's perspective, I see how not having ANY whitespace-based word wrapping behavior enabled by default would be off-putting.