help-gnu-emacs
[Top][All Lists]
Advanced

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

whitespace-mode, newline-mark, vertical movement


From: Matt McClure
Subject: whitespace-mode, newline-mark, vertical movement
Date: Fri, 4 May 2012 12:22:56 -0400

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



reply via email to

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