emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Zoom: a window management minor mode -- best practices and questions


From: Andrea Cardaci
Subject: Re: Zoom: a window management minor mode -- best practices and questions
Date: Thu, 10 May 2018 10:34:36 +0000

> This should work although I suppose (cons track-mouse (window-list))
> would do as well.

It doesn't because keeping just the window object doesn't retain the
visited buffer at the time:

     (setq x (selected-window))
     (switch-to-buffer "foo")
     (setq y (selected-window))
     (equal x y) ; t

So formatting is IMHO a nice workaround to storing also the buffer name.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]