I'd like to recenter a buffer, called *Lense*, where I've inserted some text. I wished to make it the current buffer by (set-buffer "*Lense*"), then (recenter 0)). By the following code segments:
(save-excursion (set-buffer "*Lense*")
(recenter 0))
However, it seems that the above code would only recenter the buffer which is the current buffer, and (set-buffer "*Lense*") has no effect to make the current buffer to be *Lense*.
Please help me to figure out the right way to recenter the named buffer *Lense*.
Thanks,
Yu