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
8d40723d
Commit
8d40723d
authored
Feb 22, 2011
by
Paul Eggert
Browse files
* dired.c (Ffile_attributes): Simplify and avoid #ifdef.
parent
5f9d345c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
11 deletions
+6
-11
src/ChangeLog
src/ChangeLog
+4
-0
src/dired.c
src/dired.c
+2
-11
No files found.
src/ChangeLog
View file @
8d40723d
2011-02-22 Paul Eggert <eggert@cs.ucla.edu>
* dired.c (Ffile_attributes): Simplify and avoid #ifdef.
2011-02-22 Wolfgang Jenkner <wjenkner@inode.at> (tiny change)
* lread.c (openp): Correct Boolean typo in last commit.
src/dired.c
View file @
8d40723d
...
...
@@ -963,17 +963,8 @@ so last access time will always be midnight of that day. */)
if
(
lstat
(
SSDATA
(
encoded
),
&
s
)
<
0
)
return
Qnil
;
switch
(
s
.
st_mode
&
S_IFMT
)
{
default:
values
[
0
]
=
Qnil
;
break
;
case
S_IFDIR
:
values
[
0
]
=
Qt
;
break
;
#ifdef S_IFLNK
case
S_IFLNK
:
values
[
0
]
=
Ffile_symlink_p
(
filename
);
break
;
#endif
}
values
[
0
]
=
(
S_ISLNK
(
s
.
st_mode
)
?
Ffile_symlink_p
(
filename
)
:
S_ISDIR
(
s
.
st_mode
)
?
Qt
:
Qnil
);
values
[
1
]
=
make_number
(
s
.
st_nlink
);
if
(
!
(
NILP
(
id_format
)
||
EQ
(
id_format
,
Qinteger
)))
...
...
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