help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Enabling truncate-lines on a per-line basis


From: Stefan Monnier
Subject: Re: Enabling truncate-lines on a per-line basis
Date: Sat, 05 Dec 2009 14:05:43 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

>>> Maybe you could set the display text property on each line (starting
>>> just before the right margin), to emulate truncate-lines.
>> Nope, text from the 'display' property text still wraps. Also, you
>> can't navigate through it with the point. :(
> I meant, if you want the buffer text truncated at column N, set the display
> property at column N - 1 through the rest of the line to a single character
> (e.g. U+2026 HORIZONTAL ELLIPSIS or U+22EF MIDLINE HORIZONTAL ELLIPSIS) to
> indicate truncation.

That can sadly be a lot more tricky that you'd like (even without
getting into proportional fonts, you have the problem of fixed-width
fonts but with varying facs giving varying font-sizes, or TABs, or \NNN
escape sequences, or images, or ...).


        Stefan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]