[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C-n and C-a
From: |
Miles Bader |
Subject: |
Re: C-n and C-a |
Date: |
Thu, 12 Feb 2009 20:04:12 +0900 |
Juri Linkov <address@hidden> writes:
>>> For the same reason I think we should not set word-mode in
>>> visual-line-mode.
>>
>> This seems bizarre -- AFAICS, like 95% of the goal of visual-line-mode
>> is to make it easy to enable a word-wrapped mode for editing
>> paragraphs-end-in-newline text (i.e., a display-time version of
>> longlines-mode).
>
> The problem is that currently by default C-n/C-p moves by visual lines,
> but C-a/C-e moves by real lines. `visual-line-mode' is the only way to
> cause C-a/C-e to move by visual lines. But it forces `word-wrap' to be
> t even in buffers where word-wrap should be nil (where word wrap gives
> sub-optimal results).
If visual-line-mode doesn't turn on word-wrap, then there needs to be a
new mode which is visual-line-mode+word-wrap, because I think that's an
incredibly common case (probably more so than without word-wrap).
If the only use of visual-line-mode without word-wrap is
programmatically (by other modes), then maybe it's enough to just force
word-wrap off in those modes somehow (either by frobbing the variable
itself after turning it on, or by some let-binding around the mode
invocation).
-Miles
--
Run away! Run away!
- Re: C-n and C-a, (continued)
- Re: C-n and C-a, Chong Yidong, 2009/02/06
- Re: C-n and C-a, Juri Linkov, 2009/02/07
- Re: C-n and C-a, Stefan Monnier, 2009/02/08
- Re: C-n and C-a, Christian Schlauer, 2009/02/09
- RE: C-n and C-a, Drew Adams, 2009/02/09
- Re: C-n and C-a, Stefan Monnier, 2009/02/09
- RE: C-n and C-a, Drew Adams, 2009/02/09
- Re: C-n and C-a, Juri Linkov, 2009/02/11
- Re: C-n and C-a, Miles Bader, 2009/02/11
- Re: C-n and C-a, Juri Linkov, 2009/02/12
- Re: C-n and C-a,
Miles Bader <=
- Re: C-n and C-a, Richard M Stallman, 2009/02/13
Re: C-n and C-a, Stefan Monnier, 2009/02/06