[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Line wrap reconsidered
From: |
Ihor Radchenko |
Subject: |
Re: Line wrap reconsidered |
Date: |
Wed, 27 May 2020 03:12:03 +0800 |
>> There is no way to know if some text is table or body without major mode
>> adding text properties to distinguish them.
> Of course, there is: the major mode is the one that creates the table,
> doesn't it? So the mode knows where the table is.
I think we misunderstand each other here.
I suggest to tell Emacs display backend not to wrap some text if the
text has certain text property.
Then, putting that text property is a way for a major mode to mark
unwrappable text.
The marked text may not necessarily be a table (table is just an
example). Other cases include, for example, extremely long lines, which
would slow down Emacs if wrapped.
Eli Zaretskii <address@hidden> writes:
>> From: Yuan Fu <address@hidden>
>> Date: Tue, 26 May 2020 12:43:57 -0400
>> Cc: Stefan Monnier <address@hidden>,
>> address@hidden,
>> emacs-devel <address@hidden>
>>
>> There is no way to know if some text is table or body without major mode
>> adding text properties to distinguish them.
>
> Of course, there is: the major mode is the one that creates the table,
> doesn't it? So the mode knows where the table is.
--
Ihor Radchenko,
PhD,
Center for Advancing Materials Performance from the Nanoscale (CAMP-nano)
State Key Laboratory for Mechanical Behavior of Materials, Xi'an Jiaotong
University, Xi'an, China
Email: address@hidden, address@hidden
- Re: Line wrap reconsidered, (continued)
- Re: Line wrap reconsidered, Stefan Monnier, 2020/05/26
- Re: Line wrap reconsidered, Eli Zaretskii, 2020/05/26
- Re: Line wrap reconsidered, Yuan Fu, 2020/05/26
- Re: Line wrap reconsidered, Ihor Radchenko, 2020/05/26
- Re: Line wrap reconsidered, Eli Zaretskii, 2020/05/26
- Re: Line wrap reconsidered, Yuan Fu, 2020/05/26
- Re: Line wrap reconsidered, Eli Zaretskii, 2020/05/26
- Re: Line wrap reconsidered,
Ihor Radchenko <=
- Re: Line wrap reconsidered, Eli Zaretskii, 2020/05/26
- Re: Line wrap reconsidered, Stefan Monnier, 2020/05/26
Re: Line wrap reconsidered, Stefan Monnier, 2020/05/25
Re: Line wrap reconsidered, Lars Ingebrigtsen, 2020/05/25