Function: ibuffer-mark-dissociated-buffers

ibuffer-mark-dissociated-buffers is an autoloaded, interactive and byte-compiled function defined in ibuf-ext.el.gz.

Signature

(ibuffer-mark-dissociated-buffers)

Documentation

Mark all buffers whose associated file does not exist.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/ibuf-ext.el.gz
;;;###autoload
(defun ibuffer-mark-dissociated-buffers ()
  "Mark all buffers whose associated file does not exist."
  (interactive)
  (ibuffer-mark-on-buffer
   (lambda (buf)
     (with-current-buffer buf
       (or
        (and buffer-file-name
             (not (file-exists-p buffer-file-name)))
        (and (eq major-mode 'dired-mode)
             (boundp 'dired-directory)
             (stringp dired-directory)
             (not (file-exists-p (file-name-directory dired-directory)))))))))