unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
Subject: RE: quitting help buffer
Date: Fri, 9 Sep 2005 09:05:35 -0700	[thread overview]
Message-ID: <DNEMKBNJBGPAOPIJOOICOEHACMAA.drew.adams@oracle.com> (raw)
In-Reply-To: <E1EDiL7-0006k9-ET@fencepost.gnu.org>

        I don't want `q' to iconify the frame, slip it in my back
        pocket, mail it to
        me, or do any of the other strange and wonderful things I
        see advertised in
        the doc for `view-mode'. How can I get `q' to do something
        as simple as kill
        the buffer and delete its window (frame)?

    When I try it, it deletes the frame but does not kill the buffer.
    Isn't that good enough?  Is it crucial for some reason to kill
    the *Help* buffer?

No, there is no need to kill the buffer - deleting the frame is what I'm
really after, here. Sorry if I confused the two (I often end up killing the
buffer to delete the frame, because my `C-x k' does that).

But that is not the behavior I get. For me, it iconifies the frame. And, in
some (rarer) cases, it leaves the frame displayed (no change): `q' does
nothing at all in those cases.

I suppose it depends on how (in what context) the *Help* buffer was
displayed. (It could also have something to do with my platform?) I don't
have the time now, myself, to track down the different contexts.

This is part of what I meant by our trying to be too sophisticated wrt
figuring out how view-mode was entered and how to most intelligently exit
it. It's too complicated for me to follow, and, in particular, it doesn't
DTRT when pop-up-frames = t.

The latter is a general problem, which I've mentioned before: things are
worked out well enough for the case where pop-up-frames = nil, but not for
`t'. In this case, due to the myriad fancy treatments of view-mode quitting,
it's hard to fathom what to do to make it work right for pop-up-frames = t.
And then there are dedicated and non-dedicated windows to worry about...

Bottom line: I'd like `q' to delete a one-window frame (dedicated window or
not). How to do that in all of the various view-mode cases, I know not.

(More generally, I don't see why a command should worry so much about how it
was called, and try to figure out what to do next, based on the calling
context - that seems the wrong approach, to me.)

  reply	other threads:[~2005-09-09 16:05 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-09  3:56 quitting help buffer Drew Adams
2005-09-09 12:50 ` Richard M. Stallman
2005-09-09 16:05   ` Drew Adams [this message]
2005-09-10  8:14     ` Richard M. Stallman
2005-12-01  0:44       ` view mode: `q' does not delete frame Drew Adams
2005-12-01  1:16         ` Drew Adams
2005-12-01 20:42         ` Eli Zaretskii
2005-12-02  1:57           ` Drew Adams
2005-12-03  9:55             ` Eli Zaretskii
2005-12-03 15:08               ` Stefan Monnier
2005-12-03 15:37                 ` Drew Adams
2005-12-03 21:35                   ` Stefan Monnier
2005-12-03 22:46                     ` Drew Adams
2005-12-02 18:21           ` Richard M. Stallman
2005-12-03 12:08           ` Eli Zaretskii

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=DNEMKBNJBGPAOPIJOOICOEHACMAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.com \
    /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).