diff options
| author | Dave Goldberg | 2013-11-20 04:25:37 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2013-11-20 04:25:37 +0000 |
| commit | cdd3286fd319365ec6d0819a0d1b84174034cc18 (patch) | |
| tree | 37538cafa0aa4d041cb1afb342556b49ed181664 | |
| parent | fd5fb2f4fd603235eb1b879d224005e957038a19 (diff) | |
| download | emacs-cdd3286fd319365ec6d0819a0d1b84174034cc18.tar.gz emacs-cdd3286fd319365ec6d0819a0d1b84174034cc18.zip | |
lisp/gnus/message.el (message-beginning-of-line): Use beginning-of-visual-line when visual-line-mode is turned on
| -rw-r--r-- | lisp/gnus/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/gnus/message.el | 7 |
2 files changed, 11 insertions, 1 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 9a6ea149753..fceeeb2bd23 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-11-20 Dave Goldberg <david.goldberg6@verizon.net> | ||
| 2 | |||
| 3 | * message.el (message-beginning-of-line): | ||
| 4 | Use beginning-of-visual-line when visual-line-mode is turned on. | ||
| 5 | |||
| 1 | 2013-11-15 Jan Tatarik <jan.tatarik@gmail.com> | 6 | 2013-11-15 Jan Tatarik <jan.tatarik@gmail.com> |
| 2 | 7 | ||
| 3 | * gnus-icalendar.el (gnus-icalendar-event->gnus-calendar) | 8 | * gnus-icalendar.el (gnus-icalendar-event->gnus-calendar) |
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index a458b3fc25b..b7d0ada35d5 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el | |||
| @@ -6271,6 +6271,9 @@ they are." | |||
| 6271 | :link '(custom-manual "(message)Movement") | 6271 | :link '(custom-manual "(message)Movement") |
| 6272 | :type 'boolean) | 6272 | :type 'boolean) |
| 6273 | 6273 | ||
| 6274 | (defvar visual-line-mode) | ||
| 6275 | (declare-function beginning-of-visual-line "simple" (&optional n)) | ||
| 6276 | |||
| 6274 | (defun message-beginning-of-line (&optional n) | 6277 | (defun message-beginning-of-line (&optional n) |
| 6275 | "Move point to beginning of header value or to beginning of line. | 6278 | "Move point to beginning of header value or to beginning of line. |
| 6276 | The prefix argument N is passed directly to `beginning-of-line'. | 6279 | The prefix argument N is passed directly to `beginning-of-line'. |
| @@ -6297,7 +6300,9 @@ between beginning of field and beginning of line." | |||
| 6297 | (goto-char | 6300 | (goto-char |
| 6298 | (if (and eoh (or (< eoh here) (= bol here))) | 6301 | (if (and eoh (or (< eoh here) (= bol here))) |
| 6299 | eoh bol))) | 6302 | eoh bol))) |
| 6300 | (beginning-of-line n))) | 6303 | (if (and (boundp 'visual-line-mode) visual-line-mode) |
| 6304 | (beginning-of-visual-line n) | ||
| 6305 | (beginning-of-line n)))) | ||
| 6301 | 6306 | ||
| 6302 | (defun message-buffer-name (type &optional to group) | 6307 | (defun message-buffer-name (type &optional to group) |
| 6303 | "Return a new (unique) buffer name based on TYPE and TO." | 6308 | "Return a new (unique) buffer name based on TYPE and TO." |