* bug#3494: Review line-move-visual patch
@ 2009-07-11 17:17 Chong Yidong
2009-07-15 2:05 ` Stefan Monnier
0 siblings, 1 reply; 2+ messages in thread
From: Chong Yidong @ 2009-07-11 17:17 UTC (permalink / raw)
To: Stefan Monnier; +Cc: 3494
Hi Stefan,
I just checked in a patch into the trunk, which makes line-move-visual
play properly with truncated lines (Bugs 3494 and 3805). I think it
should go to the branch as well. Could you review it?
2009-07-11 Chong Yidong <cyd@stupidchicken.com>
* simple.el (temporary-goal-column): Change the value for
line-move-visual to a cons cell.
(line-move-visual): Record or set the window hscroll, if
necessary (Bug#3494).
(line-move-1): Handle cons value of temporary-goal-column.
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#3494: Review line-move-visual patch
2009-07-11 17:17 bug#3494: Review line-move-visual patch Chong Yidong
@ 2009-07-15 2:05 ` Stefan Monnier
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2009-07-15 2:05 UTC (permalink / raw)
To: Chong Yidong; +Cc: 3494
> I just checked in a patch into the trunk, which makes line-move-visual
> play properly with truncated lines (Bugs 3494 and 3805). I think it
> should go to the branch as well. Could you review it?
> 2009-07-11 Chong Yidong <cyd@stupidchicken.com>
> * simple.el (temporary-goal-column): Change the value for
> line-move-visual to a cons cell.
> (line-move-visual): Record or set the window hscroll, if
> necessary (Bug#3494).
> (line-move-1): Handle cons value of temporary-goal-column.
The problem with this code is that vertical-motion is defined as:
LINES can optionally take the form (COLS . LINES), in which case
the motion will not stop at the start of a screen line but on
its column COLS (if such exists on that line, that is).
but without specifying what is meant by COLS w.r.t hscroll.
Similarly the docstring refers to "start of the screen line" without
making it clear what it means in the case of hscroll.
So, I'm not sure if doing it like you've done is right or not.
Maybe a better solution is to use COLS + HSCROLL as the
temporary-goal-column"; it would at least avoid having to change
temporary-goal-column to accept a cons cell rather than only a number.
Stefan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-07-15 2:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-11 17:17 bug#3494: Review line-move-visual patch Chong Yidong
2009-07-15 2:05 ` Stefan Monnier
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.