all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: Anders Lindgren <andlind@gmail.com>
Cc: 23347@debbugs.gnu.org
Subject: bug#23347: 25.0.92; Follow mode scrolling broken -- scrolls only one page
Date: Sun, 24 Apr 2016 14:23:13 +0000	[thread overview]
Message-ID: <20160424142313.GB3517@acm.fritz.box> (raw)
In-Reply-To: <CABr8ebbGaN+vL2U5yfnfsongNt8H8orDSt58jw8Kj+A=DKo0GQ@mail.gmail.com>

Hello, Anders.

On Sun, Apr 24, 2016 at 02:36:27PM +0200, Anders Lindgren wrote:
> Hi!

> The normal `scroll-up-command' and `scroll-down-command' (typically bound
> to C-v and M-v) can scroll a page at a time, there is no need for a Follow
> mode-specific command for that, as the normal Follow mode machinery can
> reposition the other windows. (The only difference is that when using C-v
> the original window is still selected, whereas with the new
> follow-scroll-up command the windows where the original point ends up is
> selected.)

Indeed.  This is a difference important enough to have a command in
follow.el which keeps point at the same buffer position it started with.

> > I admit it didn't occur to me that there might be use cases other
> > than my own.  What I think we need here is a customisable option.
> > How about `follow-scroll-single-page-flag'?  The cleanest default
> > for it would probably be nil, since that better observes the
> > abstraction that the collection of all visible windows should be
> > regarded as a single page.


> A cleaner solution would be to define two sets of functions, e.g.
> follow-scroll-up-one-page.

OK.  I'm happy enought with that.

I'm not sure that's a good name, though - the "page" bit could easily
get confused with the region in a buffer between two ^L characters.

Maybe follow-scroll-up-window would be better.  What do you think?

> Many users might want to use both kind of scrolling (I use both C-v
> and C-c . C-v several time every day, depending on how I would like to
> scroll the display). With two sets of functions it's easier to do
> this. (Also, it's easier to write documentation for a function
> designed to do one thing.)

For me, C-c . C-v is too tedious to type, so I've just bound <PageUp>
and <PageDown> to `follow-scroll-down/up'.  I use them many times per
day.

Another possibility would be to use a C-u prefix argument to indicate N
windows as opposed to 1.  No, I don't think that's a good idea, either.

Anyway, here is what I think we can agree on:
1. `follow-scroll-up/down' should scroll by N windows.
2. There need to be commands in follow.el that scroll by 1 window as is
  done by the current `follow-scroll-up/down'.  You have suggested the
  name `follow-scroll-up/down-one-page'.  I have countered with
  `follow-scroll-up/down-window'.

If we can agree, I'm willing to amend follow.el.  I think it's probably
too late for this fix to make it into Emacs 25.1, though.

>     -- Anders

-- 
Alan Mackenzie (Nuremberg, Germany).





  reply	other threads:[~2016-04-24 14:23 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-23 17:25 bug#23347: 25.0.92; Follow mode scrolling broken -- scrolls only one page Anders Lindgren
     [not found] ` <mailman.843.1461432366.7477.bug-gnu-emacs@gnu.org>
2016-04-24  9:00   ` Alan Mackenzie
2016-04-24 12:36     ` Anders Lindgren
2016-04-24 14:23       ` Alan Mackenzie [this message]
2016-04-24 15:37         ` Anders Lindgren
2016-04-26 11:51           ` Alan Mackenzie
2016-04-26 13:08             ` Anders Lindgren
2016-04-29 15:02       ` Alan Mackenzie

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=20160424142313.GB3517@acm.fritz.box \
    --to=acm@muc.de \
    --cc=23347@debbugs.gnu.org \
    --cc=andlind@gmail.com \
    /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.