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: The future of Follow Mode - a proposal. Date: Thu, 25 Feb 2016 11:46:58 -0500 Message-ID: References: <20160218195630.GA2697@acm.fritz.box> <837fi1u5qt.fsf@gnu.org> <20160219142522.GA3193@acm.fritz.box> <83povsr8cc.fsf@gnu.org> <20160219181834.GC3193@acm.fritz.box> <83io1kr12k.fsf@gnu.org> <20160220124415.GA1758@acm.fritz.box> <83wppzo7lf.fsf@gnu.org> <20160223231156.GA26899@acm.fritz.box> <83a8mqhvym.fsf@gnu.org> <837fhthq5z.fsf@gnu.org> <834mcxhnaq.fsf@gnu.org> <83lh68g3fh.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1456418925 19713 80.91.229.3 (25 Feb 2016 16:48:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Feb 2016 16:48:45 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 25 17:48:36 2016 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 1aYz5Y-0002Iw-Mt for ged-emacs-devel@m.gmane.org; Thu, 25 Feb 2016 17:48:28 +0100 Original-Received: from localhost ([::1]:44461 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYz5Y-00081q-65 for ged-emacs-devel@m.gmane.org; Thu, 25 Feb 2016 11:48:28 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38911) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYz4F-00062q-5F for emacs-devel@gnu.org; Thu, 25 Feb 2016 11:47:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYz4E-0002vS-Lk for emacs-devel@gnu.org; Thu, 25 Feb 2016 11:47:07 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:44495) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYz47-0002rV-TJ; Thu, 25 Feb 2016 11:46:59 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0A+FgA731xV/+OhCkxcgxCEAoVVwwsEAgKBPD0QAQEBAQEBAYEKQQWDXQEBAwFWIwULCzQSFBgNJIg3CM8jAQEBBwEBAQEeizqFBQeELQWMMKcPgUUjgWaCMCCCeAEBAQ X-IPAS-Result: A0A+FgA731xV/+OhCkxcgxCEAoVVwwsEAgKBPD0QAQEBAQEBAYEKQQWDXQEBAwFWIwULCzQSFBgNJIg3CM8jAQEBBwEBAQEeizqFBQeELQWMMKcPgUUjgWaCMCCCeAEBAQ X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="194372747" Original-Received: from 76-10-161-227.dsl.teksavvy.com (HELO pastel.home) ([76.10.161.227]) by ironport2-out.teksavvy.com with ESMTP; 25 Feb 2016 11:46:58 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 6922063F8B; Thu, 25 Feb 2016 11:46:58 -0500 (EST) In-Reply-To: <83lh68g3fh.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 25 Feb 2016 18:28:18 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:200666 Archived-At: > Actually, vertical-motion completely breaks in that case. I don't > even see a way that will allow to solve that situation in principle, > except in some very specific and restricted use cases. Exactly. E.g. the behavior of vertical-motion could be "made to work" in the case where the motion is within the existing glyph matrices of the relevant windows, tho even in that case there could be several possible desirable behaviors depending on the intention behind the use of vertical-motion. > Which is why I strongly suggest to change Follow Mode so that it > forces all of its windows be of the same width. And in that case my Elisp hook approach should be usable (assuming it's implementable ;-). > With the current pixelwise control of window dimensions, this is easy. Not sure about "easy" but yes. > I think this will magically remove many of the problems that currently > plague Follow Mode, and leave us with something we can reasonably easy > to solve and maintain. Sounds fine (and doable in Elisp). > However, Alan disagrees, and insists on supporting windows of unequal > width. I think it might makes sense to allow the user to disable the "make all follow-mode windows same-width" and just live with the corresponding quirks, but I suspect that the amount of work needed to make follow-mode work "100% correctly" for the mixed-width case is really large (it will involve defining new primitives to replace vertical-motion, then changing all users accordingly). What's the expected use-case that would justify such an effort? Stefan