[Top][All Lists]

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

Re: C-n and C-a

From: Juri Linkov
Subject: Re: C-n and C-a
Date: Thu, 12 Feb 2009 12:05:12 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.90 (x86_64-pc-linux-gnu)

> 3.  Add a wrap-prefix that indents the wrapped lines a lot so that
> they're in the filename column (maybe indented extra within that
> column).

That would be very nice.  Setting `wrap-prefix' in Dired to a string of
50 spaces (handling variable widths is possible in `insert-directory')
produces a good-looking result.  However, when `word-wrap' is non-nil
then the result is weird: there are many empty lines for every wrapped
file name.  Seems like a bug.  I'll create a bug report later.

>> 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).

Juri Linkov

reply via email to

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