all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: How to scroll images in Emacs?
Date: Thu, 20 Feb 2014 18:25:25 +0200	[thread overview]
Message-ID: <8361o969ai.fsf@gnu.org> (raw)
In-Reply-To: <8761oah0uf.fsf@moondust.localdomain>

> From: nljlistbox2@gmail.com (N. Jackson)
> Date: Thu, 20 Feb 2014 00:20:08 -0400
> 
> 1. The top left of image image is displayed. Scrolling with arrow keys
> works properly and smoothly left/right up/down. But scroll bars don't
> work. Vertical scroll bar jumps back to top whenever it's pulled
> down.

Vertical scroll bars work for me, if I click on the arrows at the
edges of the bar.  The thumb size does not reflect the displayed
portion of the image, but that's at best a missing feature (Emacs sets
the size of the thumb by counting buffer text, not pixels).  If you
see something else, it could be a GTK problem.

> Horizontal scroll bar is missing entirely from window.

Emacs doesn't support horizontal scroll bars, never did.

> 4. The menu option "Fit Frame to Image" does not work properly. The
> frame increases in size to _almost_ fill the display, but there is a gap
> of a few pixels along the left side and along the bottom, and the top of
> the window is about one title-bar-width below the top of the
> display.

Again, doesn't happen to me.  Suggest to report a bug with the
relevant data.

> When the cursor gets to the line above the screenshot, the image starts
> scrolling smoothly upwards with each press of the arrow key, but the
> cursor itself stays on the line above the image which seems wrong.

That's how Emacs is supposed to behave, so no bug here.

> If the cursor is on a line and I press the down arrow key, I expect
> the cursor to now be on whatever is below that line.

If you want that, turn off line-move-visual (but then you'd lose
smooth scrolling of images, I think).  By default, line scrolling
scrolls by pixels in this situation, which leaves the cursor on the
same line, as long as the cursor is even partially visible.

> At some point (possibly when the image has risen high enough to clear
> the bottom edge of the window) the cursor jumps to the right edge of the
> image (at least I can see a line flashing there as if it were the
> cursor). When this shift happens there is a sudden (small) jump in the
> image that is not at all smooth.

That's because Emacs must leave point visible on the screen at all
times.  Again, this is the intended behavior.

> One more down arrow press moves the cursor to the line below the
> image. This seems correct, and the cursor continues to descend the
> page. But then the page suddenly scrolls, making the image suddenly
> disappear, rather than smoothly scrolling up out of sight.

Again, expected behavior.

> If I now scroll back up the page by pressing the up arrow key, one press
> at a time, at no point does the image scroll smoothly -- it just jerks
> downwards in two big jumps.

Not here, at least not with images I tried.

> B.2. No horizontal scrolling:
> 
> I maximise the frame (logo key and up arrow), then reload the page. The
> image is now much larger. I now restore the page (loge key and down
> arrow). I now have only the left edge of the image in the window, which
> is fine. The problem is there is no horizontal scroll bar, and the image
> won't scroll with the arrow keys.

What are the arrow keys bound to?  If they are not bound to horizontal
scroll commands, like image-mode does, you won't see any horizontal
scrolling.

> The top left of the image is displayed. Scrolling down the email with
> the down arrow key, the image scrolls smoothly until just after the
> bottom edge appears at the bottom of the window, then it jumps
> completely up out of view.

Expected.

> Scrolling back up again, when the image first appears, it does so in a
> jerky motion in which the bottom maybe 1/4 of the image all appears at
> once, then, on most attempts it scrolls smoothly upwards. However, a few
> times it  "glitches" and the image, after scrolling fine for a bit,
> suddenly jumps back to the position at which it first appeared when
> scrolling up, with the bottom maybe 1/4 of the image
> showing in the window.

Doesn't happen here.

> There is no horizontal scroll bar, and the cursor keys don't seem to
> scroll the image horizontally.

See above.



      parent reply	other threads:[~2014-02-20 16:25 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-16 22:49 How to scroll images in Emacs? N. Jackson
2014-02-17  5:04 ` Eli Zaretskii
     [not found] ` <mailman.15284.1392613467.10748.help-gnu-emacs@gnu.org>
2014-02-18 14:39   ` henry atting
2014-02-18 16:11     ` Michael Heerdegen
2014-02-18 16:28     ` Eli Zaretskii
2014-02-19 17:35     ` Eli Zaretskii
2014-02-20  4:20   ` N. Jackson
2014-02-20 13:10     ` Michael Heerdegen
2014-02-20 16:25     ` Eli Zaretskii [this message]

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=8361o969ai.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@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.