From: david.goldberg6@verizon.net (Dave Goldberg)
To: ding@gnus.org
Subject: message-beginning-of-line and visual-line-mode
Date: Tue, 19 Nov 2013 22:45:21 -0500 [thread overview]
Message-ID: <847gc3zqge.fsf@davestoy.home> (raw)
I finally got around to figuring out why C-a was going to beginning of paragraph in message-mode. I use visual-line-mode - it's a courtesy to my co-workers who use other email programs and messages display better for them that way. This trivial (I hope) patch makes C-a work as I expect.
diff --git a/lisp/message.el b/lisp/message.el
index 7f376e6..96b5c02 100644
--- a/lisp/message.el
+++ b/lisp/message.el
@@ -6341,7 +6341,9 @@ between beginning of field and beginning of line."
(goto-char
(if (and eoh (or (< eoh here) (= bol here)))
eoh bol)))
- (beginning-of-line n)))
+ (if visual-line-mode
+ (beginning-of-visual-line n)
+ (beginning-of-line n))))
--
Dave Goldberg
david.goldberg6@verizon.net
next reply other threads:[~2013-11-20 3:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-20 3:45 Dave Goldberg [this message]
2013-11-20 4:25 ` Katsumi Yamaoka
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=847gc3zqge.fsf@davestoy.home \
--to=david.goldberg6@verizon.net \
--cc=ding@gnus.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.
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 NNTP newsgroup(s).