diff options
| author | Richard M. Stallman | 1995-04-26 11:09:31 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-04-26 11:09:31 +0000 |
| commit | adedc71d913fb8b4b18dc0292a260eac2d8c28be (patch) | |
| tree | ae41b62d33e784dfcea03bf540f3b148b6aa078d /src | |
| parent | f2ee419195f831face5b6ac90860b6ac03c85ecd (diff) | |
| download | emacs-adedc71d913fb8b4b18dc0292a260eac2d8c28be.tar.gz emacs-adedc71d913fb8b4b18dc0292a260eac2d8c28be.zip | |
(Ffile_regular_p): Use Qfile_regular_p.
(syms_of_fileio): Set up Qfile_regular_p.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fileio.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/fileio.c b/src/fileio.c index b81edaee57e..5a64a1d989e 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -224,6 +224,7 @@ Lisp_Object Qfile_readable_p; | |||
| 224 | Lisp_Object Qfile_symlink_p; | 224 | Lisp_Object Qfile_symlink_p; |
| 225 | Lisp_Object Qfile_writable_p; | 225 | Lisp_Object Qfile_writable_p; |
| 226 | Lisp_Object Qfile_directory_p; | 226 | Lisp_Object Qfile_directory_p; |
| 227 | Lisp_Object Qfile_regular_p; | ||
| 227 | Lisp_Object Qfile_accessible_directory_p; | 228 | Lisp_Object Qfile_accessible_directory_p; |
| 228 | Lisp_Object Qfile_modes; | 229 | Lisp_Object Qfile_modes; |
| 229 | Lisp_Object Qset_file_modes; | 230 | Lisp_Object Qset_file_modes; |
| @@ -2528,9 +2529,9 @@ This is the sort of file that holds an ordinary stream of data bytes.") | |||
| 2528 | 2529 | ||
| 2529 | /* If the file name has special constructs in it, | 2530 | /* If the file name has special constructs in it, |
| 2530 | call the corresponding file handler. */ | 2531 | call the corresponding file handler. */ |
| 2531 | handler = Ffind_file_name_handler (abspath, Qfile_directory_p); | 2532 | handler = Ffind_file_name_handler (abspath, Qfile_regular_p); |
| 2532 | if (!NILP (handler)) | 2533 | if (!NILP (handler)) |
| 2533 | return call2 (handler, Qfile_directory_p, abspath); | 2534 | return call2 (handler, Qfile_regular_p, abspath); |
| 2534 | 2535 | ||
| 2535 | if (stat (XSTRING (abspath)->data, &st) < 0) | 2536 | if (stat (XSTRING (abspath)->data, &st) < 0) |
| 2536 | return Qnil; | 2537 | return Qnil; |
| @@ -4230,6 +4231,7 @@ syms_of_fileio () | |||
| 4230 | Qfile_symlink_p = intern ("file-symlink-p"); | 4231 | Qfile_symlink_p = intern ("file-symlink-p"); |
| 4231 | Qfile_writable_p = intern ("file-writable-p"); | 4232 | Qfile_writable_p = intern ("file-writable-p"); |
| 4232 | Qfile_directory_p = intern ("file-directory-p"); | 4233 | Qfile_directory_p = intern ("file-directory-p"); |
| 4234 | Qfile_regular_p = intern ("file-regular-p"); | ||
| 4233 | Qfile_accessible_directory_p = intern ("file-accessible-directory-p"); | 4235 | Qfile_accessible_directory_p = intern ("file-accessible-directory-p"); |
| 4234 | Qfile_modes = intern ("file-modes"); | 4236 | Qfile_modes = intern ("file-modes"); |
| 4235 | Qset_file_modes = intern ("set-file-modes"); | 4237 | Qset_file_modes = intern ("set-file-modes"); |
| @@ -4259,6 +4261,7 @@ syms_of_fileio () | |||
| 4259 | staticpro (&Qfile_symlink_p); | 4261 | staticpro (&Qfile_symlink_p); |
| 4260 | staticpro (&Qfile_writable_p); | 4262 | staticpro (&Qfile_writable_p); |
| 4261 | staticpro (&Qfile_directory_p); | 4263 | staticpro (&Qfile_directory_p); |
| 4264 | staticpro (&Qfile_regular_p); | ||
| 4262 | staticpro (&Qfile_accessible_directory_p); | 4265 | staticpro (&Qfile_accessible_directory_p); |
| 4263 | staticpro (&Qfile_modes); | 4266 | staticpro (&Qfile_modes); |
| 4264 | staticpro (&Qset_file_modes); | 4267 | staticpro (&Qset_file_modes); |