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: Better handling of window margins Date: Sat, 05 Dec 2015 17:49:50 +0200 Message-ID: <83bna4gajl.fsf@gnu.org> References: <87mvttsvsj.fsf@fastmail.fm> <83k2oxj7d6.fsf@gnu.org> <565F2DD3.9020400@gmx.at> <838u5cka88.fsf@gnu.org> <565F3441.1020707@gmx.at> <83610gjabz.fsf@gnu.org> <566086FA.6010603@gmx.at> <83h9jzi99p.fsf@gnu.org> <83d1umiq9u.fsf@gnu.org> <83lh9agtke.fsf@gnu.org> <834mfygihw.fsf@gnu.org> <83vb8dgbo6.fsf@gnu.org> <83si3hfhvy.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1449330621 12389 80.91.229.3 (5 Dec 2015 15:50:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Dec 2015 15:50:21 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 05 16:50:12 2015 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 1a5F6B-0005Io-A1 for ged-emacs-devel@m.gmane.org; Sat, 05 Dec 2015 16:50:11 +0100 Original-Received: from localhost ([::1]:46901 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5F6A-000711-Ks for ged-emacs-devel@m.gmane.org; Sat, 05 Dec 2015 10:50:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51107) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5F67-0006zl-3y for emacs-devel@gnu.org; Sat, 05 Dec 2015 10:50:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a5F62-0006qA-1i for emacs-devel@gnu.org; Sat, 05 Dec 2015 10:50:07 -0500 Original-Received: from mtaout24.012.net.il ([80.179.55.180]:33454) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5F61-0006pZ-RD for emacs-devel@gnu.org; Sat, 05 Dec 2015 10:50:02 -0500 Original-Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0NYW000005YKAC00@mtaout24.012.net.il> for emacs-devel@gnu.org; Sat, 05 Dec 2015 17:42:48 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NYW00JI16BC6180@mtaout24.012.net.il>; Sat, 05 Dec 2015 17:42:48 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.180 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:195923 Archived-At: > From: Stefan Monnier > Cc: emacs-devel@gnu.org > Date: Sat, 05 Dec 2015 10:17:42 -0500 > > >> I'm not sure whether we can handle well all possible cases, indeed. > >> But if we design an API where the elements are always associated with > >> lines rather than with precise buffer positions, it should > >> be manageable. Maybe this API will be inconvenient for some use cases, > >> of course. > > Once again, my proposal handles this for all cases. > > AFAIK your proposal is unrelated because it only affects the size of the > display margin, whereas part of the issue is to control ordering of > mergin elements on specific lines. Indeed, control of the ordering was not on the table, AFAIU. If we want to be able to control the order, we will have to completely redesign how display in the margins works, because currently this is completely determined by the order we traverse the buffer text during redisplay, i.e. the 'margin' display property that is on buffer position displayed more to the left will be displayed before the one to its right.