Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 1
    Another thing I didn't know I wanted until someone else wrote it. Cool. Commented Jan 7, 2015 at 15:19
  • Nice! +1 for being concise. Commented Jan 7, 2015 at 16:43
  • In terms of (minimal) performance impact - would it make a difference if the let and unless forms are swapped? Commented Jan 11, 2015 at 9:08
  • @Matthias I'm not sure whether the inversion would make sense at this point, the reason I'm binding the current buffer is because deleting the window might change the notion of the current buffer. The only way I see around it would make the code more complicated by checking whether there's only one window, if yes let-binding the current buffer, deleting and popping it, if no just displaying the current buffer in a new frame. The loss of clarity isn't worth it for the miniscule performance change IMHO. Commented Jan 11, 2015 at 13:08
  • @wasamasa sorry for not beeing precise. I had in mind (unless (one-window-p) (let ... Commented Jan 30, 2015 at 21:06