all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@posteo.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Evgeny Zajcev <lg.zevlg@gmail.com>, emacs-devel@gnu.org
Subject: Re: truncate-lines as newline property
Date: Wed, 13 Mar 2024 13:15:59 +0000	[thread overview]
Message-ID: <87le6mw9v4.fsf@localhost> (raw)
In-Reply-To: <86msr5vq52.fsf@gnu.org>

Eli Zaretskii <eliz@gnu.org> writes:

>> 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?
> ...
> Any real-life rationale for adding such a feature?

In Org mode, users often ask to disable line wrapping for tables
specifically:

| very wide table with a lot of text in it | is unreadable when wrapped  |
| so                                       | people                      |
| often                                    | want tables to be truncated |

| very wide table with a lot of text in it | is ⏎
unreadable when wrapped  |
| so                                       | peo⏎
ple                      |
| often                                    | want⏎
tables to be truncated |

At the same time, line wrapping in normal paragraphs is expected even
when wide tables are present.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



  parent reply	other threads:[~2024-03-13 13:15 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
2024-03-10 22:48   ` Kévin Le Gouguec
2024-03-13 13:15   ` Ihor Radchenko [this message]
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=87le6mw9v4.fsf@localhost \
    --to=yantar92@posteo.net \
    --cc=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.