[Top][All Lists]

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

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

From: Kevin Rodgers
Subject: Re: Enabling truncate-lines on a per-line basis
Date: Thu, 03 Dec 2009 21:23:56 -0700
User-agent: Thunderbird (Macintosh/20090812)

Matthew Dempsky wrote:
On Wed, Dec 2, 2009 at 7:03 PM, Matthew Dempsky <address@hidden> wrote:
Is there currently a way to selectively enable truncation on certain
lines, but leave it disabled on others?

Looking at xdisp.c, it looks like there's no elisp solution to setting
line_wrap == TRUNCATION on a per-line basis, and even if there was, it
looks like more of the display algorithm would need reworking to
support it.

Maybe you could set the display text property on each line (starting
just before the right margin), to emulate truncate-lines.

If that works, you might be able to set the property via font-lock.

Kevin Rodgers
Denver, Colorado, USA

reply via email to

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