From: Matt McClure <matthewlmcclure@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: whitespace-mode, newline-mark, vertical movement
Date: Fri, 4 May 2012 12:22:56 -0400 [thread overview]
Message-ID: <CAJELnLH-Q_KpQmao57me1-2TmRgrObJ9T9haOtDuF44rZj5GUw@mail.gmail.com> (raw)
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 other threads:[~2012-05-04 16:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=CAJELnLH-Q_KpQmao57me1-2TmRgrObJ9T9haOtDuF44rZj5GUw@mail.gmail.com \
--to=matthewlmcclure@gmail.com \
--cc=help-gnu-emacs@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 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.