Function: Buffer-menu-bury

Buffer-menu-bury is an interactive and byte-compiled function defined in buff-menu.el.gz.

Signature

(Buffer-menu-bury)

Documentation

Bury the buffer listed on this line.

View in manual

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/buff-menu.el.gz
(defun Buffer-menu-bury ()
  "Bury the buffer listed on this line."
  (interactive nil Buffer-menu-mode)
  (let ((buffer (tabulated-list-get-id)))
    (cond ((null buffer))
	  ((buffer-live-p buffer)
	   (bury-buffer buffer)
	   (save-excursion
	     (let ((elt (tabulated-list-delete-entry)))
	       (goto-char (point-max))
	       (apply 'tabulated-list-print-entry elt)))
	   (message "Buffer buried."))
	  (t
	   (tabulated-list-delete-entry)
	   (message "Buffer is dead; removing from list.")))))