From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/83896 Path: news.gmane.org!not-for-mail From: david.goldberg6@verizon.net (Dave Goldberg) Newsgroups: gmane.emacs.gnus.general Subject: message-beginning-of-line and visual-line-mode Date: Tue, 19 Nov 2013 22:45:21 -0500 Message-ID: <847gc3zqge.fsf@davestoy.home> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1384919165 22953 80.91.229.3 (20 Nov 2013 03:46:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Nov 2013 03:46:05 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M32152@lists.math.uh.edu Wed Nov 20 04:46:07 2013 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Viyjv-0007zp-0a for ding-account@gmane.org; Wed, 20 Nov 2013 04:46:07 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1Viyj1-0002vA-3u; Tue, 19 Nov 2013 21:45:11 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Viyiz-0002ux-Sy for ding@lists.math.uh.edu; Tue, 19 Nov 2013 21:45:09 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1Viyiy-0003vW-PU for ding@lists.math.uh.edu; Tue, 19 Nov 2013 21:45:09 -0600 Original-Received: from vms173025pub.verizon.net ([206.46.173.25]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1Viyix-0002h7-9O for ding@gnus.org; Wed, 20 Nov 2013 04:45:07 +0100 Original-Received: from davestoy.home.verizon.net ([unknown] [173.48.216.250]) by vms173025.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0MWJ001MGMEQ7S90@vms173025.mailsrvcs.net> for ding@gnus.org; Tue, 19 Nov 2013 21:44:51 -0600 (CST) X-Face: W!bie|rYVd43O:2CkHTb*~s5}Yzx30X<@6Tq_bnP56Hp!xX4sVl4tgYRirjRcke\wfY!JJ9 i?]VIUJicJzq2\!3%7$5R%wi!R[.]Va97q User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux) X-Spam-Score: -0.5 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:83896 Archived-At: 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