Function: flymake-proc--init-find-buildfile-dir

flymake-proc--init-find-buildfile-dir is a byte-compiled function defined in flymake-proc.el.gz.

Signature

(flymake-proc--init-find-buildfile-dir SOURCE-FILE-NAME BUILDFILE-NAME)

Documentation

Find buildfile, store its dir in buffer data and return its dir, if found.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/flymake-proc.el.gz
(defun flymake-proc--init-find-buildfile-dir (source-file-name buildfile-name)
  "Find buildfile, store its dir in buffer data and return its dir, if found."
  (let* ((buildfile-dir
          (flymake-proc--find-buildfile buildfile-name
                                        (file-name-directory source-file-name))))
    (if buildfile-dir
        (setq flymake-proc--base-dir buildfile-dir)
      (flymake-proc--panic
       "NOMK" (format "No buildfile (%s) found for %s"
                      buildfile-name source-file-name)))))