From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: zero-width line continuation glyph Date: Tue, 11 Sep 2018 15:24:57 +0300 Message-ID: <83pnxkmdba.fsf@gnu.org> References: <8736ugdz40.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1536669708 4531 195.159.176.226 (11 Sep 2018 12:41:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 11 Sep 2018 12:41:48 +0000 (UTC) Cc: emacs-devel@gnu.org To: Robert Pluim Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 11 14:41:44 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fzhzD-00016i-Tr for ged-emacs-devel@m.gmane.org; Tue, 11 Sep 2018 14:41:44 +0200 Original-Received: from localhost ([::1]:57518 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzi1K-0005la-Hg for ged-emacs-devel@m.gmane.org; Tue, 11 Sep 2018 08:43:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58113) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzhxo-0001WV-GG for emacs-devel@gnu.org; Tue, 11 Sep 2018 08:40:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fzhiq-0006UU-Co for emacs-devel@gnu.org; Tue, 11 Sep 2018 08:24:53 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38486) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzhiq-0006UO-8g; Tue, 11 Sep 2018 08:24:48 -0400 Original-Received: from [176.228.60.248] (port=3777 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fzhip-0007CC-R7; Tue, 11 Sep 2018 08:24:48 -0400 In-reply-to: <8736ugdz40.fsf@gmail.com> (message from Robert Pluim on Tue, 11 Sep 2018 13:58:55 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:229673 Archived-At: > From: Robert Pluim > 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).