unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Robert Pluim <rpluim@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: zero-width line continuation glyph
Date: Tue, 11 Sep 2018 15:24:57 +0300	[thread overview]
Message-ID: <83pnxkmdba.fsf@gnu.org> (raw)
In-Reply-To: <8736ugdz40.fsf@gmail.com> (message from Robert Pluim on Tue, 11 Sep 2018 13:58:55 +0200)

> From: Robert Pluim <rpluim@gmail.com>
> Date: Tue, 11 Sep 2018 13:58:55 +0200
> 
> Iʼm trying to get the line continuation character to not be shown for
> lines that are exactly as long as the window width. In a GUI frame,
> with the fringe turned off, I can do:
> 
> (let ((disptab (or buffer-display-table
>                    (setq buffer-display-table (make-display-table)))))
>     (set-display-table-slot disptab 'wrap (gethash "ZERO WIDTH SPACE" (ucs-names))))
> 
> which causes the '\' to not be shown, but the next character does not
> get displayed in its place, ie

ZERO WIDTH SPACE by default is displayed as a 1-pixel thin space, so I
think you will have to tweak glyphless-char-display-control to display
that character as nothing, to get what you want.  Otherwise, the 1
pixel less space left on the line is not enough for Emacs to display
another character.

> In emacs -nw, the behaviour is different:
> 
> 0123456789
> xxxxxxxxxx\
> x
> 
> gets transformed to
> 
> 0123456789
> xxxxxxxxxxx
> 
> which is what I want, but then any characters I add to the end of that line are not
> displayed at all.

Since TTYs cannot display thin characters, the above sounds like a bug
to me.  But again, without tweaking glyphless-char-display-control,
what you want cannot happen (if at all).



  reply	other threads:[~2018-09-11 12:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-11 11:58 zero-width line continuation glyph Robert Pluim
2018-09-11 12:24 ` Eli Zaretskii [this message]
2018-09-11 12:52   ` Robert Pluim
2018-09-11 12:37 ` Eli Zaretskii
2018-09-11 12:51   ` Robert Pluim
2018-09-11 13:08     ` Eli Zaretskii
2018-09-11 13:12       ` Robert Pluim

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=83pnxkmdba.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=rpluim@gmail.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).