comparison lisp/progmodes/compile.el @ 90789:c0409ee15cee

Merge from emacs--devo--0 Patches applied: * emacs--devo--0 (patch 670-674) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 209-210) - Merge from emacs--devo--0 - Update from CVS Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-185
author Miles Bader <miles@gnu.org>
date Wed, 21 Mar 2007 13:33:07 +0000
parents 95d0cdf160ea db7d24c39f42
children 4ef881a120fe
comparison
equal deleted inserted replaced
90788:a12805fdabe8 90789:c0409ee15cee
1860 (compilation-set-window (display-buffer (marker-buffer marker)) 1860 (compilation-set-window (display-buffer (marker-buffer marker))
1861 marker) 1861 marker)
1862 (let* ((name (read-file-name 1862 (let* ((name (read-file-name
1863 (format "Find this %s in (default %s): " 1863 (format "Find this %s in (default %s): "
1864 compilation-error filename) 1864 compilation-error filename)
1865 spec-dir filename t nil 1865 spec-dir filename t nil))
1866 ;; Try to make sure the user can only select
1867 ;; a valid answer. This predicate may be ignored,
1868 ;; tho, so we still have to double-check afterwards.
1869 ;; TODO: We should probably fix read-file-name so
1870 ;; that it never ignores this predicate, even when
1871 ;; using popup dialog boxes.
1872 (lambda (name)
1873 (if (file-directory-p name)
1874 (setq name (expand-file-name filename name)))
1875 (file-exists-p name))))
1876 (origname name)) 1866 (origname name))
1877 (cond 1867 (cond
1878 ((not (file-exists-p name)) 1868 ((not (file-exists-p name))
1879 (message "Cannot find file `%s'" name) 1869 (message "Cannot find file `%s'" name)
1880 (ding) (sit-for 2)) 1870 (ding) (sit-for 2))