From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [mentoring] a darkroom/writeroom mode for Emacs Date: Thu, 11 Dec 2014 12:15:35 -0500 Message-ID: References: <20141203142859.24393.98673@vcs.savannah.gnu.org> <20141203215426.GA15791@thyrsus.com> <87ppbzplcw.fsf@newcastle.ac.uk> <83iohr48kr.fsf@gnu.org> <83388u4bps.fsf@gnu.org> <83y4qm2uz9.fsf@gnu.org> <83vblq2los.fsf@gnu.org> <87vblpjq24.fsf@uwakimon.sk.tsukuba.ac.jp> <83mw7119yz.fsf@gnu.org> <87sigqiaaz.fsf@gmx.us> <878uihhv5q.fsf@gmx.us> <87bnnczcjg.fsf@gmx.us> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1418318174 21293 80.91.229.3 (11 Dec 2014 17:16:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Dec 2014 17:16:14 +0000 (UTC) Cc: Rasmus , emacs-devel@gnu.org To: joaotavora@gmail.com (=?windows-1252?B?Sm/jbyBU4XZvcmE=?=) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 11 18:16:07 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xz7LQ-0006wt-85 for ged-emacs-devel@m.gmane.org; Thu, 11 Dec 2014 18:16:04 +0100 Original-Received: from localhost ([::1]:52727 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xz7LP-00020h-Ly for ged-emacs-devel@m.gmane.org; Thu, 11 Dec 2014 12:16:03 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53592) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xz7L5-00020P-VB for emacs-devel@gnu.org; Thu, 11 Dec 2014 12:15:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xz7Ky-0006JL-FQ for emacs-devel@gnu.org; Thu, 11 Dec 2014 12:15:43 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:4175) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xz7Ky-0006JB-C7 for emacs-devel@gnu.org; Thu, 11 Dec 2014 12:15:36 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjsPAOwQflRFxIoH/2dsb2JhbABbgweDYIVaxR0EAgKBJBcBAQEBAQF8hAMBAQRWIxALNBIUGA2Id9ZZAQEBAQYBAQEBHpBvB4RIBYsBkjGGUYssgXiEGSGCdwEBAQ X-IPAS-Result: AjsPAOwQflRFxIoH/2dsb2JhbABbgweDYIVaxR0EAgKBJBcBAQEBAQF8hAMBAQRWIxALNBIUGA2Id9ZZAQEBAQYBAQEBHpBvB4RIBYsBkjGGUYssgXiEGSGCdwEBAQ X-IronPort-AV: E=Sophos;i="5.07,502,1413259200"; d="scan'208";a="100205314" Original-Received: from 69-196-138-7.dsl.teksavvy.com (HELO pastel.home) ([69.196.138.7]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 11 Dec 2014 12:15:35 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 79E1F262D; Thu, 11 Dec 2014 12:15:35 -0500 (EST) In-Reply-To: (=?windows-1252?Q?=22Jo=E3o_T=E1vor?= =?windows-1252?Q?a=22's?= message of "Thu, 11 Dec 2014 11:22:37 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:179801 Archived-At: >>> (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