* message-beginning-of-line and visual-line-mode
@ 2013-11-20 3:45 Dave Goldberg
2013-11-20 4:25 ` Katsumi Yamaoka
0 siblings, 1 reply; 2+ messages in thread
From: Dave Goldberg @ 2013-11-20 3:45 UTC (permalink / raw)
To: ding
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: message-beginning-of-line and visual-line-mode
2013-11-20 3:45 message-beginning-of-line and visual-line-mode Dave Goldberg
@ 2013-11-20 4:25 ` Katsumi Yamaoka
0 siblings, 0 replies; 2+ messages in thread
From: Katsumi Yamaoka @ 2013-11-20 4:25 UTC (permalink / raw)
To: ding
Dave Goldberg wrote:
> 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.
Applied. Thank you.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-11-20 4:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-20 3:45 message-beginning-of-line and visual-line-mode Dave Goldberg
2013-11-20 4:25 ` Katsumi Yamaoka
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).