using buffer-live-p (#256).

This commit is contained in:
Kazu Yamamoto 2014-05-14 06:45:31 +09:00
parent 94c4ae205d
commit 2d8faed072

View File

@ -209,7 +209,7 @@
(defmacro ghc-with-current-buffer (buf &rest body)
;; (declare (indent 1))
`(if (get-buffer ,buf)
`(if (buffer-live-p ,buf)
(with-current-buffer ,buf
,@body)))