;;; -*-Scheme-*-
;;;
-;;; $Id: dired.scm,v 1.173 2000/03/27 20:44:24 cph Exp $
+;;; $Id: dired.scm,v 1.174 2000/03/31 19:33:30 cph Exp $
;;;
;;; Copyright (c) 1986, 1989-2000 Massachusetts Institute of Technology
;;;
(define (dired-next-files n #!optional mark)
(let ((mark
- (if (or (default-object? mark) (not mark))
- (current-point)
- mark)))
+ (cond ((or (default-object? mark) (not mark))
+ (current-point))
+ ((buffer? mark)
+ (if (selected-buffer? mark)
+ (current-point)
+ (buffer-point mark)))
+ (else mark))))
(let loop ((start (line-start mark 0)) (n n))
(if (<= n 0)
'()