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-locale | Locale to be used for formatting file times. |
ls-lisp-UCA-like-collation | Non-nil means force ls-lisp use a collation order compatible with UCA. |
ls-lisp-dirs-first | Non-nil causes ls-lisp to sort directories first in any ordering. |
ls-lisp-emulation | Platform to emulate: GNU (default), macOS, MS-Windows, UNIX. |
ls-lisp-filesize-b-fmt | Format to display file sizes in blocks (for the -s switch). |
ls-lisp-filesize-d-fmt | Format to display integer file sizes. |
ls-lisp-filesize-f-fmt | Format to display float file sizes. |
ls-lisp-format-time-list | List of ‘format-time-string’ specs to display file time stamps. |
ls-lisp-gid-d-fmt | Format to display integer GIDs. |
ls-lisp-gid-s-fmt | Format to display user group names. |
ls-lisp-ignore-case | Non-nil causes ls-lisp alphabetic sorting to ignore case. |
ls-lisp-support-shell-wildcards | Non-nil means ls-lisp treats file patterns as shell wildcards. |
ls-lisp-uid-d-fmt | Format to display integer UIDs. |
ls-lisp-uid-s-fmt | Format to display user names. |
ls-lisp-use-insert-directory-program | Non-nil causes ls-lisp to revert back to using ‘insert-directory-program’. |
ls-lisp-use-localized-time-format | Non-nil means to always use ‘ls-lisp-format-time-list’ for time stamps. |
ls-lisp-use-string-collate | Non-nil causes ls-lisp to sort files in locale-dependent collation order. |
ls-lisp-verbosity | A 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) |