From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: How to scroll images in Emacs? Date: Thu, 20 Feb 2014 18:25:25 +0200 Message-ID: <8361o969ai.fsf@gnu.org> References: <87eh32llk9.fsf@moondust.localdomain> <8761oah0uf.fsf@moondust.localdomain> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1392913553 30982 80.91.229.3 (20 Feb 2014 16:25:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Feb 2014 16:25:53 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 20 17:26:01 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WGWRk-0002pG-KS for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Feb 2014 17:26:00 +0100 Original-Received: from localhost ([::1]:39493 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGWRk-0006mN-6A for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Feb 2014 11:26:00 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47077) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGWR9-0006cY-7a for help-gnu-emacs@gnu.org; Thu, 20 Feb 2014 11:25:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGWQz-0005Qb-Ke for help-gnu-emacs@gnu.org; Thu, 20 Feb 2014 11:25:23 -0500 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:49529) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGWQz-0005QJ-CW for help-gnu-emacs@gnu.org; Thu, 20 Feb 2014 11:25:13 -0500 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0N1A00E00YXZ4L00@a-mtaout21.012.net.il> for help-gnu-emacs@gnu.org; Thu, 20 Feb 2014 18:25:11 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N1A00E8IYXZ4F00@a-mtaout21.012.net.il> for help-gnu-emacs@gnu.org; Thu, 20 Feb 2014 18:25:11 +0200 (IST) In-reply-to: <8761oah0uf.fsf@moondust.localdomain> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.169 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:96140 Archived-At: > 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.