all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Yuan Fu <casouri@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Scrolling over images/tall lines
Date: Tue, 03 Nov 2020 17:14:48 +0200	[thread overview]
Message-ID: <83h7q6cw0n.fsf@gnu.org> (raw)
In-Reply-To: <043AA439-A3AA-4736-8A76-1A8B8344819A@gmail.com> (message from Yuan Fu on Mon, 2 Nov 2020 16:48:59 -0500)

> From: Yuan Fu <casouri@gmail.com>
> Date: Mon, 2 Nov 2020 16:48:59 -0500
> 
> P.S. The case where I have to set window-start and window-vscroll in the same time is this: consider this window:
> 
>  (1)--------------------+
>  |                      |
>  |        image         |
>  |                      |
>  |                      |
>  |                      |
>  +----------------------+
> +------window top--------------+
> |==========line==========      |
> |==========line==========      |
> |==========line==========      |
> 
> If I now scroll up one line, I want to see this:
> 
>  (1)--------------------+
>  |                      |
>  |        image         |
>  |                      |
>  |                      |
> +------window top--------------+
> ||                      |      |
> |+----------------------+      |
> |==========line==========      |
> |==========line==========      |
> |==========line==========      |
> 
> Which requires setting window-start to (1) and setting vscroll to image-height - default-line-height.

Why can't you achieve the same by leaving window-start at its original
place (2) and setting vscroll to get the display you want, like this:

 +----------------------+
 |                      |
 |        image         |
 |                      |
 |                      |
+------window top--------------+--
||                      |      | ^
|+----------------------+      | | vscroll (negative)
|(2)=======line==========      | v
|==========line==========      |
|==========line==========      |

Did you try this method?



       reply	other threads:[~2020-11-03 15:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <043AA439-A3AA-4736-8A76-1A8B8344819A@gmail.com>
2020-11-03 15:14 ` Eli Zaretskii [this message]
2020-11-03 18:06   ` Scrolling over images/tall lines Yuan Fu
2020-11-03 18:09     ` Eli Zaretskii
2020-11-03 18:46       ` Eli Zaretskii
2021-01-05 19:54         ` Yuan Fu
2021-01-05 20:06           ` 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=83h7q6cw0n.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=casouri@gmail.com \
    --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.