Leo <[email protected]> writes:
> I was puzzled by line-move-visual changing to nil mysteriously. It
> turns out that magit modifies it.
>
> But line-move-visual is not buffer local variable, thus this
> modification will affect other things unrelated to magit without the
> user's knowledge.
>
> The fix can be using (visual-line-mode nil) so that it is only turned
> off in magit.

We can just turn line-move-visual into buffer local variable too (this
is what (visual-line-mode) does anyway).

The change belongs to commit:

  commit b430adda17080b9ca3abdd54fe26da7d7a1d1872
  Author: Marius Vollmer <[email protected]>
  Date:   Mon Jan 19 00:24:11 2009 +0200

      Make sure that point never ends up in an invisible region.

I wonder if we can simply use line-move-ignore-invisible variable to
have the same effect...

m.

Reply via email to