From: Evgeny Zajcev <lg.zevlg@gmail.com>
To: emacs-devel <emacs-devel@gnu.org>
Subject: truncate-lines as newline property
Date: Sun, 10 Mar 2024 21:53:19 +0300 [thread overview]
Message-ID: <CAO=W_ZqYfaDPkwyBNa-87=rv=pQos8=a=xEcSS9CT4qybTKftg@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 538 bytes --]
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?
Here is the example:
(setq truncate-lines nil)
(insert "<very long line>"
(propertize "\n" 'truncate-lines t)) ; this line will be
truncated
(insert "<another very long line>" "\n") ; this line will be wrapped
What do you think about this feature?
--
lg
[-- Attachment #2: Type: text/html, Size: 940 bytes --]
next reply other threads:[~2024-03-10 18:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-10 18:53 Evgeny Zajcev [this message]
2024-03-10 19:32 ` truncate-lines as newline property Eli Zaretskii
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='CAO=W_ZqYfaDPkwyBNa-87=rv=pQos8=a=xEcSS9CT4qybTKftg@mail.gmail.com' \
--to=lg.zevlg@gmail.com \
--cc=emacs-devel@gnu.org \
/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.