From f5340e292ca7f4b3526de79a957c4f0b9fd656fb Mon Sep 17 00:00:00 2001 From: Jesper Harder Date: Sun, 23 May 2004 19:08:48 +0000 Subject: [PATCH] (grep-tree): Ensure that DIR argument is interpreted as a directory. --- lisp/ChangeLog | 5 +++++ lisp/progmodes/grep.el | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index aea6e7d6d10..fe0559d07aa 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2004-05-23 Jesper Harder + + * progmodes/grep.el (grep-tree): Ensure that DIR argument is + interpreted as a directory. + 2004-05-22 Richard M. Stallman * textmodes/paragraphs.el (sentence-end): Match unicode curly quotes diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el index 94937ba1e87..c5e322a657a 100644 --- a/lisp/progmodes/grep.el +++ b/lisp/progmodes/grep.el @@ -533,7 +533,8 @@ those sub directories of DIR." (files (read-string (concat "Search for \"" regexp "\" in files (default " grep-tree-last-files "): "))) (dir - (read-directory-name "Base directory: " nil default-directory t))) + (file-name-as-directory + (read-directory-name "Base directory: " nil default-directory t)))) (list regexp files dir))) (unless grep-tree-command (grep-compute-defaults)) -- 2.39.5