Function: treemacs--do-log

treemacs--do-log is a macro defined in treemacs-logging.el.

Signature

(treemacs--do-log PREFIX MSG &rest ARGS)

Documentation

Print a log statement with the given PREFIX and MSG and format ARGS.

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-logging.el
(defmacro treemacs--do-log (prefix msg &rest args)
  "Print a log statement with the given PREFIX and MSG and format ARGS."
  `(progn
     (unless (consp treemacs--saved-eldoc-display)
       (setf treemacs--saved-eldoc-display (list treemacs-eldoc-display)))
     (setf treemacs-eldoc-display nil)
     (unless treemacs--no-messages
       (message "%s %s" ,prefix (format ,msg ,@args)))
     (add-hook 'pre-command-hook #'treemacs--restore-eldoc-after-log)))