From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Wiegley Newsgroups: gmane.emacs.devel Subject: Re: Better handling of window margins Date: Sat, 05 Dec 2015 21:02:04 -0800 Message-ID: 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> <83bna4gajl.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1449378158 2911 80.91.229.3 (6 Dec 2015 05:02:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Dec 2015 05:02:38 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 06 06:02:30 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 1a5RSv-0007nM-8l for ged-emacs-devel@m.gmane.org; Sun, 06 Dec 2015 06:02:29 +0100 Original-Received: from localhost ([::1]:48685 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5RSu-0004zO-En for ged-emacs-devel@m.gmane.org; Sun, 06 Dec 2015 00:02:28 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52154) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5RSi-0004zI-7f for emacs-devel@gnu.org; Sun, 06 Dec 2015 00:02:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a5RSh-00076L-6V for emacs-devel@gnu.org; Sun, 06 Dec 2015 00:02:16 -0500 Original-Received: from mail-pf0-x236.google.com ([2607:f8b0:400e:c00::236]:35968) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5RSd-00075m-8J; Sun, 06 Dec 2015 00:02:11 -0500 Original-Received: by pfdd184 with SMTP id d184so47075596pfd.3; Sat, 05 Dec 2015 21:02:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:in-reply-to:date:message-id:references :user-agent:mail-followup-to:mime-version:content-type; bh=SVkALSrjMhdNnhNxDTVrYkrY132LSKtPn/yvhENLOqc=; b=BzTCR63TUhG0gZ+jrSqSf/vGJ4u86nHoQtrhWSFKQKLvIkr5fF+nPbe8uwAuR2DMN1 WvKXd0nzNBoroNdAnXSC+gQrNVZVs6Ovsp5IaIX69eVPZq1gXVU5AieWd/4zPE2AuXiL 5+pKoA24k5nDPTmj8/FDcSsXU7baGGZwmbEV5gpP9xSJxGoJBSHGlnjt2vF+JOc1p9mF GvwQu09EiY7nbar5ivfuqTyyWutKhhJprRWnismIMhlM4Dos0+wb6xcSaDxnzfKTrP4Q XO8+GMR8r91eAara1cutEBZeI+SdfyMYlKKPvKlJXCe2V4Dy87/qf4bUZ54ECyGUcUpo gugw== X-Received: by 10.98.67.76 with SMTP id q73mr33818780pfa.73.1449378130323; Sat, 05 Dec 2015 21:02:10 -0800 (PST) Original-Received: from Vulcan.local (76-234-68-79.lightspeed.frokca.sbcglobal.net. [76.234.68.79]) by smtp.gmail.com with ESMTPSA id r5sm26212280pfi.73.2015.12.05.21.02.08 (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 05 Dec 2015 21:02:08 -0800 (PST) X-Google-Original-From: "John Wiegley" Original-Received: by Vulcan.local (Postfix, from userid 501) id E5E7110D200EB; Sat, 5 Dec 2015 21:02:07 -0800 (PST) In-Reply-To: (Stefan Monnier's message of "Sat, 05 Dec 2015 23:27:05 -0500") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.5 (darwin) Mail-Followup-To: Stefan Monnier , Eli Zaretskii , emacs-devel@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c00::236 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:195929 Archived-At: >>>>> Stefan Monnier writes: >> 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. > Yes, and it's for this problem that I suggest we introduce a new Elisp API > to manage margin display properties (and make the API be line-based). Do we really want to make margins more capable like this, or is there a better way to approach this problem? Margins are just one aspect of a window's overall display. It would be nice to have control over arbitrary regions within the total window area. This could serve to better unify fringes and margins, for example. -- John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2