aboutsummaryrefslogtreecommitdiffstats
path: root/src/doc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/doc.c')
-rw-r--r--src/doc.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/doc.c b/src/doc.c
index ae807910316..c5dd8d5a786 100644
--- a/src/doc.c
+++ b/src/doc.c
@@ -7,8 +7,8 @@ This file is part of GNU Emacs.
7 7
8GNU Emacs is free software: you can redistribute it and/or modify 8GNU Emacs is free software: you can redistribute it and/or modify
9it under the terms of the GNU General Public License as published by 9it under the terms of the GNU General Public License as published by
10the Free Software Foundation, either version 3 of the License, or 10the Free Software Foundation, either version 3 of the License, or (at
11(at your option) any later version. 11your option) any later version.
12 12
13GNU Emacs is distributed in the hope that it will be useful, 13GNU Emacs is distributed in the hope that it will be useful,
14but WITHOUT ANY WARRANTY; without even the implied warranty of 14but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -138,6 +138,9 @@ get_doc_string (Lisp_Object filepos, bool unibyte, bool definition)
138#endif 138#endif
139 if (fd < 0) 139 if (fd < 0)
140 { 140 {
141 if (errno == EMFILE || errno == ENFILE)
142 report_file_error ("Read error on documentation file", file);
143
141 SAFE_FREE (); 144 SAFE_FREE ();
142 AUTO_STRING (cannot_open, "Cannot open doc string file \""); 145 AUTO_STRING (cannot_open, "Cannot open doc string file \"");
143 AUTO_STRING (quote_nl, "\"\n"); 146 AUTO_STRING (quote_nl, "\"\n");
@@ -716,7 +719,7 @@ is not on any keys.
716Each substring of the form \\=\\{MAPVAR} is replaced by a summary of 719Each substring of the form \\=\\{MAPVAR} is replaced by a summary of
717the value of MAPVAR as a keymap. This summary is similar to the one 720the value of MAPVAR as a keymap. This summary is similar to the one
718produced by `describe-bindings'. The summary ends in two newlines 721produced by `describe-bindings'. The summary ends in two newlines
719(used by the helper function `help-make-xrefs' to find the end of the 722\(used by the helper function `help-make-xrefs' to find the end of the
720summary). 723summary).
721 724
722Each substring of the form \\=\\<MAPVAR> specifies the use of MAPVAR 725Each substring of the form \\=\\<MAPVAR> specifies the use of MAPVAR