Commit graph

34 commits

Author SHA1 Message Date
Eli Zaretskii a5e0e1a8ab * ls-lisp.el (ls-lisp-insert-directory): Print an explicit message
if one of the files specified cannot be accessed by
file-attributes.  Do not strip any leading directories from the
file names, to behave more like `ls' does.

* dired.el (dired-get-filename): Handle absolute file names.
(dired-readin-insert): If argument is a cons, don't print
"wildcard" on the ``total'' line.
1999-12-16 09:43:32 +00:00
Geoff Voelker 261c60553a (ls-lisp-delete-matching): List argument is now alist
of filenames and attributes.
(ls-lisp-insert-directory): Use directory-files-and-attributes
for speed.
1999-08-06 20:41:07 +00:00
Andrew Innes 452e47d73c (ls-lisp-format-time): If timestamp is invalid,
return the string "Unk  0  0000" so at least it appears to be a
valid timestamp to `dired-move-to-filename-regexp'.
1999-06-16 19:54:45 +00:00
Andrew Innes f8a1023408 (ls-lisp-format-time): Trap errors from
format-time-string, and return a suitable string to indicate the
timestamp was invalid.
1999-05-02 09:40:45 +00:00
Eli Zaretskii e4a225a97d (ls-lisp-format): Under -s, print the size in blocks with %4.0f, in case
they have a *really* huge file.
1999-03-04 11:34:47 +00:00
Eli Zaretskii df6efcb120 (ls-lisp-insert-directory): Protect the sum total of
the file sizes from overflowing.
(ls-lisp-format): If file size is a float, use %8.0f to print it.
1999-03-04 11:30:27 +00:00
Eli Zaretskii 6c18d2f5c5 (ls-lisp-insert-directory): Call fceiling to round
the size in blocks, since it can be a float.
(ls-lisp-format): Likewise
1999-02-16 08:29:22 +00:00
Geoff Voelker 0cb0ba6c86 (ls-lisp-use-insert-directory-program): New variable.
(ls-lisp-insert-directory): Renamed from insert-directory.
(insert-directory): New function.
1998-10-14 03:43:20 +00:00
Richard M. Stallman 11d86ba056 Update copyright notice. 1998-05-20 00:56:03 +00:00
Geoff Voelker 97b927b3fa (ls-lisp-dired-ignore-case): New variable.
(ls-lisp-handle-switches): Obey ls-lisp-dired-ignore-case.
1998-04-17 05:24:48 +00:00
Richard M. Stallman 0acdb86326 Comment change. 1997-05-27 19:51:23 +00:00
Richard M. Stallman 1fff30af6c (insert-directory): Use same value of `now' for all files.
(ls-lisp-format): New argument NOW.  Arguments are no longer optional.
(ls-lisp-format-time): New argument NOW.  Use same method as `ls'
to decide whether to show time-of-day or year.
1996-09-03 23:25:46 +00:00
Richard M. Stallman bf686e5fcd (ls-lisp-support-shell-wildcards): Add autoload cookie. 1996-01-18 04:47:45 +00:00
Erik Naggum b578f267af Update FSF's address. 1996-01-14 07:34:30 +00:00
Richard M. Stallman 3045b16302 (ls-lisp-support-shell-wildcards): New variable.
(insert-directory): Convert the filename wildcard to an equivalent
Emacs regexp, when `ls-lisp-support-shell-wildcards' is non-nil.
Handle file patterns like "/foo*/" as if it were "/foo*", like the
shell would.  Print zero total for files whose total size is
exactly zero (in particular, for no files at all).  Say "No match"
when no files match the given wildcard.
(ls-lisp-format): Make directory listing format more like POSIX ls.
1995-12-28 23:36:50 +00:00
Karl Heuer 7c938215cd Update GPL to version 2. 1995-06-15 20:42:24 +00:00
Richard M. Stallman 3cfb886e3d (insert-directory): Gracefully handle the case
where a file disappears between when it is listed in the directory
and when the attributes are requested.
1994-08-01 07:15:34 +00:00
Karl Heuer 8f1204db34 Update copyright. 1994-05-03 23:47:06 +00:00
Karl Heuer 6eaebaa278 Pass operation to find-file-name-handler. 1994-04-22 23:59:24 +00:00
Richard M. Stallman 7b4a3608d3 (ls-lisp-format): Bad format for uid and gid fixed. 1994-01-06 04:34:43 +00:00
Richard M. Stallman a12ff9f32b (insert-directory): Doc fix.
(ls-lisp-format): Provide user name when known.
On ms-dos, provide a name for the group, to be prettier.
1993-06-29 17:08:09 +00:00
Jim Blandy cc2f3b6482 * ls-lisp.el (insert-directory): If no handler, convert SWITCHES
from a string to a list of characters.
1993-06-17 02:53:14 +00:00
Eric S. Raymond 76550a57f9 Add standard library headers. 1993-03-17 17:17:05 +00:00
Jim Blandy 5dbfdacd20 The find-file-name-handler function in ../src/fileio.c is now
callable from lisp; use it instead of writing out its code.
	* dired-aux.el (dired-compress-file): Just that.
	* dired.el (dired-uncache): Just that.
	* files.el (file-local-copy, file-truename,
	file-name-sans-versions, make-directory, save-buffers-kill-emacs):
	Just that.
	* ls-lisp.el (insert-directory): Just that.
1992-12-12 15:21:45 +00:00
Richard M. Stallman 9dce08b608 Most functions renamed to start with ls-lisp.
(insert-directory): Renamed from dired-ls.
1992-10-05 04:54:07 +00:00
Sebastian Kremer a1e2f9109a (dired-lisp-ls): var `short' was erronously unbound. 1992-10-04 10:36:03 +00:00
Sebastian Kremer e54241c543 (dired-lisp-handle-switches): understands `-t' now. 1992-05-01 17:50:56 +00:00
Sebastian Kremer d9a0f717d7 Doc fixes. 1992-04-30 10:37:15 +00:00
Sebastian Kremer 738eb4e77c (dired-lisp-format-time): in Emacs 19 we can format times. 1992-04-30 10:29:53 +00:00
Sebastian Kremer d6d472d5a3 (dired-lisp-format): format can pad after all. 1991-09-27 10:03:30 +00:00
Sebastian Kremer 6467926fa9 (dired-lisp-ls): handles A a S r i s switches now.
(dired-lisp-delete-matching): new
	(dired-lisp-handle-switches): new
1991-09-26 16:03:09 +00:00
Sebastian Kremer 4d3a2554a7 Removed dired-ls-function.
IT STILL CRASHES EMACS SOMETIMES!
1991-02-03 17:06:50 +00:00
Sebastian Kremer 7d4a41dcd6 Added copyleft and warnings. 1991-02-02 13:30:43 +00:00
Sebastian Kremer d88c0e9363 Initial revision 1991-02-02 13:10:10 +00:00