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:37:46 +0300 Message-ID: <83o9d4mcpx.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 1536669520 23991 195.159.176.226 (11 Sep 2018 12:38:40 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 11 Sep 2018 12:38:40 +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:38:36 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 1fzhwB-00068o-Eu for ged-emacs-devel@m.gmane.org; Tue, 11 Sep 2018 14:38:35 +0200 Original-Received: from localhost ([::1]:57461 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzhyH-0000lW-84 for ged-emacs-devel@m.gmane.org; Tue, 11 Sep 2018 08:40:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57278) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzhwl-0000iN-Jf for emacs-devel@gnu.org; Tue, 11 Sep 2018 08:39:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fzhvG-0006y5-RF for emacs-devel@gnu.org; Tue, 11 Sep 2018 08:37:45 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38659) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzhvE-0006wf-KN; Tue, 11 Sep 2018 08:37:36 -0400 Original-Received: from [176.228.60.248] (port=4567 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fzhvE-0006UL-7X; Tue, 11 Sep 2018 08:37:36 -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:229671 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 Actually, I'm not sure this will work at all, because Emacs needs a place to put the cursor at EOL. So it cannot put a character there, because without a fringe, there's no place to display the cursor. I think you will have a much better approximation of what you want if you keep the fringe, but make it 1-pixel wide.