GNU bug report logs -
#18545
24.4.50: Bug - forward-line inside with-selected-window
Previous Next
Reported by: lompik <at> voila.fr
Date: Wed, 24 Sep 2014 13:40:02 UTC
Severity: normal
Found in version 24.4.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: Stefan Monnier <monnier <at> iro.umontreal.ca>
> Cc: martin rudalics <rudalics <at> gmx.at>, lompik <at> voila.fr, 18545 <at> debbugs.gnu.org
> Date: Sat, 27 Sep 2014 13:25:04 -0400
>
> > This says point doesn't move, which I don't understand how can
> > happen. forward-line doesn't care about anything except moving point
> > to the next line.
>
> That's odd, indeed. It can be explained if the redisplay ends up moving
> point to keep it in the window (instead of scrolling the window to
> follow point).
I don't think this can explain it: forward-line works on the buffer,
and the location of point is (or should be, see below) printed
_before_ Emacs enters redisplay, as part of running the command that
called forward-line.
This, of course, assumes that what Martin did was equivalent to the
below:
(defun my-fwd-line ()
(interactive)
(forward-line 1)
(message "%s" (point)))
(define-key global-map [down] 'my-fwd-line)
This bug report was last modified 10 years and 237 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.