From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John J Foerch Newsgroups: gmane.emacs.devel Subject: Re: request: make-frame-visible hook Date: Thu, 19 Feb 2009 19:01:11 -0500 Message-ID: <87mycit1rs.fsf@earthlink.net> References: <87zlgjis69.fsf@earthlink.net> <87vdr7i5cc.fsf@earthlink.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1235087893 18136 80.91.229.12 (19 Feb 2009 23:58:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Feb 2009 23:58:13 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 20 00:59:29 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 1LaInf-0007Dn-Uj for ged-emacs-devel@m.gmane.org; Fri, 20 Feb 2009 00:59:28 +0100 Original-Received: from localhost ([127.0.0.1]:51797 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LaImL-00047f-Tu for ged-emacs-devel@m.gmane.org; Thu, 19 Feb 2009 18:58:05 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LaIln-000445-Nv for emacs-devel@gnu.org; Thu, 19 Feb 2009 18:57:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LaIll-00043o-L7 for emacs-devel@gnu.org; Thu, 19 Feb 2009 18:57:30 -0500 Original-Received: from [199.232.76.173] (port=55748 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LaIll-00043h-Cm for emacs-devel@gnu.org; Thu, 19 Feb 2009 18:57:29 -0500 Original-Received: from main.gmane.org ([80.91.229.2]:48184 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LaIlk-00068h-Sj for emacs-devel@gnu.org; Thu, 19 Feb 2009 18:57:29 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LaIlf-0002UW-Uk for emacs-devel@gnu.org; Thu, 19 Feb 2009 23:57:23 +0000 Original-Received: from dialup-4.158.60.80.dial1.chicago1.level3.net ([4.158.60.80]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 Feb 2009 23:57:23 +0000 Original-Received: from jjfoerch by dialup-4.158.60.80.dial1.chicago1.level3.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 Feb 2009 23:57:23 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 31 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: dialup-4.158.60.80.dial1.chicago1.level3.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:UF7Lt09uF8UKrtFxn8yGdBgB3xI= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:109235 Archived-At: Lynbech Christian writes: > I do not know if you caught this, just want to make sure that you do, > but as Stefan hinted you can fix the problem yourself. Just make sure > dframe is loaded, overwrite the entry with your own function which runs > a hook where you then stores anything that was in special-event-map > before you put your own little function there. > > Alternatively you can consider using post-command-hook, this is run all > the time and this particular problem should not pose a performance > problem. Thank you for the ideas. I am still hoping that at some point in the future emacs will have a general solution to the problem, because letting users and modes use special-event-map without conflicts and hacks seems simple, logical, and useful. (Why does special-event-map exist if we can't use it safely?) I can implement make-frame-visible-hook in my .emacs, and require dframe, etc, and I will do that if it is the only way, but unfortunately this prevents me from submitting my improvement to tracking-mode or erc-track for others to use. As a side-note, post-command-hook will not help in this situation because tracking-mode already uses window-configuration-change-hook, but the need to call an arbitrary command to force an update is precisely what I am trying to avoid. Thank you. -- John Foerch