emacs-devel
[Top][All Lists]
Advanced

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

Re: request: make-frame-visible hook


From: Stefan Monnier
Subject: Re: request: make-frame-visible hook
Date: Thu, 19 Feb 2009 12:13:19 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.90 (gnu/linux)

> Yes, that would certainly by a solution. However, we can get the same
> problem for any binding in special-event-map. Currently it contains 3
> entries from dframe, two ignored entries and the two more so surely will
> get into this again, which is why I suggest doing a generic solution,
> not just one particular hook for make-frame-visible.

The dframe entries are the problem, I think: special-event-map is
usually only used for internal purposes.  It's not designed for
packages, nor for users.

I'm not sure what dframe does with those things: AFAICT it binds them to
functions that introduce just the kind of hook you asked for (but oddly
using buffer-local hooks rather than frame-local hooks).  Of the three
such hooks it installs, only the delete-frame one is used (by
speedbar).  And it turns out that speedbar could/should use
delete-frame-functions instead anyway.

So I see two solutions to your problem:
1- declare dframe's code as a bug.
2- use (require 'dframe) and then use dframe-make-frame-visible-function.


        Stefan




reply via email to

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