Function: dired-remove-entry

dired-remove-entry is a byte-compiled function defined in dired.el.gz.

Signature

(dired-remove-entry FILE)

Documentation

Remove entry FILE in the current dired buffer.

Note this doesn't delete FILE in the file system. See dired-delete-file in case you wish that.

Source Code

;; Defined in /usr/src/emacs/lisp/dired.el.gz
;; Delete the entry for FILE from
(defun dired-remove-entry (file)
  "Remove entry FILE in the current dired buffer.
Note this doesn't delete FILE in the file system.
See `dired-delete-file' in case you wish that."
  (save-excursion
    (and (dired-goto-file file)
	 (let ((inhibit-read-only t))
	   (delete-region (progn (beginning-of-line) (point))
			  (line-beginning-position 2))))))