emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: truncate-lines as newline property


From: Eli Zaretskii
Subject: Re: truncate-lines as newline property
Date: Sun, 10 Mar 2024 21:32:57 +0200

> From: Evgeny Zajcev <lg.zevlg@gmail.com>
> Date: Sun, 10 Mar 2024 21:53:19 +0300
> 
> As I understand, truncate-lines is a buffer property, so it applies to every 
> line in the buffer.
> 
> Is it possible with some rather small changes to redisplay make it per 
> newline property, so you can specify
> which line to truncate and to which apply buffer setting?

Not without serious changes to the display code, specifically to the
code that lays out screen lines and decides what to do when it reaches
the edge of the window.

Also, there's some C code outside of redisplay, and a lot of Lisp code
out there that looks at the buffer-local variable assuming all the
lines behave the same.  If this can be per-line, all that code will
have to be updated.

Any real-life rationale for adding such a feature?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]