* How to scroll images in Emacs?
@ 2014-02-16 22:49 N. Jackson
2014-02-17 5:04 ` Eli Zaretskii
[not found] ` <mailman.15284.1392613467.10748.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 9+ messages in thread
From: N. Jackson @ 2014-02-16 22:49 UTC (permalink / raw)
To: help-gnu-emacs
I'm not used to having images in Emacs, and I'm having difficulty
understanding their scrolling behaviour.
I can't seem to scroll them horizontally at all, and when I scroll them
vertically, as soon as the top edge of the image hits the top of the
window, the whole image jumps up completely out of view. This makes it
very hard to veiw the bottom portion of an image, although sometimes I
can sneak up on it from below. Often, however, the window then scrolls
back up to the top of the image.
I have scroll-conservatively set to 0. I tried it at 1 and at 101 but
that either didn't seem to help, or made matters worse.
What am I doing wrong?
Thanks.
N.
Using GNU Emacs 24.3.50 of 2014-02-10.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to scroll images in Emacs?
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>
1 sibling, 0 replies; 9+ messages in thread
From: Eli Zaretskii @ 2014-02-17 5:04 UTC (permalink / raw)
To: help-gnu-emacs
> From: nljlistbox2@gmail.com (N. Jackson)
> Date: Sun, 16 Feb 2014 18:49:58 -0400
>
> I'm not used to having images in Emacs, and I'm having difficulty
> understanding their scrolling behaviour.
>
> I can't seem to scroll them horizontally at all, and when I scroll them
> vertically, as soon as the top edge of the image hits the top of the
> window, the whole image jumps up completely out of view. This makes it
> very hard to veiw the bottom portion of an image, although sometimes I
> can sneak up on it from below. Often, however, the window then scrolls
> back up to the top of the image.
> [...]
> Using GNU Emacs 24.3.50 of 2014-02-10.
These problems shouldn't exist in the development version. With
yesterday's trunk, I can scroll images both horizontally and
vertically, using just the arrow keys, and there are no jumps that you
describe.
If it doesn't work for you in "emacs -Q", please submit a bug report
using "M-x report-emacs-bug RET", starting with "emacs -Q", and
include the image that gives you this trouble.
Thanks.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to scroll images in Emacs?
[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
` (2 more replies)
2014-02-20 4:20 ` N. Jackson
1 sibling, 3 replies; 9+ messages in thread
From: henry atting @ 2014-02-18 14:39 UTC (permalink / raw)
To: help-gnu-emacs
>> From: nljlistbox2@gmail.com (N. Jackson)
>> Date: Sun, 16 Feb 2014 18:49:58 -0400
>>
>> I'm not used to having images in Emacs, and I'm having difficulty
>> understanding their scrolling behaviour.
>>
>> I can't seem to scroll them horizontally at all, and when I scroll them
>> vertically, as soon as the top edge of the image hits the top of the
>> window, the whole image jumps up completely out of view. This makes it
>> very hard to veiw the bottom portion of an image, although sometimes I
>> can sneak up on it from below. Often, however, the window then scrolls
>> back up to the top of the image.
>> [...]
>> Using GNU Emacs 24.3.50 of 2014-02-10.
>
> These problems shouldn't exist in the development version. With
> yesterday's trunk, I can scroll images both horizontally and
> vertically, using just the arrow keys, and there are no jumps that you
> describe.
Here (24.3.50) the same problem exists. I did know it for a long time
and always thought that's just the way emacs displays images. Now that I
learned that this is not the intended behaviour I searched a little and
found out that disabling fringes is the cause:
(fringe-mode 0 nil (fringe))
Without this setting I can scroll both ways flawlessly.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to scroll images in Emacs?
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
2 siblings, 0 replies; 9+ messages in thread
From: Michael Heerdegen @ 2014-02-18 16:11 UTC (permalink / raw)
To: help-gnu-emacs
henry atting <snd@online.de> writes:
> (fringe-mode 0 nil (fringe))
Indeed, that makes a difference also for me. Please make a bug report.
Michael.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to scroll images in Emacs?
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
2 siblings, 0 replies; 9+ messages in thread
From: Eli Zaretskii @ 2014-02-18 16:28 UTC (permalink / raw)
To: help-gnu-emacs
> From: henry atting <snd@online.de>
> Date: Tue, 18 Feb 2014 15:39:02 +0100
>
> Here (24.3.50) the same problem exists. I did know it for a long time
> and always thought that's just the way emacs displays images. Now that I
> learned that this is not the intended behaviour I searched a little and
> found out that disabling fringes is the cause:
>
> (fringe-mode 0 nil (fringe))
>
> Without this setting I can scroll both ways flawlessly.
But only horizontal scrolling is affected by fringes, right? Because
vertical scrolling still works for me even without the fringes.
the OP complained about vertical scrolling as well.
Anyway, I suggest to file a bug report about this.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to scroll images in Emacs?
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
2 siblings, 0 replies; 9+ messages in thread
From: Eli Zaretskii @ 2014-02-19 17:35 UTC (permalink / raw)
To: help-gnu-emacs
> From: henry atting <snd@online.de>
> Date: Tue, 18 Feb 2014 15:39:02 +0100
>
> Here (24.3.50) the same problem exists. I did know it for a long time
> and always thought that's just the way emacs displays images. Now that I
> learned that this is not the intended behaviour I searched a little and
> found out that disabling fringes is the cause:
>
> (fringe-mode 0 nil (fringe))
>
> Without this setting I can scroll both ways flawlessly.
Fixed in the development sources.
Thanks.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to scroll images in Emacs?
[not found] ` <mailman.15284.1392613467.10748.help-gnu-emacs@gnu.org>
2014-02-18 14:39 ` henry atting
@ 2014-02-20 4:20 ` N. Jackson
2014-02-20 13:10 ` Michael Heerdegen
2014-02-20 16:25 ` Eli Zaretskii
1 sibling, 2 replies; 9+ messages in thread
From: N. Jackson @ 2014-02-20 4:20 UTC (permalink / raw)
To: help-gnu-emacs
At 01:04 -0400 on Monday 2014-02-17, Eli Zaretskii wrote:
>> From: nljlistbox2@gmail.com (N. Jackson)
>> Date: Sun, 16 Feb 2014 18:49:58 -0400
>>
>> I'm not used to having images in Emacs, and I'm having difficulty
>> understanding their scrolling behaviour.
>>
>> I can't seem to scroll them horizontally at all, and when I scroll them
>> vertically, as soon as the top edge of the image hits the top of the
>> window, the whole image jumps up completely out of view. This makes it
>> very hard to veiw the bottom portion of an image, although sometimes I
>> can sneak up on it from below. Often, however, the window then scrolls
>> back up to the top of the image.
>> [...]
>> Using GNU Emacs 24.3.50 of 2014-02-10.
>
> These problems shouldn't exist in the development version. With
> yesterday's trunk, I can scroll images both horizontally and
> vertically, using just the arrow keys, and there are no jumps that you
> describe.
>
> If it doesn't work for you in "emacs -Q", please submit a bug report
> using "M-x report-emacs-bug RET", starting with "emacs -Q", and
> include the image that gives you this trouble.
>
> Thanks.
I am now running GNU Emacs 24.3.50 (x86_64-unknown-linux-gnu, GTK+
Version 3.8.8) of 2014-02-19 Repository revision: 116484
lekktu@gmail.com-20140219210406-y2s7lx244ojfl5on.
I am still having several "issues", some of which are clearly bugs, but
some of which might simply be that I don't understand the intended
behaviour. Should I report separate bugs for Image mode, Eww, Gnus,
and the frame resizing?
A. An image in Image mode
=========================
emacs -Q
C-x C-f ~/my-image.jpg
Note: This test image is larger than the display I am using.
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. Horizontal scroll bar is missing entirely from window.
2. There is no menu option for resizing image to the window. Is there a
command for this?
3. M-x image-transform-fit-to-width has no effect, but no error is
written to the *Messages* buffer. (Note: My build includes ImageMagick
support. Is this perhaps disabled with "emacs -Q"?)
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. Furthermore, the system doesn't seem to know how big the window
is, because if I now maximise the frame (with the logo key and the up
arrow) and restore it again (with the logo key and the down arrow), it
"restores" to another size that is smaller than the size after the "Fit
Frame to Image" command, but not nearly as small as the original size
when Emacs started. (I think I read a bug report a month or two ago of
similar behaviour, but not with Image mode?)
B. An image in Eew
==================
emacs -Q
M-x eww (enter "www.gnu.org/distros/screenshot.html" at the prompt)
A page loads with a screenshot about half way down.
B.1. Jerky scrolling:
Scroll down page with down arrow key, one press at a time.
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. 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.
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.
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.
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.
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.
C. An image in Gnus
===================
This is not from emacs -Q because I can't seem to run Gnus that way (no
gnutls?).
The image is an attachment in an email. (It's actually the same JPEG as
in A. above.)
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.
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.
There is no horizontal scroll bar, and the cursor keys don't seem to
scroll the image horizontally.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to scroll images in Emacs?
2014-02-20 4:20 ` N. Jackson
@ 2014-02-20 13:10 ` Michael Heerdegen
2014-02-20 16:25 ` Eli Zaretskii
1 sibling, 0 replies; 9+ messages in thread
From: Michael Heerdegen @ 2014-02-20 13:10 UTC (permalink / raw)
To: help-gnu-emacs
Hi,
FWIW, I had reported A2, A3 as a bug:
bug#15502: 24.3.50; image-transform-* do nothing
which already has been closed. Short version: There are pending
improvements for `image-mode' - see discussion in
http://lists.gnu.org/archive/html/emacs-devel/2013-07/msg00610.html
To make A2, A3 work, you currently have to evaluate
(setq image-type-header-regexps '((".*" . imagemagick)))
But yes, the current state should not be the final one.
Regards,
Michael.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to scroll images in Emacs?
2014-02-20 4:20 ` N. Jackson
2014-02-20 13:10 ` Michael Heerdegen
@ 2014-02-20 16:25 ` Eli Zaretskii
1 sibling, 0 replies; 9+ messages in thread
From: Eli Zaretskii @ 2014-02-20 16:25 UTC (permalink / raw)
To: help-gnu-emacs
> 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.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2014-02-20 16:25 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).