Subject: bug#18836: 25.0.50; `insert-directory' barfs on nonexistent file, but not for `ls-lisp-insert-directory'

From: Eli Zaretskii <[email-masked]>
Date: Sat, 30 Apr 2016 18:39:59 +0300

> From: Lars Ingebrigtsen <[email-masked]>
> Date: Sat, 30 Apr 2016 16:56:19 +0200
> Cc: [email-masked]
> 
> > Would it be possible to make vanilla `insert-directory' more tolerant,
> > i.e., make it act like `ls-lisp-insert-directory', in this respect?
> 
> I have no opinion on that, but: What on Earth is that function (and all
> its adjacent functions) doing in files.el?

Where else would you like them to be?

> (insert-directory "." "-l")
> =>
> drwxrwxr-x 22 larsi larsi 4096 april 30 16:49 .
> 
> This doesn't seem like a very ... useful general function.

Then how come dired.el calls it?