unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Yuri D'Elia <wavexx@thregr.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Ergonomics: mouse clicking with scroll-margin
Date: Sun, 14 Jun 2020 19:58:56 +0200	[thread overview]
Message-ID: <87imftsf4v.fsf@wavexx.thregr.org> (raw)
In-Reply-To: <83ftax35ja.fsf@gnu.org>

On Sun, Jun 14 2020, Eli Zaretskii wrote:
>> Can this be improved _without_ disabling scroll-margin?
>
> Can you propose a more useful behavior in that case?

Another solution would be to move the pointer along with the scrolling
buffer (as done occasionally in cad software when moving the viewport),
so that the pointer doesn't move from the POV of the buffer.

Kind of odd for an editor though.

> If you are saying that Emacs should put point inside the scroll-margin
> and leave it there in this case, then I don't recommend such a
> solution: any subsequent command will scroll the window anyway,
> because Emacs is programmed to keep point outside of the scroll
> margin.

Would that happen for _any_ command or just for commands that already
move the point?

If that happens only with a command that already moves the point up or
down, such as next-line, I'd actually say that's OK and I would find
that expected.

It's definitely an edge scenario, but less unorthodox than moving the
pointer IMHO.

> We need to come up with a more clever approach.

Fully open to any idea here.
This is just the first thing that came to mind.



  reply	other threads:[~2020-06-14 17:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-14 17:09 Ergonomics: mouse clicking with scroll-margin Yuri D'Elia
2020-06-14 17:45 ` Eli Zaretskii
2020-06-14 17:58   ` Yuri D'Elia [this message]
2020-06-14 19:02     ` Eli Zaretskii
2020-06-14 18:47 ` Stefan Monnier
2020-07-01 12:34   ` Yuri D'Elia

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87imftsf4v.fsf@wavexx.thregr.org \
    --to=wavexx@thregr.org \
    --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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).