unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Enabling truncate-lines on a per-line basis
Date: Thu, 03 Dec 2009 21:23:56 -0700	[thread overview]
Message-ID: <hfa2s1$obn$1@ger.gmane.org> (raw)
In-Reply-To: <d791b8790912031522t5fb62458h483bd7eb559a65cc@mail.gmail.com>

Matthew Dempsky wrote:
> On Wed, Dec 2, 2009 at 7:03 PM, Matthew Dempsky <matthew@dempsky.org> 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	other threads:[~2009-12-04  4:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-03  3:03 Enabling truncate-lines on a per-line basis Matthew Dempsky
2009-12-03 23:22 ` Matthew Dempsky
2009-12-04  4:23   ` Kevin Rodgers [this message]
2009-12-04  5:51     ` Matthew Dempsky
2009-12-04  9:55       ` Eli Zaretskii
2009-12-05  8:16       ` Kevin Rodgers
2009-12-05  8:24         ` Matthew Dempsky
     [not found]       ` <mailman.12260.1260000999.2239.help-gnu-emacs@gnu.org>
2009-12-05 19:05         ` Stefan Monnier
2009-12-04  6:11 ` tomas

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='hfa2s1$obn$1@ger.gmane.org' \
    --to=kevin.d.rodgers@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.
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).