Function: dired-insert-subdir-doinsert

dired-insert-subdir-doinsert is a byte-compiled function defined in dired-aux.el.gz.

Signature

(dired-insert-subdir-doinsert DIRNAME SWITCHES)

Source Code

;; Defined in /usr/src/emacs/lisp/dired-aux.el.gz
(defun dired-insert-subdir-doinsert (dirname switches)
  ;; Insert ls output after point.
  ;; Return the boundary of the inserted text (as list of BEG and END).
  (save-excursion
    (let ((begin (point)))
      (let ((dired-actual-switches
	     (or switches
		 dired-subdir-switches
		 (string-replace "R" "" dired-actual-switches))))
	(if (equal dirname (car (car (last dired-subdir-alist))))
	    ;; If doing the top level directory of the buffer,
	    ;; redo it as specified in dired-directory.
	    (dired-readin-insert)
	  (dired-insert-directory dirname dired-actual-switches nil nil t)))
      (list begin (point)))))