From: Eli Zaretskii <eliz@gnu.org>
To: Drew Adams <drew.adams@oracle.com>
Cc: 11832@debbugs.gnu.org
Subject: bug#11832: 24.1.50; enhancement request: line truncation not dependent on fringe
Date: Sun, 01 Jul 2012 19:09:00 +0300 [thread overview]
Message-ID: <831ukv79b7.fsf@gnu.org> (raw)
In-Reply-To: <560E2AFCD13442E1A1291714EEA5F487@us.oracle.com>
> From: "Drew Adams" <drew.adams@oracle.com>
> Date: Sun, 1 Jul 2012 07:13:47 -0700
>
> Prior to Emacs 21, truncated lines are indicated by an overlay with a
> `$' symbol shown on each line at the right window edge, i.e., within the
> window & buffer - not in the fringe.
Just for the sake of accuracy: those are not overlays (in the Emacs
sense). They are special glyphs inserted by the display engine as
indication of line truncation.
> In Emacs 21+, this representation was lost AFAIK, replaced by adding a
> symbol to the right fringe.
Only in GUI sessions. If you invoke "emacs -nw", you will still see
those truncation glyphs.
> Please let users choose the representation to use. One way to do this
> would be to let option `truncate-lines' respect different non-nil
> values, e.g. `right-fringe', `overlay'.
>
> Since the fringe representation is not general (is useless unless fringe
> is shown), the default should be the pre-Emacs 21 behavior of using an
> overlay. But I won't argue about the default. Please provide users a
> way to get the pre-21 behavior - that's the main point.
Unfortunately, it is very hard (a.k.a. "impossible") to do that. The
problem is that, depending on the font and the characters on a line, a
line can be truncated in the middle of a glyph, and in that situation
inserting a truncation glyph will not work, because for that you need
a character cell that can accommodate the truncation glyph "$". There
are clear comments about that in the display code.
However, if someone finds a clever solution to this dilemma, patches
or ideas are welcome.
next prev parent reply other threads:[~2012-07-01 16:09 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-01 14:13 bug#11832: 24.1.50; enhancement request: line truncation not dependent on fringe Drew Adams
2012-07-01 16:09 ` Eli Zaretskii [this message]
2012-07-01 16:52 ` Drew Adams
2012-07-01 17:16 ` Andreas Schwab
2012-07-01 17:26 ` Andreas Schwab
2012-07-01 21:41 ` Drew Adams
2012-07-02 13:52 ` Stefan Monnier
2012-07-01 17:34 ` Eli Zaretskii
2012-07-02 19:16 ` Eli Zaretskii
2012-07-02 19:18 ` Drew Adams
2012-07-07 16:44 ` Eli Zaretskii
2012-07-07 16:54 ` Drew Adams
2012-07-18 15:25 ` Drew Adams
2012-07-18 17:08 ` Eli Zaretskii
2012-07-10 19:59 ` Juanma Barranquero
2012-07-13 10:14 ` Eli Zaretskii
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=831ukv79b7.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=11832@debbugs.gnu.org \
--cc=drew.adams@oracle.com \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).