* FW: view-mode exit hook?
@ 2008-02-10 18:57 Drew Adams
0 siblings, 0 replies; 2+ messages in thread
From: Drew Adams @ 2008-02-10 18:57 UTC (permalink / raw
To: Emacs-Devel
Resending.
Any arguments against adding such a hook? Argument for adding it is below.
----------
From: Drew Adams Sent: Saturday, January 05, 2008 4:33 PM
> > > Does it make sense for Emacs to have a `view-mode-exit-hook'?
> >
> > You can always think of `view-exit-action' as doing that. For example,
> > there's no harm setting `view-exit-action' to a function that restores
> > a frame configuration saved earlier. The question remains _which_ frame
> > configuration you want to restore.
>
> `view-exit-action' is not currently a no-op, AFAICT. So adding the feature
> of fitting the frame would not simply be a matter of setting or binding
> `view-exit-action' to a `fit-frame' function. It would instead
> mean _adding_ frame fitting to whatever `view-exit-action' might
> already be doing. And that "whatever" is different, IIUC, depending
> on how view-mode is exited, and even, I think, depending on how
> view-mode was entered. (Again, I don't master that code, nor do I want
> to.)
>
> `view-exit-action' is not simply a hook; it is more complex (and perhaps
> more fragile). As I said, I can imagine tacking `fit-frame' onto whatever
> `view-exit-action' does already, but I'd sooner advise
> `view-mode-exit'. And neither of those prospects looks particularly
> appealing (clean) to me.
>
> From what I've heard so far, there seems to be no recommended way
> to handle this kind of thing. In that case, I ask again, shouldn't
> there be a `view-mode-exit-hook'?
How about such a hook?
^ permalink raw reply [flat|nested] 2+ messages in thread
* FW: view-mode exit hook?
@ 2008-03-11 19:00 Drew Adams
0 siblings, 0 replies; 2+ messages in thread
From: Drew Adams @ 2008-03-11 19:00 UTC (permalink / raw
To: 'Emacs-Devel'
Resending.
Any arguments against adding such a hook? Argument for adding it is below.
----------
From: Drew Adams Sent: Saturday, January 05, 2008 4:33 PM
> > > Does it make sense for Emacs to have a `view-mode-exit-hook'?
> >
> > You can always think of `view-exit-action' as doing that. For example,
> > there's no harm setting `view-exit-action' to a function that restores
> > a frame configuration saved earlier. The question remains _which_ frame
> > configuration you want to restore.
>
> `view-exit-action' is not currently a no-op, AFAICT. So adding the feature
> of fitting the frame would not simply be a matter of setting or binding
> `view-exit-action' to a `fit-frame' function. It would instead
> mean _adding_ frame fitting to whatever `view-exit-action' might
> already be doing. And that "whatever" is different, IIUC, depending
> on how view-mode is exited, and even, I think, depending on how
> view-mode was entered. (Again, I don't master that code, nor do I want
> to.)
>
> `view-exit-action' is not simply a hook; it is more complex (and perhaps
> more fragile). As I said, I can imagine tacking `fit-frame' onto whatever
> `view-exit-action' does already, but I'd sooner advise
> `view-mode-exit'. And neither of those prospects looks particularly
> appealing (clean) to me.
>
> From what I've heard so far, there seems to be no recommended way
> to handle this kind of thing. In that case, I ask again, shouldn't
> there be a `view-mode-exit-hook'?
How about such a hook?
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-03-11 19:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-10 18:57 FW: view-mode exit hook? Drew Adams
-- strict thread matches above, loose matches on Subject: below --
2008-03-11 19:00 Drew Adams
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.