unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* whitespace-mode, newline-mark, vertical movement
@ 2012-05-04 16:22 Matt McClure
  0 siblings, 0 replies; only message in thread
From: Matt McClure @ 2012-05-04 16:22 UTC (permalink / raw)
  To: help-gnu-emacs

I'm using whitespace-mode with the following in my whitespace-display-mappings:

    (newline-mark ?\n    [?$ ?\n]) ; eol - dollar sign

I have a text file with lines indented by four spaces, that appears as
follows. The '$' characters are the newline-marks, not actual
characters in the file.

<<EOF
$
    $
    $
EOF

If I put the point on line 1, I can type C-a or C-e followed by any
number of C-n and C-p, and the point stays in column 0.

But if I put the point on line 2 and type C-a followed by C-n, the
point ends up in column 1 on line 3, whereas I expect it to stay in
column 0.

I can work around the issue by changing my whitespace-display-mappings
to include:

    (newline-mark ?\n    [?\n])			; eol - no mark

But I'd prefer to use the '$' mark.

Is this an Emacs bug or a configuration issue?

--
Matt McClure
http://www.matthewlmcclure.com
http://www.mapmyfitness.com/profile/matthewlmcclure



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-05-04 16:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-04 16:22 whitespace-mode, newline-mark, vertical movement Matt McClure

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