|
From: | Stefan Monnier |
Subject: | Re: How to get a window Lisp_Object from struct window *w? |
Date: | Mon, 17 Sep 2018 22:19:33 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> I was wondering if there is a more efficient way to derive window from > a struct window *w? I'm not sure I understand but if you want the inverse of `XWINDOW`, then `make_lisp_ptr` will do the trick. The difference between a `Lisp_Object window` and a `struct window *w` is just the tag bits which are very cheap&easy to add/remove. Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |