Make return value of (cwd) a directory name

This commit is contained in:
mainzelm 2006-04-06 16:24:48 +00:00
parent c232be69a1
commit f531958b62
1 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@
(lambda (file)
(and (member (file-name-extension file) extensions)
file))
(or (to-complete-prefix to-complete) (cwd)))))
(or (to-complete-prefix to-complete) (file-name-as-directory (cwd))))))
(define (complete-executables/path partial-name)
(complete-with-filesystem-objects
@ -85,7 +85,7 @@
(if (file-directory? file)
(file-name-as-directory file)
file))))))
(or (to-complete-prefix to-complete) (cwd)))))
(or (to-complete-prefix to-complete) (file-name-as-directory (cwd))))))
;; #### no special treatment yet
(define find-completions-for-redir find-completions-for-arg)