From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Better handling of window margins Date: Thu, 03 Dec 2015 15:43:34 -0500 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1449175466 11695 80.91.229.3 (3 Dec 2015 20:44:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Dec 2015 20:44:26 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 03 21:44:17 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 1a4ajX-0006qS-Hc for ged-emacs-devel@m.gmane.org; Thu, 03 Dec 2015 21:44:07 +0100 Original-Received: from localhost ([::1]:37347 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4ajW-0003PM-Ka for ged-emacs-devel@m.gmane.org; Thu, 03 Dec 2015 15:44:06 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59608) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4ajJ-0003PF-5N for emacs-devel@gnu.org; Thu, 03 Dec 2015 15:43:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a4ajF-00064f-Vs for emacs-devel@gnu.org; Thu, 03 Dec 2015 15:43:53 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:47601) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4ajF-00063r-PS for emacs-devel@gnu.org; Thu, 03 Dec 2015 15:43:49 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1a4aj8-0006DB-V8 for emacs-devel@gnu.org; Thu, 03 Dec 2015 21:43:43 +0100 Original-Received: from modemcable022.171-203-24.mc.videotron.ca ([24.203.171.22]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 03 Dec 2015 21:43:42 +0100 Original-Received: from monnier by modemcable022.171-203-24.mc.videotron.ca with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 03 Dec 2015 21:43:42 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 22 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: modemcable022.171-203-24.mc.videotron.ca User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:C+NoH8Bs5L8tZdupwdn+FBtJ+EU= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:195831 Archived-At: > My suggestion wasn't supposed to do anything about post-command-hook. > It aimed only at allowing separate features display in the margins > without interfering with one another. WRT to sizing the margin, I think if we want to "do it right" it'd make sense to provide an Elisp-layer that defines two functions which could look like: (window-margin-register OWNER SIZING-DESCRIPTOR) and (window-margin-unregister OWNER) so those two functions can appropriately combine the SIZING-DESCRIPTORS still active. Not sure what SIZING-DESCRIPTOR should look like (it could be a function which takes a size and returns a new size). Stefan