all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Reitter <david.reitter@gmail.com>
To: Emacs-Devel devel <emacs-devel@gnu.org>
Cc: "aquamacs-bugs@aquamacs.org Bugs" <aquamacs-bugs@aquamacs.org>,
	"José Figueroa-O'Farrill" <j.m.figueroa@ed.ac.uk>
Subject: end-of-visual-line / wrapped lines
Date: Wed, 30 Jul 2008 18:01:49 +0100	[thread overview]
Message-ID: <098C6FE9-63F2-4ED4-9B7F-D59402BD154C@gmail.com> (raw)
In-Reply-To: <m2iquop66s.fsf@ed.ac.uk>

[-- Attachment #1: Type: text/plain, Size: 1901 bytes --]

I've run into a rather general problem with `end-of-visual- 
line' (bound to C-e in visual-line-mode).

If lines are wrapped, it moves to the beginning of the next visual  
line instead.  In my earlier implementation of this, I actually moved  
one character back, which is correct when word-wrap is turned on,  
because the space at the end of the current line is skipped (and  
that's okay).  However, if word-wrap is turned off, then there is no  
space and also no newline, so nothing that could be skipped.

It seems to be a design issue:  how does on place the point at a given  
position, but ensure that it is displayed at the end of a visual line  
rather than at the beginning of the next one?
I don't know how to do that, and it might not be possible at all, by  
principle.


On 30 Jul 2008, at 01:27, José Figueroa-O'Farrill wrote:

>
> I'm not sure this is a bug or a feature, but the behaviour is bizarre,
> IMHO and at the very least I'd like to turn it off.  It happens in
> whenever auto-fill-mode is on and even in the vanilla Aquamacs  
> without customizations.  It happens when the frame is not much wider  
> than the
> value of 'fill-column'.  It is difficult to describe in words, but I
> will try my best.
>
> Consider a paragraph of text consisting of several (>3, say) lines,
> whose lines have been wrapped.  For example, take the above paragraph
> starting this email.  Suppose I put the cursor at the end of the third
> line (after 'Aquamacs without'), I type a space and C-d.  The line
> gets wrapped and the ... appears on the margin.  So far, so good.  If
> I now do a C-e, the cursor does not move to the end of the line (which
> would be at the end of 'than the') but rather stops between the 'u'
> and 's' of 'customization'.  Is this intentional?  If so, why?  and,
> more importantly, how do I reinstate the old behaviour?


[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 2193 bytes --]

       reply	other threads:[~2008-07-30 17:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <m2iquop66s.fsf@ed.ac.uk>
2008-07-30 17:01 ` David Reitter [this message]
2008-07-30 19:45   ` end-of-visual-line / wrapped lines Chong Yidong

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

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

  git send-email \
    --in-reply-to=098C6FE9-63F2-4ED4-9B7F-D59402BD154C@gmail.com \
    --to=david.reitter@gmail.com \
    --cc=aquamacs-bugs@aquamacs.org \
    --cc=emacs-devel@gnu.org \
    --cc=j.m.figueroa@ed.ac.uk \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.