Mercurial > emacs
comparison src/dired.c @ 1509:9675ae1d95c2
* dired.c (find_file_handler): Declare this extern.
(Ffile_attributes): Use NILP, not == Qnil.
* dired.c (Ffile_attributes): Doc fix.
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Sat, 31 Oct 1992 05:17:46 +0000 |
parents | 4e4ade70cf7e |
children | 0e105bd23f44 |
comparison
equal
deleted
inserted
replaced
1508:768d4c10c2bf | 1509:9675ae1d95c2 |
---|---|
64 In that case, use ordinary stat instead. */ | 64 In that case, use ordinary stat instead. */ |
65 | 65 |
66 #ifndef S_IFLNK | 66 #ifndef S_IFLNK |
67 #define lstat stat | 67 #define lstat stat |
68 #endif | 68 #endif |
69 | |
70 extern Lisp_Object find_file_handler (); | |
69 | 71 |
70 Lisp_Object Vcompletion_ignored_extensions; | 72 Lisp_Object Vcompletion_ignored_extensions; |
71 | 73 |
72 Lisp_Object Qcompletion_ignore_case; | 74 Lisp_Object Qcompletion_ignore_case; |
73 | 75 |
470 8. File modes, as a string of ten letters or dashes as in ls -l.\n\ | 472 8. File modes, as a string of ten letters or dashes as in ls -l.\n\ |
471 9. t iff file's gid would change if file were deleted and recreated.\n\ | 473 9. t iff file's gid would change if file were deleted and recreated.\n\ |
472 10. inode number.\n\ | 474 10. inode number.\n\ |
473 11. Device number.\n\ | 475 11. Device number.\n\ |
474 \n\ | 476 \n\ |
475 If file does not exists, returns nil.") | 477 If file does not exist, returns nil.") |
476 (filename) | 478 (filename) |
477 Lisp_Object filename; | 479 Lisp_Object filename; |
478 { | 480 { |
479 Lisp_Object values[12]; | 481 Lisp_Object values[12]; |
480 Lisp_Object dirname; | 482 Lisp_Object dirname; |
518 #ifdef BSD4_3 /* Gross kludge to avoid lack of "#if defined(...)" in VMS */ | 520 #ifdef BSD4_3 /* Gross kludge to avoid lack of "#if defined(...)" in VMS */ |
519 #define BSD4_2 /* A new meaning to the term `backwards compatability' */ | 521 #define BSD4_2 /* A new meaning to the term `backwards compatability' */ |
520 #endif | 522 #endif |
521 #ifdef BSD4_2 /* file gid will be dir gid */ | 523 #ifdef BSD4_2 /* file gid will be dir gid */ |
522 dirname = Ffile_name_directory (filename); | 524 dirname = Ffile_name_directory (filename); |
523 if (dirname != Qnil && stat (XSTRING (dirname)->data, &sdir) == 0) | 525 if (! NILP (dirname) && stat (XSTRING (dirname)->data, &sdir) == 0) |
524 values[9] = (sdir.st_gid != s.st_gid) ? Qt : Qnil; | 526 values[9] = (sdir.st_gid != s.st_gid) ? Qt : Qnil; |
525 else /* if we can't tell, assume worst */ | 527 else /* if we can't tell, assume worst */ |
526 values[9] = Qt; | 528 values[9] = Qt; |
527 #else /* file gid will be egid */ | 529 #else /* file gid will be egid */ |
528 values[9] = (s.st_gid != getegid ()) ? Qt : Qnil; | 530 values[9] = (s.st_gid != getegid ()) ? Qt : Qnil; |