From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bo Lin Newsgroups: gmane.emacs.devel Subject: Re: Layered display API Date: Thu, 14 Aug 2014 12:42:51 -0400 Message-ID: <87r40j9g50.fsf@dreamsphere.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> <83zjf7gi23.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1408050290 20918 80.91.229.3 (14 Aug 2014 21:04:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Aug 2014 21:04:50 +0000 (UTC) Cc: rudalics@gmx.at, emacs-devel@gnu.org, dgutov@yandex.ru To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 14 23:04:42 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 1XI2CM-0007IW-H6 for ged-emacs-devel@m.gmane.org; Thu, 14 Aug 2014 23:04:38 +0200 Original-Received: from localhost ([::1]:56423 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XI2CM-0001Y4-3c for ged-emacs-devel@m.gmane.org; Thu, 14 Aug 2014 17:04:38 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36605) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XHy7B-0000fm-PJ for emacs-devel@gnu.org; Thu, 14 Aug 2014 12:43:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XHy76-0005Ej-ND for emacs-devel@gnu.org; Thu, 14 Aug 2014 12:43:01 -0400 Original-Received: from mail-qg0-f46.google.com ([209.85.192.46]:48991) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XHy76-0005Ed-If for emacs-devel@gnu.org; Thu, 14 Aug 2014 12:42:56 -0400 Original-Received: by mail-qg0-f46.google.com with SMTP id z60so1240668qgd.5 for ; Thu, 14 Aug 2014 09:42:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=M0nMOoZaJkvjzp3S1XwKkGegKeUb3kz73djUqOqD9gI=; b=CDspHAk09qU+b92pEytd2Xn3ryQDm0zAaJN50UCPrtBK3HnGM+KUf1Q0+89n7ZD5LM ywHO6LHx76aMQXCZXHIee8Ent2kGs3f8fajY/ROHpFH68r7R9wyJ+skQ7RfCInehtusY OWrftL8kbJkT4ohWdRooF9Pizbmn3HKwzbXmxGaEbDh+iBAOccGZychneEOHRJyZy4Mm 1FSyn0BLOEjzSACTcZ3+slUThdcNQj4NS8ZDjadm+5mWelyyVmGGOScJRhRoIZWb5bj+ /7glZpFcdPbbYA4yO7q/oxq+Et4UyPem/j1qsKQZ0lrNv2H2Vapo+NJgeNW/oezJBLeF W3qQ== X-Gm-Message-State: ALoCoQlxiWGrfRa9fQL1AVVqQeHICs0/Q69OT5MFDTN+cLyKVPK12cOyEtz3lESxDEIHL6FGXjFl X-Received: by 10.140.104.138 with SMTP id a10mr17815948qgf.19.1408034575504; Thu, 14 Aug 2014 09:42:55 -0700 (PDT) Original-Received: from mail (pool-108-21-224-74.nycmny.fios.verizon.net. [108.21.224.74]) by mx.google.com with ESMTPSA id b16sm9421016qaj.48.2014.08.14.09.42.54 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 14 Aug 2014 09:42:55 -0700 (PDT) Original-Received: from unicorn (sb130245065155.cs.sunysb.edu [130.245.65.155]) by mail (Postfix) with ESMTPSA id C042020146; Thu, 14 Aug 2014 12:42:52 -0400 (EDT) In-Reply-To: <83zjf7gi23.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 14 Aug 2014 19:19:32 +0300") User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.192.46 X-Mailman-Approved-At: Thu, 14 Aug 2014 17:03:48 -0400 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:173676 Archived-At: Eli Zaretskii writes: >> 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. Ah, I just realized the 'before/after-string properties does get displayed even on zero length overlays. So yeah, this does work, sorry for noise. -Bo