From e82a724f613fbad7217097c5f999b0d0fbcfc297 Mon Sep 17 00:00:00 2001 From: Thien-Thi Nguyen Date: Thu, 18 Oct 2007 16:00:00 +0000 Subject: [PATCH] (dired-next-line, dired-previous-line): Use forward-line. --- lisp/ChangeLog | 1 + 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 @@ 2007-10-18 Thien-Thi Nguyen * textmodes/artist.el (artist-previous-line, artist-next-line): + * dired.el (dired-next-line, dired-previous-line): Use forward-line. 2007-10-18 Juanma Barranquero 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'." "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) -- 2.11.4.GIT