Function: bazel--save-build-file
bazel--save-build-file is a natively compiled function defined in
bazel.el.
Signature
(bazel--save-build-file ROOT REPOSITORY PACKAGE)
Documentation
Save the buffer visiting the BUILD file for PACKAGE.
ROOT is the repository root directory of the current repository, and REPOSITORY is the repository containing PACKAGE.
Source Code
;; Defined in /nix/store/ws8pkszjvcad1rgzqw6wja7qxacylfhn-emacs-packages-deps/share/emacs/site-lisp/elpa/bazel-20261002.1510/bazel.el
(defun bazel--save-build-file (root repository package)
"Save the buffer visiting the BUILD file for PACKAGE.
ROOT is the repository root directory of the current repository,
and REPOSITORY is the repository containing PACKAGE."
(declare (ftype (function (string string string) null)))
(cl-check-type root string)
(cl-check-type repository (or null string))
(cl-check-type package string)
(when-let* ((external-root (bazel--external-repository repository root))
(build-file (bazel--locate-build-file
(expand-file-name package external-root))))
(save-some-buffers nil (lambda ()
(when-let* ((file-name buffer-file-truename))
(file-equal-p file-name build-file)))))
nil)