unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* line-move-visual?
@ 2008-10-22 20:24 Leo
  0 siblings, 0 replies; 4+ messages in thread
From: Leo @ 2008-10-22 20:24 UTC (permalink / raw)
  To: help-gnu-emacs

Hi there,

It looks the change that C-n and C-p now move by screen lines are pretty
big. Any idea why this has been set as default? What's the user case for
this?

Thank you so much.

Best,
-- 
.:  Leo  :.  [ sdl.web AT gmail.com ]  .:  [ GPG Key: 9283AA3F ]  :.

        Use the better alternative -- http://www.openoffice.org/





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: line-move-visual?
       [not found] <mailman.1833.1224707092.25473.help-gnu-emacs@gnu.org>
@ 2008-10-22 21:12 ` Xah
  2008-10-23  2:58   ` line-move-visual? Giorgos Keramidas
  2008-10-23 10:46   ` line-move-visual? Tassilo Horn
  0 siblings, 2 replies; 4+ messages in thread
From: Xah @ 2008-10-22 21:12 UTC (permalink / raw)
  To: help-gnu-emacs

On Oct 22, 1:24 pm, Leo <sdl....@gmail.com> wrote:
> Hi there,
>
> It looks the change that C-n and C-p now move by screen lines are pretty
> big. Any idea why this has been set as default? What's the user case for
> this?

Do you mean to say that in the dev version of emacs, now up/down arrow
key moves the cursor by a screen line instead of moving by EOL char?

Hurray! One critical emacs modernization down, few more to go!

http://xahlee.org/emacs/modernization.html

-----------------

as answer to your question, moving by screen line is more natural, and
is the behavior by all modern software. I don't know if this is how
emacs developers felt when the change is made, but probably similar.

the moving by screen line is a frequently requested feature, poping up
every couple of months in gnu.emacs.help or comp.emacs.

------------------

btw, what's the behavior of kill-line? Does it do screen line or EOL
line?

  Xah
∑ http://xahlee.org/^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: line-move-visual?
  2008-10-22 21:12 ` line-move-visual? Xah
@ 2008-10-23  2:58   ` Giorgos Keramidas
  2008-10-23 10:46   ` line-move-visual? Tassilo Horn
  1 sibling, 0 replies; 4+ messages in thread
From: Giorgos Keramidas @ 2008-10-23  2:58 UTC (permalink / raw)
  To: help-gnu-emacs

On Wed, 22 Oct 2008 14:12:34 -0700 (PDT), Xah <xahlee@gmail.com> wrote:
> On Oct 22, 1:24 pm, Leo <sdl....@gmail.com> wrote:
>> Hi there,
>>
>> It looks the change that C-n and C-p now move by screen lines are pretty
>> big. Any idea why this has been set as default? What's the user case for
>> this?
>
> Do you mean to say that in the dev version of emacs, now up/down arrow
> key moves the cursor by a screen line instead of moving by EOL char?

Yes.

The documentation of `next-line' function now says:

    If the variable `line-move-visual' is non-nil, this command moves
    by display lines.  Otherwise, it moves by buffer lines, without
    taking variable-width characters or continued lines into account.

> btw, what's the behavior of kill-line? Does it do screen line or EOL
> line?

It kills ``buffer lines''.  To kill a single display line one can move
the point to the start of that line with the arrows, select the display
line with `S-<down>' or `C-SPC S-C-n' and kill the display line with
`C-w' as usual.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: line-move-visual?
  2008-10-22 21:12 ` line-move-visual? Xah
  2008-10-23  2:58   ` line-move-visual? Giorgos Keramidas
@ 2008-10-23 10:46   ` Tassilo Horn
  1 sibling, 0 replies; 4+ messages in thread
From: Tassilo Horn @ 2008-10-23 10:46 UTC (permalink / raw)
  To: help-gnu-emacs

Xah <xahlee@gmail.com> writes:

Hi Xah,

> btw, what's the behavior of kill-line? Does it do screen line or EOL
> line?

It kills till EOL.

To make kill-line kill till the end of the screen line, you have to
enable visual-line-mode, which indeed changes line-wrapping, too.  (It
does wrapping only on word boundaries and not inside words.)

Bye,
Tassilo





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-10-23 10:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.1833.1224707092.25473.help-gnu-emacs@gnu.org>
2008-10-22 21:12 ` line-move-visual? Xah
2008-10-23  2:58   ` line-move-visual? Giorgos Keramidas
2008-10-23 10:46   ` line-move-visual? Tassilo Horn
2008-10-22 20:24 line-move-visual? Leo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).