[Top][All Lists]
[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.
- RE: Add hook to end of `custom-create-buffer-internal', (continued)
- RE: Add hook to end of `custom-create-buffer-internal', Drew Adams, 2005/01/26
- Re: Add hook to end of `custom-create-buffer-internal', Richard Stallman, 2005/01/27
- RE: Add hook to end of `custom-create-buffer-internal', Drew Adams, 2005/01/27
- Re: Add hook to end of `custom-create-buffer-internal', Richard Stallman, 2005/01/28
- Re: Add hook to end of `custom-create-buffer-internal', Stefan Monnier, 2005/01/28
- RE: Add hook to end of `custom-create-buffer-internal', Drew Adams, 2005/01/28
- Re: Add hook to end of `custom-create-buffer-internal', Richard Stallman, 2005/01/28
- Re: Add hook to end of `custom-create-buffer-internal', Stefan Monnier, 2005/01/29
- RE: Add hook to end of `custom-create-buffer-internal', Drew Adams, 2005/01/28
- Re: Add hook to end of `custom-create-buffer-internal', Richard Stallman, 2005/01/28
- RE: Add hook to end of `custom-create-buffer-internal',
Drew Adams <=
- Re: Add hook to end of `custom-create-buffer-internal', Richard Stallman, 2005/01/30
FW: Add hook to end of `custom-create-buffer-internal', Drew Adams, 2005/01/30