emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#971: closed (23.0.60; next-line, previous-line and


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#971: closed (23.0.60; next-line, previous-line and goal-column)
Date: Fri, 16 Sep 2011 17:25:02 +0000

Your message dated Fri, 16 Sep 2011 20:18:12 +0300
with message-id <address@hidden>
and subject line Re: bug#971: 23.0.60; next-line, previous-line and goal-column
has caused the debbugs.gnu.org bug report #971,
regarding 23.0.60; next-line, previous-line and goal-column
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
971: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=971
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 23.0.60; next-line, previous-line and goal-column Date: Fri, 12 Sep 2008 15:34:28 +0200
When goal-column has a value larger than the window width, next line
and previous-line behave oddly. Visit file foo.txt, choose a window
width of, say, 40, and set goal-column to 50. If initially point is
at the beginning of line, next-line and previous-line put point in a
column smaller than goal-column. Executing next-line again puts
point at the end of the line past goal-column.  

Results also behave on the value of truncate-lines. The above refers
to truncate-lines being t. If it is nil, previous-line doesn't do
anything for me. (It does not move point backwards.)

There is no such problem with emacs 22.2.

cat > foo.txt << EOF
| foo bar | foo bar | foo bar | foo bar | foo bar | foo bar | foo bar |
| foo bar | foo bar | foo bar | foo bar | foo bar | foo bar | foo bar
| foo bar | foo bar | foo bar | foo bar | foo bar | foo bar | foo bar |
| foo bar | foo bar | foo bar | foo bar | foo bar | foo bar | foo
| foo bar | foo bar | foo bar | foo bar | foo bar | foo bar | foo bar |
| foo bar | foo bar | foo bar | foo bar | foo bar | foo bar | foo bar
| foo bar | foo bar | foo bar | foo bar | foo bar | foo bar | foo bar |
| foo bar | foo bar | foo bar | foo bar | foo bar | foo bar | foo bar
EOF

In GNU Emacs 23.0.60.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.10.6)
 of 2008-09-07 on lukas



--- End Message ---
--- Begin Message --- Subject: Re: bug#971: 23.0.60; next-line, previous-line and goal-column Date: Fri, 16 Sep 2011 20:18:12 +0300
> From: Stefan Monnier <address@hidden>
> Cc: Lars Magne Ingebrigtsen <address@hidden>,  address@hidden,  address@hidden
> Date: Fri, 16 Sep 2011 09:44:15 -0400
> 
> > An easy way of solving this is dropping support for goal-column when
> > line-move-visual is non-nil.
> 
> Except of course when we truncate-lines.
> That sounds about right.  Tho at the same time, line-move-visual is
> a global setting whereas goal-column is typically buffer-local, so maybe
> it would make more sense to ignore line-move-visual when goal-column
> is set.

I've committed a change (revision 105795 on the trunk) that ignores
line-move-visual's value when goal-column is non-nil.

I'm therefore closing this bug.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]