]> git.eshelyaron.com Git - emacs.git/commitdiff
(compilation-find-file): Revert change
authorNick Roberts <nickrob@snap.net.nz>
Sun, 18 Mar 2007 02:49:54 +0000 (02:49 +0000)
committerNick Roberts <nickrob@snap.net.nz>
Sun, 18 Mar 2007 02:49:54 +0000 (02:49 +0000)
from 2006-07-18 to allow completion of directory names.
Reported by John Carter <john.carter@tait.co.nz>.

lisp/progmodes/compile.el

index 3039f614fb25f16038976603c0a28a8b1ab834d5..aa77caf0670f092b1e30fc4078debde7fc10394d 100644 (file)
@@ -1862,17 +1862,7 @@ Pop up the buffer containing MARKER and scroll to MARKER if we ask the user."
           (let* ((name (read-file-name
                         (format "Find this %s in (default %s): "
                                 compilation-error filename)
-                        spec-dir filename t nil
-                        ;; Try to make sure the user can only select
-                        ;; a valid answer.  This predicate may be ignored,
-                        ;; tho, so we still have to double-check afterwards.
-                        ;; TODO: We should probably fix read-file-name so
-                        ;; that it never ignores this predicate, even when
-                        ;; using popup dialog boxes.
-                        (lambda (name)
-                          (if (file-directory-p name)
-                              (setq name (expand-file-name filename name)))
-                          (file-exists-p name))))
+                        spec-dir filename t nil))
                  (origname name))
             (cond
              ((not (file-exists-p name))