emacs-pretest-bug
[Top][All Lists]
Advanced

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

RE: Add hook to end of `custom-create-buffer-internal'


From: Drew Adams
Subject: RE: Add hook to end of `custom-create-buffer-internal'
Date: Sat, 29 Jan 2005 11:45:41 -0800

        I don't want to get into the details. In any case, this
        problem is not about
        using fit-frame or about special-display buffers. It is
        about being able to
        do something (anything) after the buffer has been filled
        with its contents.

    It would not be a problem to add a hook run at the end of setting
    up a Custom buffer.

    But I want to know why that hook does not do the job that you
    wanted, because I think it should have done so.

When you say "that hook", I guess you are referring to the call to fit-frame
that I added at the end of `special-display-popup-frame' (which I mentioned
previously). There is no hook there; I had to redefine the function to call
fit-frame at the end. (I wish there were a hook there, BTW).

There is a lot in my particular setup that could be involved with the
question you asked. I started looking into it and replying to you, but I
don't have the time right now, and I don't want to waste your time on
something that might not be applicable to others.

For example, I have redefined display-buffer to call fit-frame if there is
only one window, so there might be more to it than just using fit-frame as a
hook in custom-mode. I probably end up calling fit-frame once when the
buffer is displayed by display-buffer (and it is empty) and again when the
hook is run in the code you sent (but the buffer is still empty at that
point).

I will try to look into this later, with a vanilla Emacs, if you think it is
worthwhile. I just didn't want you to think that the problem was getting
fit-frame to work here. To me, the problem is not having the custom hook
execute after the buffer is full - regardless of what the hook might do.





reply via email to

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