Timeline for Is it possible to have word-wrap as standard but truncate some lines in a buffer at the same time?
Current License: CC BY-SA 4.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 24, 2022 at 1:10 | comment | added | NickD | Added a link to the info page of the emacs-devel mailing list. | |
| Mar 24, 2022 at 1:09 | history | edited | NickD | CC BY-SA 4.0 | added 72 characters in body |
| Mar 22, 2022 at 20:55 | comment | added | student | Could you post a link to the emacs-devel you referred to? Do you know if the situation for this changed in 2022 compared to 2015? | |
| Feb 19, 2015 at 2:38 | comment | added | Tom Tromey | Well... so, I think another way it could maybe be done is to "fill" the text by marking some spaces with a string-substitution display property holding a newline. This would appear to wrap, maybe. However -- this seems as unfriendly as modifying the text for purposes of editing, since the display will be different from what one sees. Also you'd need special code to keep filling up-to-date I guess. But ... yes, maybe there is a way. | |
| Feb 19, 2015 at 0:50 | comment | added | lawlist | I agree that using a buffer modification template as a starting point (i.e., longlines-mode) is the less preferred method. I respectfully disagree, however, with the notion that the original poster may be out of luck. An overlay with an 'invisible t or a 'display "" property does not modify the buffer text and that overlay can effectively visually truncate any line in the buffer -- this can be selectively done. In other words, word-wrap remains active while targeted truncation can be done with overlays. | |
| Feb 19, 2015 at 0:28 | history | answered | Tom Tromey | CC BY-SA 3.0 |