[gnus git] branch master updated: m0-7-250-ge1da374 =1= message.el (message-beginning-of-line): Use beginning-of-visual-line when visual-line-mode is turned on

Katsumi Yamaoka <[email protected]>
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  e1da3741f2c5fcd4c43068ceb54c6470d1d9d094 (commit)
      from  9df4f065fbaca140434457f60d3b37f5bcd353fc (commit)


- Log -----------------------------------------------------------------
commit e1da3741f2c5fcd4c43068ceb54c6470d1d9d094
Author: Dave Goldberg <[email protected]>
Date:   Wed Nov 20 04:25:03 2013 +0000

    message.el (message-beginning-of-line): Use beginning-of-visual-line when visual-line-mode is turned on

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 5dc27dd..b1422cb 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2013-11-20  Dave Goldberg  <[email protected]>
+
+	* message.el (message-beginning-of-line):
+	Use beginning-of-visual-line when visual-line-mode is turned on.
+
 2013-11-15  Jan Tatarik  <[email protected]>
 
 	* gnus-icalendar.el (gnus-icalendar-event->gnus-calendar)
diff --git a/lisp/message.el b/lisp/message.el
index 7f376e6..6e1e964 100644
--- a/lisp/message.el
+++ b/lisp/message.el
@@ -6315,6 +6315,9 @@ they are."
   :link '(custom-manual "(message)Movement")
   :type 'boolean)
 
+(defvar visual-line-mode)
+(declare-function beginning-of-visual-line "simple" (&optional n))
+
 (defun message-beginning-of-line (&optional n)
   "Move point to beginning of header value or to beginning of line.
 The prefix argument N is passed directly to `beginning-of-line'.
@@ -6341,7 +6344,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 (and (boundp 'visual-line-mode) visual-line-mode)
+	(beginning-of-visual-line n)
+      (beginning-of-line n))))
 
 (defun message-buffer-name (type &optional to group)
   "Return a new (unique) buffer name based on TYPE and TO."

-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.

Summary of changes:
 lisp/ChangeLog  |    5 +++++
 lisp/message.el |    7 ++++++-
 2 files changed, 11 insertions(+), 1 deletion(-)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".

The branch, master has been updated


hooks/post-receive
-- 
Gnus Project
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.