From: Chris Hanson Date: Fri, 31 Mar 2000 20:09:52 +0000 (+0000) Subject: Implement DIRED-MARK-FILES!. X-Git-Tag: 20090517-FFI~4118 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=799340c5950c4e3c60f43f777c0f2dd46b6e8952;p=mit-scheme.git Implement DIRED-MARK-FILES!. --- diff --git a/v7/src/edwin/dired.scm b/v7/src/edwin/dired.scm index cc89ba9a1..b6146cf66 100644 --- a/v7/src/edwin/dired.scm +++ b/v7/src/edwin/dired.scm @@ -1,6 +1,6 @@ ;;; -*-Scheme-*- ;;; -;;; $Id: dired.scm,v 1.178 2000/03/31 19:51:44 cph Exp $ +;;; $Id: dired.scm,v 1.179 2000/03/31 20:09:50 cph Exp $ ;;; ;;; Copyright (c) 1986, 1989-2000 Massachusetts Institute of Technology ;;; @@ -867,10 +867,12 @@ Actions controlled by variables list-directory-brief-switches (define dired-marker-char #\*) (define (dired-mark-files! buffer predicate) - (for-each-file-line buffer - (lambda (lstart) - (if (predicate (dired-filename-string lstart)) - (dired-mark-1 lstart dired-marker-char))))) + (let ((directory (buffer-default-directory buffer))) + (for-each-file-line buffer + (lambda (lstart) + (if (predicate + (merge-pathnames (dired-filename-string lstart) directory)) + (dired-mark-1 lstart dired-marker-char)))))) (define (dired-marked-files #!optional mark marker-char) (let ((mark diff --git a/v7/src/edwin/edwin.pkg b/v7/src/edwin/edwin.pkg index 21eeffc8f..5258e5585 100644 --- a/v7/src/edwin/edwin.pkg +++ b/v7/src/edwin/edwin.pkg @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: edwin.pkg,v 1.249 2000/03/26 01:27:13 cph Exp $ +$Id: edwin.pkg,v 1.250 2000/03/31 20:09:52 cph Exp $ Copyright (c) 1989-2000 Massachusetts Institute of Technology @@ -657,6 +657,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. (parent (edwin)) (export (edwin) dired-filename-start + dired-mark-files! dired-marked-files dired-next-files dired-pathname