unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Emacs-Devel'" <emacs-devel@gnu.org>
Subject: RE: view-mode exit hook?
Date: Mon, 4 Aug 2008 08:03:10 -0700	[thread overview]
Message-ID: <000001c8f643$35f59db0$0200a8c0@us.oracle.com> (raw)
In-Reply-To: <000c01c883aa$27cceec0$0600a8c0@us.oracle.com>

Resending.

> From: Drew Adams Sent: Tuesday, March 11, 2008 12:00 PM
> 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?









  reply	other threads:[~2008-08-04 15:03 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-11 19:00 FW: view-mode exit hook? Drew Adams
2008-08-04 15:03 ` Drew Adams [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-12-18 19:03 Drew Adams
2007-12-18 21:52 ` martin rudalics
2007-12-18 22:47   ` Drew Adams
2007-12-19  6:39     ` martin rudalics
2007-12-19  7:24       ` Drew Adams
2008-01-06  0:33         ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000001c8f643$35f59db0$0200a8c0@us.oracle.com' \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).