unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Uday S Reddy <u.s.reddy@cs.bham.ac.uk>
To: emacs-devel@gnu.org
Cc: Uday S Reddy <u.s.reddy@cs.bham.ac.uk>
Subject: Re: Lines again
Date: Fri, 4 Jun 2010 16:44:01 +0100	[thread overview]
Message-ID: <19465.8001.703000.121823@gargle.gargle.HOWL> (raw)
In-Reply-To: <jwvd3w6ncd7.fsf-monnier+emacs@gnu.org>

Stefan Monnier writes:

> I think "screen lines" and "visual lines" should be the same, yes.
> "continuation lines" refer specifically to screen lines that are
> created because of wrapping (i.e. are not displayed on the same
> visual line as the beginning of the logical line).

I am thinking differently.  Not just the choice of the terms, but the
way things have been laid out in the manual seems to suggest that
there are two different things going on.  Some of the problems seem to
be because the different ideas have been fused based on some
extraneous implementation considerations.

The two ideas are visual line mode (section 18.8) and logical line
mode (which is the opposite of visual line mode, discussed in section
7.8).

The visual line mode user is just dealing with blobs of contiguous
text.  The text is presented in lines, which are "real" and used for
editing.  If you want to call these blobs of text "logical lines", be
my guest, but they don't really think of these things as lines.
"Visual lines" exist in this world.

The logical line mode user is dealing with real logical lines.  The
screen lines in terms of which the logical lines are presented are a
necessity of life, but they are not the real focus.  (Imagine looking
at a byte-code logical line in the debug mode, split across 20
different screen lines.  When do you ever want to navigate through
those screen lines?)

Once you set up this mental model of visual line mode and logical line
mode, it stands to reason that *all* the movement operations in the
visual line mode should be by visual lines, and *all* the movement
operations in the logical line mode should be by logical lines.  The
`line-move-visual' option is an interloper which has no reason to
exist.

So, I am proposing that you get rid of the `line-move-visual' as a
user option and revert C-n and C-p to act in the logical/visual manner
in their appropriate modes.  You will make a lot of long-time Emacs
users a lot happier.

Cheers,
Uday

PS. The comp.emacs thread that prompted this observation:

http://groups.google.com/group/comp.emacs/browse_thread/thread/43549e055d64908b#



  reply	other threads:[~2010-06-04 15:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-04  0:28 Lines again Uday S Reddy
2010-06-04 13:43 ` Stefan Monnier
2010-06-04 15:44   ` Uday S Reddy [this message]
2010-06-04 16:47     ` Eli Zaretskii
2010-06-04 16:49     ` Eli Zaretskii
2010-06-04 18:41       ` Uday S Reddy
2010-06-04 17:04     ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19465.8001.703000.121823@gargle.gargle.HOWL \
    --to=u.s.reddy@cs.bham.ac.uk \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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