Function: projection--log
projection--log is a macro defined in projection-core-log.el.
Signature
(projection--log LEVEL MSG &rest ARGS)
Documentation
Log, at level LEVEL, the message MSG formatted with ARGS.
LEVEL is passed to display-warning, which is used to display
the warning. If this form is included in a file,
the generated warning contains an indication of the file that
generated it.
Source Code
;; Defined in /nix/store/j6y921qbdmdqxjnd43iibapbig3p4hai-emacs-packages-deps/share/emacs/site-lisp/elpa/projection-20260614.1822/projection-core-log.el
(defmacro projection--log (level msg &rest args)
"Log, at level LEVEL, the message MSG formatted with ARGS.
LEVEL is passed to `display-warning', which is used to display
the warning. If this form is included in a file,
the generated warning contains an indication of the file that
generated it."
;; Adapted from `flymake-log'.
(let* ((file (if (fboundp 'macroexp-file-name)
(macroexp-file-name)
(and (not load-file-name)
(bound-and-true-p byte-compile-current-file))))
(sublog (if (stringp file)
(intern
(file-name-nondirectory
(file-name-sans-extension file))))))
`(projection--log-1 ,level ',sublog ,msg ,@args)))