aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorStefan Monnier2008-10-25 15:18:53 +0000
committerStefan Monnier2008-10-25 15:18:53 +0000
commit8cd56959b43bd4e1ed5df42f2228b3302ea52812 (patch)
tree1ba5aeb82de44910c2de10a775eeb3eab8c20963 /lisp/progmodes
parent520b29e7aafc134741212a9161e9b3b7d6eca9cd (diff)
downloademacs-8cd56959b43bd4e1ed5df42f2228b3302ea52812.tar.gz
emacs-8cd56959b43bd4e1ed5df42f2228b3302ea52812.zip
* files.el (locate-dominating-stop-dir-regexp): New var.
(locate-dominating-file): Change arg from a regexp to a file name. Rewrite using the vc-find-root code to avoid directory-files which is too slow. Obey locate-dominating-stop-dir-regexp. Don't pay attention to changes in owner. (project-find-settings-file): Adjust call to locate-dominating-file. * progmodes/flymake.el (flymake-find-buildfile): Adjust call to locate-dominating-file. * vc-hooks.el (vc-find-root): Use locate-dominating-file. (vc-ignore-dir-regexp): Use locate-dominating-stop-dir-regexp.
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/flymake.el5
1 files changed, 1 insertions, 4 deletions
diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el
index 7f35e300994..b5856f3e115 100644
--- a/lisp/progmodes/flymake.el
+++ b/lisp/progmodes/flymake.el
@@ -340,13 +340,10 @@ Return nil if we cannot, non-nil if we can."
340Buildfile includes Makefile, build.xml etc. 340Buildfile includes Makefile, build.xml etc.
341Return its file name if found, or nil if not found." 341Return its file name if found, or nil if not found."
342 (or (flymake-get-buildfile-from-cache source-dir-name) 342 (or (flymake-get-buildfile-from-cache source-dir-name)
343 (let* ((file (locate-dominating-file 343 (let* ((file (locate-dominating-file source-dir-name buildfile-name)))
344 source-dir-name
345 (concat "\\`" (regexp-quote buildfile-name) "\\'"))))
346 (if file 344 (if file
347 (progn 345 (progn
348 (flymake-log 3 "found buildfile at %s" file) 346 (flymake-log 3 "found buildfile at %s" file)
349 (setq file (file-name-directory file))
350 (flymake-add-buildfile-to-cache source-dir-name file) 347 (flymake-add-buildfile-to-cache source-dir-name file)
351 file) 348 file)
352 (progn 349 (progn