From: Eli Zaretskii <eliz@gnu.org>
To: Lars Magne Ingebrigtsen <larsi@gnus.org>
Cc: 14881-done@debbugs.gnu.org
Subject: bug#14881: 24.3.50; Odd cursor movement with images (or lines with different heights?)
Date: Wed, 17 Jul 2013 19:54:40 +0300 [thread overview]
Message-ID: <83wqop160f.fsf@gnu.org> (raw)
In-Reply-To: <m37ggpcvet.fsf@stories.gnus.org>
> From: Lars Magne Ingebrigtsen <larsi@gnus.org>
> Cc: 14881@debbugs.gnu.org
> Date: Wed, 17 Jul 2013 12:50:34 +0200
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> >> Defaulting to the current cursor (non-)movement seems kinda un-obvious.
> >> Why would anybody want `C-n' to scroll the window instead of er moving
> >> the cursor down?
> >
> > Because you don't want the images to jump. If they do, you won't see
> > some of their parts, especially if the window height is small.
>
> In the example that started this bug report, there's no danger of images
> jumping or not being shown, so I don't understand why users would want
> `C-n' to do anything but behave as normal; i.e., go to the next line.
>
> That's a pretty fundamental thing to do, and if you can't rely on `C-n'
> taking you to the next line, lots of things get very, very confusing.
If you want C-n to always take you to the next line in interactive
usage, the you should set auto-window-vscroll to nil.
Non-interactively, you should call next-line with nil TRY-VSCROLL
argument.
C-n doesn't always take you to the next line since Emacs 22, and not
only with tall images.
> Now, if you have an image that's higher than the window size, then, yes,
> perhaps `C-n' should do something else than going to the next line. But
> having such an image is not the normal use case. The normal use case is
> to have lots of smaller images in the window.
"Normal" is in the eyes of the beholder.
Anyway, you should have what you wanted in trunk revision 113442. I
hope you like it. FWIW, this never worked well in Emacs (e.g., try
C-p in your test case with older Emacsen).
next prev parent reply other threads:[~2013-07-17 16:54 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-16 17:57 bug#14881: 24.3.50; Odd cursor movement with images (or lines with different heights?) Lars Magne Ingebrigtsen
2013-07-16 18:29 ` Eli Zaretskii
2013-07-16 18:39 ` Lars Magne Ingebrigtsen
2013-07-16 19:36 ` Eli Zaretskii
2013-07-16 19:41 ` Lars Magne Ingebrigtsen
2013-07-17 10:50 ` Lars Magne Ingebrigtsen
2013-07-17 16:54 ` Eli Zaretskii [this message]
2013-07-18 13:57 ` Lars Magne Ingebrigtsen
2013-07-18 16:52 ` Eli Zaretskii
2013-07-19 11:07 ` Lars Magne Ingebrigtsen
2013-07-19 14:04 ` Eli Zaretskii
2013-07-19 14:13 ` Lars Magne Ingebrigtsen
2013-07-19 14:31 ` 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=83wqop160f.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=14881-done@debbugs.gnu.org \
--cc=larsi@gnus.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.