Function: bazel--add-left-margin

bazel--add-left-margin is a natively compiled function defined in bazel.el.

Signature

(bazel--add-left-margin STRING OVERLAY)

Documentation

Add STRING to the left margin of the current buffer.

Use OVERLAY to attach margin properties. Don’t alter the display of the main buffer text. See Info node (elisp) Display Margins.

Source Code

;; Defined in /nix/store/ws8pkszjvcad1rgzqw6wja7qxacylfhn-emacs-packages-deps/share/emacs/site-lisp/elpa/bazel-20261002.1510/bazel.el
(defun bazel--add-left-margin (string overlay)
  "Add STRING to the left margin of the current buffer.
Use OVERLAY to attach margin properties.  Don’t alter the display
of the main buffer text.
See Info node ‘(elisp) Display Margins’."
  (declare (ftype (function (string overlay) null)))
  (cl-check-type string string)
  (cl-check-type overlay overlay)
  (overlay-put overlay 'before-string
               (propertize "unused"  ; must be nonempty
                           ;; Don’t inherit face from surrounding text.
                           'face 'default
                           'display `((margin left-margin) ,string)))
  nil)