diff options
| author | Thien-Thi Nguyen | 2007-10-18 16:00:00 +0000 |
|---|---|---|
| committer | Thien-Thi Nguyen | 2007-10-18 16:00:00 +0000 |
| commit | e82a724f613fbad7217097c5f999b0d0fbcfc297 (patch) | |
| tree | 15e6f3c750de9fb8fcbe7fbb3af3466af09aa59f | |
| parent | cb7bddf66162ba9383cb18b54e8380ca02afb5fb (diff) | |
| download | emacs-e82a724f613fbad7217097c5f999b0d0fbcfc297.tar.gz emacs-e82a724f613fbad7217097c5f999b0d0fbcfc297.zip | |
(dired-next-line, dired-previous-line): Use forward-line.
| -rw-r--r-- | lisp/ChangeLog | 1 | ||||
| -rw-r--r-- | lisp/dired.el | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b469883c4cc..48774e38958 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | 2007-10-18 Thien-Thi Nguyen <ttn@gnuvola.org> | 1 | 2007-10-18 Thien-Thi Nguyen <ttn@gnuvola.org> |
| 2 | 2 | ||
| 3 | * textmodes/artist.el (artist-previous-line, artist-next-line): | 3 | * textmodes/artist.el (artist-previous-line, artist-next-line): |
| 4 | * dired.el (dired-next-line, dired-previous-line): | ||
| 4 | Use forward-line. | 5 | Use forward-line. |
| 5 | 6 | ||
| 6 | 2007-10-18 Juanma Barranquero <lekktu@gmail.com> | 7 | 2007-10-18 Juanma Barranquero <lekktu@gmail.com> |
diff --git a/lisp/dired.el b/lisp/dired.el index 7bdb195543a..16b53acb6da 100644 --- a/lisp/dired.el +++ b/lisp/dired.el | |||
| @@ -1682,14 +1682,14 @@ Otherwise, for buffers inheriting from dired-mode, call `toggle-read-only'." | |||
| 1682 | "Move down lines then position at filename. | 1682 | "Move down lines then position at filename. |
| 1683 | Optional prefix ARG says how many lines to move; default is one line." | 1683 | Optional prefix ARG says how many lines to move; default is one line." |
| 1684 | (interactive "p") | 1684 | (interactive "p") |
| 1685 | (next-line arg) | 1685 | (forward-line arg) |
| 1686 | (dired-move-to-filename)) | 1686 | (dired-move-to-filename)) |
| 1687 | 1687 | ||
| 1688 | (defun dired-previous-line (arg) | 1688 | (defun dired-previous-line (arg) |
| 1689 | "Move up lines then position at filename. | 1689 | "Move up lines then position at filename. |
| 1690 | Optional prefix ARG says how many lines to move; default is one line." | 1690 | Optional prefix ARG says how many lines to move; default is one line." |
| 1691 | (interactive "p") | 1691 | (interactive "p") |
| 1692 | (previous-line arg) | 1692 | (forward-line (- arg)) |
| 1693 | (dired-move-to-filename)) | 1693 | (dired-move-to-filename)) |
| 1694 | 1694 | ||
| 1695 | (defun dired-next-dirline (arg &optional opoint) | 1695 | (defun dired-next-dirline (arg &optional opoint) |