all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* `q' in `C-h C-h' does not act like `View-quit'
@ 2006-09-15 23:26 Drew Adams
  2006-09-18 14:58 ` Richard Stallman
  0 siblings, 1 reply; 7+ messages in thread
From: Drew Adams @ 2006-09-15 23:26 UTC (permalink / raw)


I use one buffer per frame, by default, so *Help* appears in its own frame.

I have `view-remove-frame-by-deleting' = t, so when I hit `q', the *Help*
frame is deleted; gone. Just what I want: a pop-up window (frame) that
disappears upon `q'.

However, `C-h C-h' acts differently, and I apparently have no such control
in that case (let me know if I'm missing something). `q' in *Help* is bound
to `help-quit', not to `View-quit', after `C-h C-h'.

Result? The frame is always iconified by `q' after `C-h C-h'. On MS Windows,
this means that it zooms across the dislay into the task bar - very
annoying. `C-g' does the same thing as `q' after `C-h C-h', for some reason.
It is apparently not bound at that time to `keyboard-quit'.

[Worse: in my setup, I capture iconification, to position the frame on the
desktop as a thumbnail-frame "icon", instead of using task-bar
iconification. I don't want a tiny icon of the *Help* frame.  Worse: after
this "iconification", `q' is once bound again to `View-quit', but it then
does _nothing_, presumably because the window config has changed, so
`View-quit' gets confused. Just a guess - I've given up trying to understand
the intricacies of `View-quit'...]

Can't `C-h C-h' just use View mode normally?

If not, is there some easy way to make `q' delete the frame after `C-h C-h',
as it does normally for *Help* with `view-remove-frame-by-deleting' = t?

I suppose I can rebind `q' to `delete-frame' (or to my `kill-buffer' version
that deletes the window, or frame if one-window-p), but it seems like this
should be a general problem: Why doesn't `q' do the same thing at all times
in *Help*? Why isn't it always bound to `View-quit'?

[GNU Emacs 22.0.50.1 (i386-msvc-nt5.1.2600) of 2006-07-19 on BOS-CTHEWLAP2 X
server distributor `Microsoft Corp.', version 5.1.2600 configured using
`configure --with-msvc (12.00)']

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: `q' in `C-h C-h' does not act like `View-quit'
  2006-09-15 23:26 `q' in `C-h C-h' does not act like `View-quit' Drew Adams
@ 2006-09-18 14:58 ` Richard Stallman
  2006-09-18 15:25   ` Drew Adams
  0 siblings, 1 reply; 7+ messages in thread
From: Richard Stallman @ 2006-09-18 14:58 UTC (permalink / raw)
  Cc: emacs-devel

Does this fix it?

*** help.el	16 Sep 2006 10:15:32 -0400	1.318
--- help.el	18 Sep 2006 10:32:14 -0400	
***************
*** 106,111 ****
--- 106,114 ----
  (defun help-quit ()
    "Just exit from the Help command's command loop."
    (interactive)
+   ;; Normally Help mode enables View mode.
+   ;; If the user has not overridden that, exit a la View mode.
+   (if view-mode (View-quit))
    nil)
  
  (defvar help-return-method nil

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: `q' in `C-h C-h' does not act like `View-quit'
  2006-09-18 14:58 ` Richard Stallman
@ 2006-09-18 15:25   ` Drew Adams
  2006-09-18 23:39     ` Richard Stallman
  0 siblings, 1 reply; 7+ messages in thread
From: Drew Adams @ 2006-09-18 15:25 UTC (permalink / raw)
  Cc: emacs-devel

    Does this fix it?

No, unfortunately.

emacs -Q
(setq pop-up-frames t)
C-h C-h
q

The *Help* frame is iconified.

Note, too, that if you select (put the cursor in) the *Help* frame and then
use C-h q or M-x help-quit, nothing happens. Likewise, if you use C-h q or
M-x help-quit from another buffer.


    *** help.el	16 Sep 2006 10:15:32 -0400	1.318
    --- help.el	18 Sep 2006 10:32:14 -0400
    ***************
    *** 106,111 ****
    --- 106,114 ----
      (defun help-quit ()
        "Just exit from the Help command's command loop."
        (interactive)
    +   ;; Normally Help mode enables View mode.
    +   ;; If the user has not overridden that, exit a la View mode.
    +   (if view-mode (View-quit))
        nil)

      (defvar help-return-method nil

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: `q' in `C-h C-h' does not act like `View-quit'
  2006-09-18 15:25   ` Drew Adams
@ 2006-09-18 23:39     ` Richard Stallman
  2006-09-18 23:52       ` Drew Adams
  0 siblings, 1 reply; 7+ messages in thread
From: Richard Stallman @ 2006-09-18 23:39 UTC (permalink / raw)
  Cc: emacs-devel

    No, unfortunately.

    emacs -Q
    (setq pop-up-frames t)
    C-h C-h
    q

    The *Help* frame is iconified.

I verified that it runs View-quit.  View-quit seems to iconify
the frame.

I am not sure if that is wrong.

    Note, too, that if you select (put the cursor in) the *Help* frame and then
    use C-h q or M-x help-quit, nothing happens. Likewise, if you use C-h q or
    M-x help-quit from another buffer.

Is it still in View mode when you do this?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: `q' in `C-h C-h' does not act like `View-quit'
  2006-09-18 23:39     ` Richard Stallman
@ 2006-09-18 23:52       ` Drew Adams
  2006-09-21  1:59         ` Richard Stallman
  0 siblings, 1 reply; 7+ messages in thread
From: Drew Adams @ 2006-09-18 23:52 UTC (permalink / raw)


        No, unfortunately.

        emacs -Q
        (setq pop-up-frames t)
        C-h C-h
        q

        The *Help* frame is iconified.

    I verified that it runs View-quit.  View-quit seems to iconify
    the frame.

    I am not sure if that is wrong.

I think it's wrong if `view-remove-frame-by-deleting' = t is not respected.

        Note, too, that if you select (put the cursor in) the
        *Help* frame and then use C-h q or M-x help-quit,
        nothing happens. Likewise, if you use C-h q or
        M-x help-quit from another buffer.

    Is it still in View mode when you do this?

Yes, I believe so.

At other times, I've also seen View-mode get in such a state (in *Help*)
that it did nothing when called. I usually have
`view-remove-frame-by-deleting' = t and `pop-up-frames' = t; I don't know if
that's relevant, but I suspect so.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: `q' in `C-h C-h' does not act like `View-quit'
  2006-09-18 23:52       ` Drew Adams
@ 2006-09-21  1:59         ` Richard Stallman
  2006-09-21 15:18           ` Drew Adams
  0 siblings, 1 reply; 7+ messages in thread
From: Richard Stallman @ 2006-09-21  1:59 UTC (permalink / raw)
  Cc: emacs-devel

    I think it's wrong if `view-remove-frame-by-deleting' = t is not respected.

In the test case you provided, `view-remove-frame-by-deleting' is nil
(the default).

Do you want to provide another test case?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: `q' in `C-h C-h' does not act like `View-quit'
  2006-09-21  1:59         ` Richard Stallman
@ 2006-09-21 15:18           ` Drew Adams
  0 siblings, 0 replies; 7+ messages in thread
From: Drew Adams @ 2006-09-21 15:18 UTC (permalink / raw)


        I think it's wrong if `view-remove-frame-by-deleting' = t
        is not respected.

    In the test case you provided, `view-remove-frame-by-deleting' is nil
    (the default). Do you want to provide another test case?

I mentioned in my first email that I have `view-remove-frame-by-deleting' =
t. I neglected to mention it again when I repeated the specific recipe,
sorry. Le voici:

    emacs -Q
    (setq pop-up-frames t)
    (setq view-remove-frame-by-deleting t)
    C-h C-h
    q

The *Help* frame is iconified; it is not deleted.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-09-21 15:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-15 23:26 `q' in `C-h C-h' does not act like `View-quit' Drew Adams
2006-09-18 14:58 ` Richard Stallman
2006-09-18 15:25   ` Drew Adams
2006-09-18 23:39     ` Richard Stallman
2006-09-18 23:52       ` Drew Adams
2006-09-21  1:59         ` Richard Stallman
2006-09-21 15:18           ` 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.