|
From: | Stefan Monnier |
Subject: | Re: [mentoring] a darkroom/writeroom mode for Emacs |
Date: | Thu, 11 Dec 2014 12:15:35 -0500 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
>>> (walk-windows #'(lambda (w) >>> (when (eq (window-buffer w) (current-buffer)) >>> 'all-frames))) >> Can't you use with-current-buffer? The walk-windows seems excessive. > Keep in mind I need to affect all windows that display that buffer. There > might be several. [ Haven't really read all the message, but this just jumped at me. ] Why not get-buffer-window-list? Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |