Function: emacs-lock--exit-locked-buffer

emacs-lock--exit-locked-buffer is a byte-compiled function defined in emacs-lock.el.gz.

Signature

(emacs-lock--exit-locked-buffer)

Documentation

Return the first exit-locked buffer found.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lock.el.gz
(defun emacs-lock--exit-locked-buffer ()
  "Return the first exit-locked buffer found."
  (save-current-buffer
    (catch :found
      (dolist (buffer (buffer-list))
        (set-buffer buffer)
        (unless (or (emacs-lock--can-auto-unlock 'exit)
                    (memq emacs-lock-mode '(nil kill)))
          (throw :found buffer)))
      nil)))