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 20:09:35 +0200	[thread overview]
Message-ID: <83361qcnxc.fsf@gnu.org> (raw)
In-Reply-To: <23A4C03D-ABAC-4087-B286-FC576C60ECAD@gmail.com> (message from Yuan Fu on Tue, 3 Nov 2020 13:06:49 -0500)

> From: Yuan Fu <casouri@gmail.com>
> Date: Tue, 3 Nov 2020 13:06:49 -0500
> Cc: emacs-devel@gnu.org
> 
> > 
> > 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?
> 
> I did, but (set-window-vscroll nil -20 t) returned 0 and didn’t have any effect, so I thought that’s not a valid thing to do.

Can you show a simple example of code where it doesn't work?  I'll
have a look; AFAICT it should work.

> And that feels worse than setting window-start and vscroll in the same time too, because with a negative vscroll you don’t even know where to start the glyph matrix.

??? Of course we know where to start the glyph matrix.  And Lisp
programs shouldn't be bothered by that anyway.



  reply	other threads:[~2020-11-03 18:09 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 ` Scrolling over images/tall lines Eli Zaretskii
2020-11-03 18:06   ` Yuan Fu
2020-11-03 18:09     ` Eli Zaretskii [this message]
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=83361qcnxc.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.