From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bo Lin Newsgroups: gmane.emacs.devel Subject: Re: request: make-frame-visible hook Date: Sun, 22 Feb 2009 11:31:21 +0800 Message-ID: <87tz6nqh9y.fsf@gmail.com> References: <877i3ky1wn.fsf@kfs-lx.rd.rdm> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1235273509 16860 80.91.229.12 (22 Feb 2009 03:31:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 22 Feb 2009 03:31:49 +0000 (UTC) Cc: emacs-devel@gnu.org, "Kim F. Storm" To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 22 04:33:04 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Lb55T-0006hl-GD for ged-emacs-devel@m.gmane.org; Sun, 22 Feb 2009 04:33:03 +0100 Original-Received: from localhost ([127.0.0.1]:38079 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lb548-0001dv-Sr for ged-emacs-devel@m.gmane.org; Sat, 21 Feb 2009 22:31:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lb542-0001dZ-Qh for emacs-devel@gnu.org; Sat, 21 Feb 2009 22:31:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lb540-0001dA-7e for emacs-devel@gnu.org; Sat, 21 Feb 2009 22:31:33 -0500 Original-Received: from [199.232.76.173] (port=38257 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lb53z-0001d7-Vo for emacs-devel@gnu.org; Sat, 21 Feb 2009 22:31:32 -0500 Original-Received: from wf-out-1314.google.com ([209.85.200.171]:15918) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lb53x-0000Y1-PE; Sat, 21 Feb 2009 22:31:30 -0500 Original-Received: by wf-out-1314.google.com with SMTP id 28so1617618wfc.24 for ; Sat, 21 Feb 2009 19:31:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:to:cc:subject :references:date:in-reply-to:message-id:user-agent:mime-version :content-type; bh=O+RS/M26rl9OQ9OMoxX4x1hspmu0fiDgu4QTWjjq+zU=; b=d57GK8r/wlQW5f00XkGrE2dLex+6C7lqf+QLAlBbetS1M8NyzYw7VdalySzIWdaHUH Nb8be/LFhyc8iXkql6dIXqup7SwGFAHx2IVJ+zzG1qz27MePAgE4xTVvzdor7DL4yudB fFLRe+nu2EXgHEvZ5OsmBIpTjWLeQxH0vgROY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=gc4Uu0DNGWDx4uReYGeMDa4UG3uvBai8//ffw4t8OlJPla1We6ctM5yYzzvaGL94Hn UrNg/m5nD8QVgTqD198nUPR8eTgdLBTwF/bl6K2EW1xLBR6zaly1aJWkZTOULksJX7/X m5NaDlRX9VD/MMHR/6qrCxLbfih1iTO2vnDiY= Original-Received: by 10.142.169.4 with SMTP id r4mr1243806wfe.262.1235273488137; Sat, 21 Feb 2009 19:31:28 -0800 (PST) Original-Received: from unicorn ([210.73.1.55]) by mx.google.com with ESMTPS id 22sm6022396wfg.23.2009.02.21.19.31.26 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 21 Feb 2009 19:31:27 -0800 (PST) Original-Received: from localhost.lan ([127.0.0.1] helo=unicorn) by unicorn with esmtp (Exim 4.69) (envelope-from ) id 1Lb53q-0001f6-2y; Sun, 22 Feb 2009 11:31:22 +0800 In-Reply-To: (Richard M. Stallman's message of "Sat, 21 Feb 2009 12:41:11 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.90 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:109284 Archived-At: Richard M Stallman writes: > > before-window-buffer-change-hook > after-window-buffer-change-hook > focus-window-hook > unfocus-window-hook > enter-buffer-hook > exit-buffer-hook > > What packages would want these, and what are they trying to do? winner-mode (included in Emacs) uses a `post-command-hook' to save old window configurations due to a lack of `before-window-configuration-change-hook'. It tries to automatically keep track of window configuration changes so the user can "go back" to a previous window configuration without having to have manually "saved" the old configuration beforehand. It is analogous to how web browsers keep a history of pages visited in a browsing session. In order to do that it needs to be notified when the window configuration is about to change but before the change has actually occurred, so `window-configuration-change-hook' is not sufficient.