From: Eli Zaretskii <eliz@gnu.org>
To: Evgeny Zajcev <lg.zevlg@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: truncate-lines as newline property
Date: Sun, 10 Mar 2024 21:32:57 +0200 [thread overview]
Message-ID: <86msr5vq52.fsf@gnu.org> (raw)
In-Reply-To: <CAO=W_ZqYfaDPkwyBNa-87=rv=pQos8=a=xEcSS9CT4qybTKftg@mail.gmail.com> (message from Evgeny Zajcev on Sun, 10 Mar 2024 21:53:19 +0300)
> 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?
next prev parent reply other threads:[~2024-03-10 19:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-10 18:53 truncate-lines as newline property Evgeny Zajcev
2024-03-10 19:32 ` Eli Zaretskii [this message]
2024-03-10 22:48 ` Kévin Le Gouguec
2024-03-13 13:15 ` Ihor Radchenko
2024-03-13 16:17 ` Rudolf Adamkovič
2024-03-10 19:38 ` Eli Zaretskii
2024-03-10 20:21 ` Evgeny Zajcev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86msr5vq52.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=lg.zevlg@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.