Mercurial > emacs
changeset 85406:25e29d02bb55
(dired-next-line, dired-previous-line): Use forward-line.
author | Thien-Thi Nguyen <ttn@gnuvola.org> |
---|---|
date | Thu, 18 Oct 2007 15:59:01 +0000 |
parents | d9e1a202593d |
children | fc7f66cff022 |
files | lisp/dired.el |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/dired.el Thu Oct 18 15:56:22 2007 +0000 +++ b/lisp/dired.el Thu Oct 18 15:59:01 2007 +0000 @@ -1682,14 +1682,14 @@ "Move down lines then position at filename. Optional prefix ARG says how many lines to move; default is one line." (interactive "p") - (next-line arg) + (forward-line arg) (dired-move-to-filename)) (defun dired-previous-line (arg) "Move up lines then position at filename. Optional prefix ARG says how many lines to move; default is one line." (interactive "p") - (previous-line arg) + (forward-line (- arg)) (dired-move-to-filename)) (defun dired-next-dirline (arg &optional opoint)