|
From: | Stefan Monnier |
Subject: | Re: get-live-buffer primitive |
Date: | Thu, 13 Sep 2012 08:58:36 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) |
> + (let ((buffer (get-live-buffer buffer-or-name))) > + (or buffer (error "No such live buffer %s" buffer-or-name)) > + buffer)) Why not use `get-buffer' plus a buffer-live-p test on the result? Or add a `live' optional argument to `get-buffer' to check for liveness. Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |