Mercurial > emacs
diff lisp/dired.el @ 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 | 591c29778a30 |
children | 2d68ac2d165c 1251cabc40b7 |
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)