unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* zero-width line continuation glyph
@ 2018-09-11 11:58 Robert Pluim
  2018-09-11 12:24 ` Eli Zaretskii
  2018-09-11 12:37 ` Eli Zaretskii
  0 siblings, 2 replies; 7+ messages in thread
From: Robert Pluim @ 2018-09-11 11:58 UTC (permalink / raw)
  To: emacs-devel

Hi,

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

0123456789
xxxxxxxxxx\
x

gets transformed to

0123456789
xxxxxxxxxx
x

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.

Thanks

Robert



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-09-11 13:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-11 11:58 zero-width line continuation glyph Robert Pluim
2018-09-11 12:24 ` Eli Zaretskii
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

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