unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: Enabling truncate-lines on a per-line basis
Date: Sat, 05 Dec 2009 14:05:43 -0500	[thread overview]
Message-ID: <jwviqclnsy1.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: mailman.12260.1260000999.2239.help-gnu-emacs@gnu.org

>>> 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


  parent reply	other threads:[~2009-12-05 19:05 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
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 [this message]
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=jwviqclnsy1.fsf-monnier+gnu.emacs.help@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --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).