File: ls-lisp.el.html

OVERVIEW ==========================================================

This file advises the function insert-directory to implement it directly from Emacs Lisp, without running ls in a subprocess. This is useful if you don't have ls installed (ie, on MS Windows).

This function can use regexps instead of shell wildcards. If you enter regexps remember to double each $ sign. For example, to include files *.el, enter .*\.el$$, resulting in the regexp
.*\.el$.

RESTRICTIONS ======================================================

* A few obscure ls switches are still ignored: see the docstring of
insert-directory.

TO DO =============================================================

Complete handling of F switch (if/when possible).

FJW: May be able to sort much faster by consing the sort key onto the front of each list element, sorting and then stripping the key off again!

Defined variables (18)

ls-lisp--time-localeLocale to be used for formatting file times.
ls-lisp-UCA-like-collationNon-nil means force ls-lisp use a collation order compatible with UCA.
ls-lisp-dirs-firstNon-nil causes ls-lisp to sort directories first in any ordering.
ls-lisp-emulationPlatform to emulate: GNU (default), macOS, MS-Windows, UNIX.
ls-lisp-filesize-b-fmtFormat to display file sizes in blocks (for the -s switch).
ls-lisp-filesize-d-fmtFormat to display integer file sizes.
ls-lisp-filesize-f-fmtFormat to display float file sizes.
ls-lisp-format-time-listList of ‘format-time-string’ specs to display file time stamps.
ls-lisp-gid-d-fmtFormat to display integer GIDs.
ls-lisp-gid-s-fmtFormat to display user group names.
ls-lisp-ignore-caseNon-nil causes ls-lisp alphabetic sorting to ignore case.
ls-lisp-support-shell-wildcardsNon-nil means ls-lisp treats file patterns as shell wildcards.
ls-lisp-uid-d-fmtFormat to display integer UIDs.
ls-lisp-uid-s-fmtFormat to display user names.
ls-lisp-use-insert-directory-programNon-nil causes ls-lisp to revert back to using ‘insert-directory-program’.
ls-lisp-use-localized-time-formatNon-nil means to always use ‘ls-lisp-format-time-list’ for time stamps.
ls-lisp-use-string-collateNon-nil causes ls-lisp to sort files in locale-dependent collation order.
ls-lisp-verbosityA list of optional file attributes that ls-lisp should display.

Defined functions (17)

ls-lisp--insert-directory(FILE SWITCHES WILDCARD FULL-DIRECTORY-P)
ls-lisp--sanitize-switches(SWITCHES)
ls-lisp-classify(FILEDATA)
ls-lisp-classify-file(FILENAME FATTR)
ls-lisp-column-format(FILE-ALIST)
ls-lisp-delete-matching(REGEXP LIST)
ls-lisp-extension(FILENAME)
ls-lisp-format(FILE-NAME FILE-ATTR FILE-SIZE SWITCHES TIME-INDEX)
ls-lisp-format-file-size(FILE-SIZE HUMAN-READABLE)
ls-lisp-format-time(FILE-ATTR TIME-INDEX)
ls-lisp-handle-switches(FILE-ALIST SWITCHES)
ls-lisp-insert-directory(FILE SWITCHES TIME-INDEX WILDCARD-REGEXP FULL-DIRECTORY-P)
ls-lisp-sanitize(FILE-ALIST)
ls-lisp-set-options()
ls-lisp-string-lessp(S1 S2)
ls-lisp-time-index(SWITCHES)
ls-lisp-version-lessp(S1 S2)

Defined faces (0)