Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
a43e3054
Commit
a43e3054
authored
May 03, 2008
by
Eli Zaretskii
Browse files
(ls-lisp-insert-directory): Use `string-width' instead of `length'
for comparing length of user and group names.
parent
17f039f3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/ls-lisp.el
lisp/ls-lisp.el
+4
-2
No files found.
lisp/ChangeLog
View file @
a43e3054
2008-05-03 Eli Zaretskii <eliz@gnu.org>
* ls-lisp.el (ls-lisp-insert-directory): Use `string-width'
instead of `length' for comparing length of user and group names.
2008-05-03 Eric S. Raymond <esr@snark.thyrsus.com>
* vc-dispatcher.el: New file, separates out the UI and command
...
...
lisp/ls-lisp.el
View file @
a43e3054
...
...
@@ -329,9 +329,11 @@ not contain `d', so that a full listing is expected."
(
dolist
(
elt
file-alist
)
(
setq
attr
(
cdr
elt
)
fuid
(
nth
2
attr
)
uid-len
(
length
(
if
(
stringp
fuid
)
fuid
(
format
"%d"
fuid
)))
uid-len
(
if
(
stringp
fuid
)
(
string-width
fuid
)
(
length
(
format
"%d"
fuid
)))
fgid
(
nth
3
attr
)
gid-len
(
length
(
if
(
stringp
fgid
)
fgid
(
format
"%d"
fgid
)))
gid-len
(
if
(
stringp
fgid
)
(
string-width
fgid
)
(
length
(
format
"%d"
fgid
)))
file-size
(
nth
7
attr
))
(
if
(
>
uid-len
max-uid-len
)
(
setq
max-uid-len
uid-len
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment