From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Layered display API Date: Thu, 14 Aug 2014 19:19:32 +0300 Message-ID: <83zjf7gi23.fsf@gnu.org> References: <86tx5r7l1j.fsf@yandex.ru> <53E097F7.5050407@gmx.at> <53E0ABF9.7070506@yandex.ru> <8338dbqcai.fsf@gnu.org> <53E14AF4.6050804@yandex.ru> <83k36mpbxg.fsf@gnu.org> <53E22245.4070307@yandex.ru> <8361i5pmch.fsf@gnu.org> <53E294BD.1000500@yandex.ru> <837g2knwb2.fsf@gnu.org> <53E818F0.2080104@yandex.ru> <8361hzjciv.fsf@gnu.org> <87egwj9659.fsf@dreamsphere.org> <837g2biy4x.fsf@gnu.org> <87vbpv9hqj.fsf@dreamsphere.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1408033192 24829 80.91.229.3 (14 Aug 2014 16:19:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Aug 2014 16:19:52 +0000 (UTC) Cc: rudalics@gmx.at, dgutov@yandex.ru, emacs-devel@gnu.org To: Bo Lin Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 14 18:19:44 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XHxke-000252-A6 for ged-emacs-devel@m.gmane.org; Thu, 14 Aug 2014 18:19:44 +0200 Original-Received: from localhost ([::1]:54972 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XHxkd-00039E-Sg for ged-emacs-devel@m.gmane.org; Thu, 14 Aug 2014 12:19:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60049) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XHxkW-00038V-TF for emacs-devel@gnu.org; Thu, 14 Aug 2014 12:19:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XHxkS-0005aT-5A for emacs-devel@gnu.org; Thu, 14 Aug 2014 12:19:36 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:46533) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XHxkR-0005a9-SZ for emacs-devel@gnu.org; Thu, 14 Aug 2014 12:19:32 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0NAB00H00110UA00@a-mtaout21.012.net.il> for emacs-devel@gnu.org; Thu, 14 Aug 2014 19:19:30 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NAB00HXN1CHSO60@a-mtaout21.012.net.il>; Thu, 14 Aug 2014 19:19:30 +0300 (IDT) In-reply-to: <87vbpv9hqj.fsf@dreamsphere.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:173669 Archived-At: > From: Bo Lin > Cc: rudalics@gmx.at, emacs-devel@gnu.org, dgutov@yandex.ru > Date: Thu, 14 Aug 2014 12:08:20 -0400 > > Eli Zaretskii writes: > > >> >> > What I meant is this: if you need to display below the last line of > >> >> > the buffer text, put the overlay at EOB, and include newlines in the > >> >> > overlay string when you need to move to the next screen line. To > >> >> > align text horizontally you could use spaces or align-to display > >> >> > properties in the string. > >> >> > >> >> Yes, I might try this, as soon as there's some suggestion how to handle > >> >> the problem of `line-prefix' in this multi-overlay approach. > >> > > >> > Find the longest prefix and align everything so that the left edge > >> > keeps clear of that? > >> > >> Zero length overlays don't get displayed so this won't work when the > >> buffer is empty. > > > > When a buffer is empty, there are no line prefixes, right? Or did I > > misunderstand what you eman? > > I thought this was about avoid padding the buffer text with > newlines? Sorry, it wasn't clear, as the previous citations talked about both. So turning to the padding the buffer: it's not about padding with newlines, it's about including newlines in overlay string. After the newline, the overlay string would have the text to be displayed beyond the EOB.