Function: eglot--when-live-buffer

eglot--when-live-buffer is a macro defined in eglot.el.gz.

Signature

(eglot--when-live-buffer BUF &rest BODY)

Documentation

Check BUF live, then do BODY in it.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/eglot.el.gz
(cl-defmacro eglot--when-live-buffer (buf &rest body)
  "Check BUF live, then do BODY in it." (declare (indent 1) (debug t))
  (let ((b (gensym)))
    `(let ((,b ,buf)) (if (buffer-live-p ,b) (with-current-buffer ,b ,@body)))))