Skip to content

Commit f69110d

Browse files
phstsam-mccall
authored andcommitted
Check for a ‘buffer’ type instead of ‘buffer-live’.
Reviewed By: sammccall Differential Revision: https://reviews.llvm.org/D148918
1 parent 4a27ddd commit f69110d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

clang-tools-extra/clang-include-fixer/tool/clang-include-fixer.el

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,9 @@ STDIN, STDOUT, and STDERR are buffers for the standard streams;
168168
only STDERR may be nil. CALLBACK is called in the case of
169169
success; it is called with a single argument, STDOUT. On
170170
failure, a buffer containing the error output is displayed."
171-
(cl-check-type stdin buffer-live)
172-
(cl-check-type stdout buffer-live)
173-
(cl-check-type stderr (or null buffer-live))
171+
(cl-check-type stdin buffer)
172+
(cl-check-type stdout buffer)
173+
(cl-check-type stderr (or null buffer))
174174
(cl-check-type callback function)
175175
(lambda (process event)
176176
(cl-check-type process process)
@@ -192,7 +192,7 @@ failure, a buffer containing the error output is displayed."
192192

193193
(defun clang-include-fixer--replace-buffer (stdout)
194194
"Replace current buffer by content of STDOUT."
195-
(cl-check-type stdout buffer-live)
195+
(cl-check-type stdout buffer)
196196
(barf-if-buffer-read-only)
197197
(cond ((fboundp 'replace-buffer-contents) (replace-buffer-contents stdout))
198198
((clang-include-fixer--insert-line stdout (current-buffer)))
@@ -207,8 +207,8 @@ equal, do nothing and return non-nil. If FROM contains a single
207207
line missing from TO, insert that line into TO so that the buffer
208208
contents are equal and return non-nil. Otherwise, do nothing and
209209
return nil. Buffer restrictions are ignored."
210-
(cl-check-type from buffer-live)
211-
(cl-check-type to buffer-live)
210+
(cl-check-type from buffer)
211+
(cl-check-type to buffer)
212212
(with-current-buffer from
213213
(save-excursion
214214
(save-restriction

0 commit comments

Comments
 (0)