Function: hyrolo-kill-buffer

hyrolo-kill-buffer is a byte-compiled function defined in hyrolo.el.

Signature

(hyrolo-kill-buffer &optional HYROLO-BUF)

Documentation

Kill HYROLO-BUF if unmodified and hyrolo-kill-buffers-after-use is t.

HYROLO-BUF is optional; the default is the current buffer.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hyrolo.el
(defun hyrolo-kill-buffer (&optional hyrolo-buf)
  "Kill HYROLO-BUF if unmodified and `hyrolo-kill-buffers-after-use' is t.
HYROLO-BUF is optional; the default is the current buffer."
  (or hyrolo-buf (setq hyrolo-buf (current-buffer)))
  (and hyrolo-kill-buffers-after-use (not (buffer-modified-p hyrolo-buf))
       (kill-buffer hyrolo-buf)))