1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-18 10:16:51 +00:00
Commit Graph

60 Commits

Author SHA1 Message Date
Thien-Thi Nguyen
aaef169dc6 Update years in copyright notice; nfc. 2006-02-06 15:23:23 +00:00
Lars Hansen
5eba3394e0 (ls-lisp-parse-symlink): Delete.
(ls-lisp-classify, ls-lisp-format): Delete call to ls-lisp-parse-symlink.
(ls-lisp-handle-switches): Handle symlinks to directories as directories
when ls-lisp-dirs-first in non-nil.
2005-11-22 19:25:50 +00:00
Eli Zaretskii
e0d473407c (ls-lisp-format-file-size): Format file size with 9 digits, not 8, to avoid
misalignment for files larger than 100MB.
2005-11-19 11:39:36 +00:00
Thien-Thi Nguyen
0d30b33766 Update years in copyright notice; nfc. 2005-08-06 22:13:43 +00:00
Lute Kamstra
086add1519 Update FSF's address. 2005-07-04 23:32:44 +00:00
Juanma Barranquero
71bf3033a0 (ls-lisp-classify): Fix spelling in docstrings. 2005-06-16 16:08:03 +00:00
Lars Hansen
b3df990b2d (ls-lisp-format): Mark file names with poperty dired-filename. 2004-09-25 06:56:03 +00:00
Lars Hansen
80ca57997d (ls-lisp-insert-directory): Add parameter 'string in
calls to directory-files-and-attributes and file-attributes.
(ls-lisp-format): Remove system dependent handling of user and
group id's.
2003-12-27 18:12:39 +00:00
Richard M. Stallman
94e7236870 (ls-lisp-insert-directory): Arg is now wildcard-regexp.
Don't check for foo*/ wildcard form here.
(insert-directory): Recognize foo*/ as a wildcard.
Separate wildcard-regexp variable from the arg, wildcard.
2003-10-20 23:43:54 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
John Paul Wallington
d4939c66c2 (insert-directory): Remove --dired switch when
`ls-lisp-use-insert-directory-program' is nil.
2003-05-14 16:20:51 +00:00
Juanma Barranquero
a3723f134b (ls-lisp-format-file-size): New function to implement "-h" switch.
(ls-lisp-format): Use it.
2003-05-01 11:16:21 +00:00
Markus Rost
7391612312 (ls-lisp-use-insert-directory-program): Make default
value system dependent.
(ls-lisp-support-shell-wildcards): Add autoload cookie.
2003-01-20 05:45:05 +00:00
Richard M. Stallman
44a9ca8b7e (original-insert-directory): Make this a variable,
don't set its function definition.
(insert-directory): Use funcall to call that function.
2002-12-21 20:20:47 +00:00
Pavel Janík
1e05661f4a Fix URL. 2002-12-11 06:53:24 +00:00
Markus Rost
c391c46412 (defgroup ls-lisp): Remove autoload cookie. 2002-11-12 00:09:44 +00:00
Markus Rost
401c196806 (ls-lisp-format-time-list): Fix type and provide :tag's. 2002-09-17 00:43:53 +00:00
Richard M. Stallman
2686cdc0d0 (ls-lisp-format-time-list): New variable.
(ls-lisp-format-time): Use it.
2002-09-09 19:31:40 +00:00
Eli Zaretskii
7ad0c1c321 (insert-directory): Modify the "total" line wording, in accordance with
files.el's insert-directory.
2001-12-30 17:08:39 +00:00
Eli Zaretskii
7f1b5edca1 (insert-directory): Insert the amount of free disk
space, like files.el's insert-directory does.
2001-12-21 15:22:06 +00:00
Pavel Janík
f0529b5b1a Doc fix. 2001-12-20 19:01:00 +00:00
Paul Eggert
d81a647cd1 (ls-lisp-time-to-seconds): New function.
(ls-lisp-format-time): Emulate GNU fileutils 4.1.1 ls, whose time stamps
always line up by default.  Also, it uses a slightly different window
to determine whether files are "recent".
2001-11-06 01:56:02 +00:00
Pavel Janík
5553563924 Some fixes to follow coding conventions in files maintained by FSF. 2001-07-15 16:15:35 +00:00
Eli Zaretskii
9010db4cd3 (ls-lisp-format): Leave a blank before "root". 2001-04-12 15:16:28 +00:00
Dave Love
eff409bad3 (ls-lisp) <defgroup>: Add :version. 2001-01-02 23:39:40 +00:00
Eli Zaretskii
3f51f5a958 From Francis J. Wright <F.J.Wright@maths.qmw.ac.uk>:
Better support for the Mac and MS-Windows.
(ls-lisp): New defgroup.
(ls-lisp-emulation, ls-lisp-ignore-case, ls-lisp-dirs-first)
(ls-lisp-verbosity, ls-lisp-use-insert-directory-program)
(ls-lisp-support-shell-wildcards): New defcustoms.
(ls-lisp-parse-symlink): New function.
(insert-directory): Code to convert switches to a list and set up
the wildcard argument copied from ls-lisp-insert-directory.
(ls-lisp-insert-directory): New argument TIME-INDEX.  Add support
for -C and -R switches.
(ls-lisp-column-format): New function.
(ls-lisp-delete-matching, ls-lisp-handle-switches)
(ls-lisp-format-time): Add doc strings.
(ls-lisp-handle-switches): Handle -U, -S, -X, and -F switches.
Support ls-lisp-dirs-first.
(ls-lisp-classify, ls-lisp-extension): New functions.
(ls-lisp-format): Optionally support emulation of symlinks.
Support -i, -s, and -G switches.
2000-12-27 17:07:40 +00:00
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