unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* recenter and visual-line-mode
@ 2015-04-07 20:14 Milan Stanojević
  2015-04-08  6:43 ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Milan Stanojević @ 2015-04-07 20:14 UTC (permalink / raw)
  To: help-gnu-emacs

I don't know if this is a bug or an expected behavior.

With visual-line-mode on, running (recenter 0) doesn't always put the
point on the top-most line in the window.

I experimented a bit and it seems that (recenter 0) doesn't work if
the point is on the portion of the word that was moved down because of
word-wrapping.

For example, I have word "foobar" where "bar" can't fit on the line.
With visual-line-mode off (and truncate-lines nil), "foo" will be one
visual line and then "bar" on the next. If I turn on visual-line-mode,
the whole "foobar" would move to the next visual line. If I then run
(recenter 0) while point is inside "foo", the lines will move such
that point ends up on line 2, but if I do it while the point is inside
"bar" then the point will end up on line 1. I think the correct
behavior would be to move to line 1 always.

Is this a bug?

I'm using emacs 24.4.1 with Motif toolkit.



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-04-10 17:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-07 20:14 recenter and visual-line-mode Milan Stanojević
2015-04-08  6:43 ` Eli Zaretskii
2015-04-08 19:59   ` Milan Stanojević
2015-04-08 23:29     ` Milan Stanojević
2015-04-09  8:30     ` Eli Zaretskii
2015-04-10 10:13       ` Eli Zaretskii
2015-04-10 15:38         ` Milan Stanojević
2015-04-10 17:37           ` 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).