unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* truncate-lines as newline property
@ 2024-03-10 18:53 Evgeny Zajcev
  2024-03-10 19:32 ` Eli Zaretskii
  2024-03-10 19:38 ` Eli Zaretskii
  0 siblings, 2 replies; 7+ messages in thread
From: Evgeny Zajcev @ 2024-03-10 18:53 UTC (permalink / raw)
  To: emacs-devel

[-- 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 --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-03-13 16:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-10 18:53 truncate-lines as newline property Evgeny Zajcev
2024-03-10 19:32 ` 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

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).