all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Anders Lindgren <andlind@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Alan Mackenzie <acm@muc.de>, emacs-devel <emacs-devel@gnu.org>
Subject: Re: The future of Follow Mode - a proposal.
Date: Fri, 19 Feb 2016 15:56:22 +0100	[thread overview]
Message-ID: <CABr8ebbiF92KqNr+CioC-Ax_8mJcDBxNzm_TqVCKO8BwszwbxQ@mail.gmail.com> (raw)
In-Reply-To: <837fi1u5qt.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1616 bytes --]

>
> IMO, moving the code to C will solve only the marginal aspects of
> this.  The main problem -- the fact that the current display engine
> doesn't support windows of unequal width -- cannot be solved without
> deep changes.  We need to at least design these changes first, so that
> we have a clear idea how to solve these issues.  FWIW, I thought about
> this for a while, and didn't see any easy way of doing it.
>
> If we abandon the design goal of supporting windows of unequal width,
> the problem becomes much easier.


Windows of unequal width is something that we need to live with, at least
if follow-mode is something that a user can enable without affecting the
layout of a frame, like today.

Anyway, wouldn't it be possible for the display engine to do the layout of
the leftmost window (of a follow mode window group) using the normal system
for finding a suitable start location on even line boundaries. The rest of
the windows in the window group could then use the end position of the
previous window.

In fact, I think it could be supported today from lisp if only it was
possible to disable the part of the display engine that ensures that the
window start position is an even multiple of the window width, on a
window-by-window basis. In the case of follow-mode, the leftmost window
should keep it enabled, whereas the rest should disable this feature.

(The only thing that wouldn't work is if a multi-width character (like
control-l "^L") is partially visible. It will continue to work like today,
with "^" visible at the end of one window and "^L" at the start of the
next.)

    -- Anders

[-- Attachment #2: Type: text/html, Size: 2021 bytes --]

  parent reply	other threads:[~2016-02-19 14:56 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-18 19:56 The future of Follow Mode - a proposal Alan Mackenzie
2016-02-18 20:24 ` Eli Zaretskii
2016-02-19 14:25   ` Alan Mackenzie
2016-02-19 14:34     ` martin rudalics
2016-02-19 16:12       ` Eli Zaretskii
2016-02-19 16:08     ` Eli Zaretskii
2016-02-19 18:18       ` Alan Mackenzie
2016-02-19 18:45         ` Eli Zaretskii
2016-02-20 12:44           ` Alan Mackenzie
2016-02-20 13:05             ` Eli Zaretskii
2016-02-23 23:11               ` Alan Mackenzie
2016-02-24  3:57                 ` Stefan Monnier
2016-02-24 17:14                   ` Eli Zaretskii
2016-02-24 18:57                     ` Stefan Monnier
2016-02-24 19:19                       ` Eli Zaretskii
2016-02-24 20:10                         ` Stefan Monnier
2016-02-24 20:21                           ` Eli Zaretskii
2016-02-25  0:30                             ` Stefan Monnier
2016-02-25 16:28                               ` Eli Zaretskii
2016-02-25 16:46                                 ` Stefan Monnier
2016-02-25 17:29                                   ` Eli Zaretskii
2016-02-25 20:30                                 ` Alan Mackenzie
2016-02-25 20:57                       ` Alan Mackenzie
2016-02-25 21:10                         ` Stefan Monnier
2016-02-25 22:17                           ` Alan Mackenzie
2016-02-28 16:40                             ` Stefan Monnier
2016-02-24 18:34                 ` Eli Zaretskii
2016-02-25 20:18                   ` Alan Mackenzie
2016-02-19 14:56   ` Anders Lindgren [this message]
2016-02-19 16:30     ` Eli Zaretskii
2016-02-19 18:45       ` Alan Mackenzie
2016-02-18 20:41 ` John Yates
2016-02-19 16:21   ` Alan Mackenzie
2016-02-19 16:32     ` Eli Zaretskii
2016-02-19 19:25     ` John Yates
2016-02-19 20:27       ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CABr8ebbiF92KqNr+CioC-Ax_8mJcDBxNzm_TqVCKO8BwszwbxQ@mail.gmail.com \
    --to=andlind@gmail.com \
    --cc=acm@muc.de \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.