Glenn Morris
eb3fa2cfcf
Switch to recommended form of GPLv3 permissions notice.
2008-05-06 08:06:51 +00:00
Eli Zaretskii
a43e305413
(ls-lisp-insert-directory): Use string-width' instead of
length'
...
for comparing length of user and group names.
2008-05-03 10:28:39 +00:00
Eli Zaretskii
df3d23ee9b
(ls-lisp-uid-d-fmt, ls-lisp-uid-s-fmt, ls-lisp-gid-d-fmt)
...
(ls-lisp-gid-s-fmt, ls-lisp-filesize-d-fmt, ls-lisp-filesize-f-fmt): New
defvars.
(ls-lisp-insert-directory): Dynamically compute format specifiers for
displaying UID, GID, and file size, and store them in the above variables.
(ls-lisp-format): Use ls-lisp-filesize-f-fmt, ls-lisp-uid-s-fmt,
ls-lisp-uid-d-fmt, ls-lisp-gid-s-fmt, and ls-lisp-gid-d-fmt instead of
constant format strings.
(ls-lisp-format-file-size): Use ls-lisp-filesize-f-fmt and
ls-lisp-filesize-d-fmt instead of constant format strings.
2008-04-25 10:36:27 +00:00
Eli Zaretskii
0e5016a647
(ls-lisp-format): Fix last change.
2008-04-25 09:03:19 +00:00
Stefan Monnier
cbee283dd7
Fix up comment convention on the arch-tag lines.
2008-04-10 14:10:46 +00:00
Eli Zaretskii
c902c8a781
(ls-lisp-format): Support inodes that are 2- or 3-member cons cells.
2008-04-05 15:03:42 +00:00
Eli Zaretskii
de4db6f103
(ls-lisp-insert-directory): If -n switch is used, invoke
...
directory-files-and-attributes with last argument `integer' instead
of `string'.
(insert-directory): Add -n to the list of supported switches mentioned in
the doc string.
2008-01-26 13:15:27 +00:00
Miles Bader
59ce725a3b
Merge from emacs--rel--22
...
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
2008-01-08 20:46:54 +00:00
Glenn Morris
409cc4a3ea
Add 2008 to copyright years.
2008-01-07 02:45:14 +00:00
Dan Nicolaescu
f3041af143
* configure.in: Remove references to unsupported systems.
...
* notes/copyright:
* MAINTAINERS: Remove references to files that have been removed.
* os.texi (System Environment): Remove references to OSes that are
not supported anymore.
* PROBLEMS:
* MACHINES: Remove references to systems not supported anymore.
* makefile.w32-in:
* Makefile.in: Remove references to Xenix.
* gnus.el (gnus-use-long-file-name): Remove reference to xenix.
* obsolete/x-apollo.el: Remove file for unsupported system.
* term/x-win.el (vendor-specific-keysyms): Remove reference to
Apollo.
* progmodes/gud.el (gud-dgux-p): Remove.
(dbx): Remove reference to dgux.
* progmodes/ps-mode.el (ps-mode-print-function):
* ps-print.el (ps-lp-system):
* paths.el (rmail-spool-directory):
* ls-lisp.el (ls-lisp-emulation):
* lpr.el (lpr-lp-system):
* dired.el (dired-chown-program): Remove references to dgux.
* m/7300.h:
* m/acorn.h:
* m/alliant-2800.h:
* m/alliant.h:
* m/alliant1.h:
* m/alliant4.h:
* m/altos.h:
* m/amdahl.h:
* m/apollo.h:
* m/att3b.h:
* m/aviion-intel.h:
* m/aviion.h:
* m/celerity.h:
* m/clipper.h:
* m/cnvrgnt.h:
* m/convex.h:
* m/cydra5.h:
* m/delta88k.h:
* m/dpx2.h:
* m/dual.h:
* m/elxsi.h:
* m/f301.h:
* m/gould-np1.h:
* m/gould.h:
* m/i860.h:
* m/ibmps2-aix.h:
* m/ibmrt-aix.h:
* m/ibmrt.h:
* m/irist.h:
* m/is386.h:
* m/isi-ov.h:
* m/mega68.h:
* m/mg1.h:
* m/news-r6.h:
* m/news-risc.h:
* m/news.h:
* m/nh3000.h:
* m/nh4000.h:
* m/ns16000.h:
* m/ns32000.h:
* m/nu.h:
* m/orion.h:
* m/orion105.h:
* m/paragon.h:
* m/pfa50.h:
* m/plexus.h:
* m/pyramid.h:
* m/pyrmips.h:
* m/sh3el.h:
* m/sps7.h:
* m/sr2k.h:
* m/stride.h:
* m/sun1.h:
* m/sun2.h:
* m/sun3-68881.h:
* m/sun3-fpa.h:
* m/sun3-soft.h:
* m/sun3.h:
* m/sun386.h:
* m/symmetry.h:
* m/tad68k.h:
* m/tahoe.h:
* m/targon31.h:
* m/tek4300.h:
* m/tekxd88.h:
* m/tower32.h:
* m/tower32v3.h:
* m/ustation.h:
* m/wicat.h:
* m/xps100.h:
* s/cxux.h:
* s/cxux7.h:
* s/dgux.h:
* s/dgux4.h:
* s/dgux5-4-3.h:
* s/dgux5-4r2.h:
* s/esix.h:
* s/esix5r4.h:
* s/hiuxmpp.h:
* s/hiuxwe2.h:
* s/iris3-5.h:
* s/iris3-6.h:
* s/isc2-2.h:
* s/isc3-0.h:
* s/isc4-0.h:
* s/isc4-1.h:
* s/newsos5.h:
* s/newsos6.h:
* s/osf1.h:
* s/osf5-0.h:
* s/riscix1-1.h:
* s/riscix12.h:
* s/sco4.h:
* s/sco5.h:
* s/sunos4-0.h:
* s/sunos4-1.h:
* s/sunos413.h:
* s/sunos4shr.h:
* s/umax.h:
* s/unipl5-2.h:
* s/xenix.h:
* cxux-crt0.s:
* unexapollo.c:
* unexconvex.c:
* unexenix.c:
* unexsni.c: Remove files for systems no longer supported.
* m/intel386.h: Remove references to unsupported systems.
* w32.c (get_emacs_configuration): Remove reference to i860.
* sysdep.c: Remove dead code.
2008-01-06 00:56:56 +00:00
Glenn Morris
b4aa60262c
Switch license to GPLv3 or later.
2007-07-25 04:50:21 +00:00
Eli Zaretskii
43bed6688c
(insert-directory): If an invalid regexp error is thrown, try using FILE
...
as a literal file name, not a wildcard.
Check for FILE as an existing file, not just a directory.
2007-06-23 11:24:56 +00:00
Eli Zaretskii
9b40e204ec
(insert-directory): Don't treat FILE as a wildcard if FILE exists as
...
a directory.
2007-06-23 09:52:06 +00:00
Juanma Barranquero
3aeb19ad36
(ls-lisp-verbosity): Doc fix.
2007-05-16 11:24:16 +00:00
Eli Zaretskii
ea88e7752e
(ls-lisp-use-localized-time-format): New defcustom.
...
(ls-lisp-format-time-list): Doc fix. Mention ls-lisp-use-localized-time-format.
(ls-lisp-format-time): Use ls-lisp-format-time-list if
ls-lisp-use-localized-time-format is non-nil, even if a valid locale is defined.
2007-01-27 13:21:19 +00:00
Glenn Morris
d7a0267c8d
Add 2007 to copyright years.
2007-01-21 03:53:13 +00:00
Glenn Morris
c90f275771
Update copyright years.
2006-12-05 07:06:08 +00:00
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