Function: byte-compile--log-warning-for-byte-compile

byte-compile--log-warning-for-byte-compile is a byte-compiled function defined in bytecomp.el.gz.

Signature

(byte-compile--log-warning-for-byte-compile STRING &optional POSITION FILL LEVEL)

Documentation

Log a message STRING in byte-compile-log-buffer.

Also log the current function and file if not already done. If FILL is non-nil, set warning-fill-prefix to four spaces. LEVEL is the warning level (:warning or :error). Do not call this function directly; use byte-compile-warn or byte-compile-report-error instead.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/bytecomp.el.gz
(defun byte-compile--log-warning-for-byte-compile (string &optional
                                                          _position
                                                          fill
                                                          level)
  "Log a message STRING in `byte-compile-log-buffer'.
Also log the current function and file if not already done.  If
FILL is non-nil, set `warning-fill-prefix' to four spaces.  LEVEL
is the warning level (`:warning' or `:error').  Do not call this
function directly; use `byte-compile-warn' or
`byte-compile-report-error' instead."
  (let ((warning-prefix-function 'byte-compile-warning-prefix)
	(warning-type-format "")
	(warning-fill-prefix (if fill "    ")))
    (display-warning 'bytecomp string level byte-compile-log-buffer)))