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, 3 insertions, 6 deletions
diff --git a/src/doc.c b/src/doc.c
index 4264ed50640..075154e94bc 100644
--- a/src/doc.c
+++ b/src/doc.c
@@ -86,7 +86,7 @@ get_doc_string (Lisp_Object filepos, bool unibyte, bool definition)
86 int offset; 86 int offset;
87 EMACS_INT position; 87 EMACS_INT position;
88 Lisp_Object file, tem, pos; 88 Lisp_Object file, tem, pos;
89 ptrdiff_t count; 89 ptrdiff_t count = SPECPDL_INDEX ();
90 USE_SAFE_ALLOCA; 90 USE_SAFE_ALLOCA;
91 91
92 if (INTEGERP (filepos)) 92 if (INTEGERP (filepos))
@@ -148,7 +148,6 @@ get_doc_string (Lisp_Object filepos, bool unibyte, bool definition)
148 return concat3 (cannot_open, file, quote_nl); 148 return concat3 (cannot_open, file, quote_nl);
149 } 149 }
150 } 150 }
151 count = SPECPDL_INDEX ();
152 record_unwind_protect_int (close_file_unwind, fd); 151 record_unwind_protect_int (close_file_unwind, fd);
153 152
154 /* Seek only to beginning of disk block. */ 153 /* Seek only to beginning of disk block. */
@@ -204,8 +203,7 @@ get_doc_string (Lisp_Object filepos, bool unibyte, bool definition)
204 } 203 }
205 p += nread; 204 p += nread;
206 } 205 }
207 unbind_to (count, Qnil); 206 SAFE_FREE_UNBIND_TO (count, Qnil);
208 SAFE_FREE ();
209 207
210 /* Sanity checking. */ 208 /* Sanity checking. */
211 if (CONSP (filepos)) 209 if (CONSP (filepos))
@@ -659,8 +657,7 @@ the same file name is found in the `doc-directory'. */)
659 memmove (buf, end, filled); 657 memmove (buf, end, filled);
660 } 658 }
661 659
662 SAFE_FREE (); 660 return SAFE_FREE_UNBIND_TO (count, Qnil);
663 return unbind_to (count, Qnil);
664} 661}
665 662
666/* Return true if text quoting style should default to quote `like this'. */ 663/* Return true if text quoting style should default to quote `like this'. */