[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: quoted buffer object
From: |
Johan Bockgård |
Subject: |
Re: quoted buffer object |
Date: |
Thu, 23 Aug 2007 15:16:08 +0200 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) |
Thien-Thi Nguyen <address@hidden> writes:
> in vc.el:999, i see:
>
> (with-current-buffer ',(current-buffer)
>
> weird. here are some experiments in *scratch*:
>
> (bufferp (current-buffer))
> t
>
> (bufferp (car `(,(current-buffer))))
> t
>
> (bufferp (car `(',(current-buffer))))
> nil
>
> i conclude the code as it stands does not DTRT.
But 'x *evaluates* to x, so the quote is harmless (though superfluous,
since buffer objects are self-evaluating).
`(lambda ()
(with-current-buffer ',(current-buffer) ...))
=> (lambda nil (with-current-buffer '#<buffer foo> ...))
which will DTRT.
--
Johan Bockgård