[AC] Various merges from GNU Emacs to `insert-directory'