diff options
Diffstat (limited to 'src/doc.c')
| -rw-r--r-- | src/doc.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -136,7 +136,7 @@ get_doc_string (Lisp_Object filepos, bool unibyte, bool definition) | |||
| 136 | } | 136 | } |
| 137 | if (fd < 0) | 137 | if (fd < 0) |
| 138 | { | 138 | { |
| 139 | if (errno == EMFILE || errno == ENFILE) | 139 | if (errno != ENOENT && errno != ENOTDIR) |
| 140 | report_file_error ("Read error on documentation file", file); | 140 | report_file_error ("Read error on documentation file", file); |
| 141 | 141 | ||
| 142 | SAFE_FREE (); | 142 | SAFE_FREE (); |