all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Drew Adams <drew.adams@oracle.com>
Cc: Bug-Gnu-Emacs <bug-gnu-emacs@gnu.org>
Subject: Re: q doesn't always quit *Help*
Date: Thu, 27 Sep 2007 23:21:45 +0200	[thread overview]
Message-ID: <46FC1EE9.7040700@gmx.at> (raw)
In-Reply-To: <DNEMKBNJBGPAOPIJOOICIECPEAAA.drew.adams@oracle.com>

 > Thanks for working on this. I won't be able to spend a lot of time on this,
 > but I'll try to help a bit. I guess you're saying that I should start with
 > the source files that are in the distributed Emacs 22.1, and not with the
 > source files in cvs - is that right?

The patch is against the latest CVS Emacs 22 aka EMACS_22_BASE.

 > I assumed so, and I took a look wrt the bug I just reported. The problem is
 > that the code seems complex, and there are apparently lots of different ways
 > to interact with it. It's possible that a fix might take care of what I
 > reported but either not fix other problems or even introduce new problems. I
 > won't have the time to deal with all of that, but I will check whether your
 > fix takes care of what I reported.

I haven't done anything on this for a month so _any_ feedback is mostly
welcome.

 > [BTW, the fact that a fix to something like this needs to touch eight (!)
 > Lisp files is aa suggestion that the View code is too complex and poorly
 > designed, IMO. It's not a sure indication of poor design, but it is a hint.
 > A (superficially simple) UI fix such as this should ideally be a local fix.]

The View code is not bad (most of my changes regard doc-strings only).
There are two basic problems: (1) The `with-output-to-temp-buffer' /
`print-help-return-message' combination relies on the latter to
_anticipate_ what `display-buffer' is going to do in the current
frame+window configuration.  This is hardly feasible.  (2) The
`view-exit-action' hack is a pain because it overrides the carefully
laid out design of View mode.

 > I patched the Emacs 22.1 sources I have (from the distrib), but faces.el
 > does not seem right.

Ignore it for the moment, all but help.el, help-mode.el, and view.el are
here to show how this should be implemented.  One of them is sufficient
to demonstrate the behavior.

 > The version in the distrib already has some of the
 > changes your patch makes. For instance, it has no `face-normalize-spec', so
 > that cannot be removed, and the later change that involves this has
 > apparently already been applied in the distrib version. So the patch for
 > faces.el confuses me. I applied the part of it that made sense. Similarly,
 > there was a bit of view.el that had apparently already been changed before
 > the distrib.
 >
 > [BTW, is there some way to apply a patch other than by hand (copy+paste)?
 > I've been doing it by hand, and it takes quite a while (and is error
 > prone).]

You don't use `ediff-patch-buffer/-file' e.g. from the Tools / Apply
Patch menu?

 > I tried with the patched files: emacs -Q, then loaded each patched file. The
 > bug is fixed. Thx.
 >
 > However, in my own Emacs environment, where I have pop-up-frames = t and
 > where *Help* is a special-display frame, `q' iconifies the *Help* frame,
 > which is awful. I want it to simply call `quit-window' (which in fact
 > deletes the frame in my case).

`quit-window' deletes the frame iff it's a minibuffer-window - which
should not hold here - or it's a dedicated window - do you set that?
But I agree that the behavior you describe is logical and desirable (as
long as you never display anything else in that window).  Hence, I have
to invent something here.  Did you try this with `help-window-select'
customized?





       reply	other threads:[~2007-09-27 21:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <DNEMKBNJBGPAOPIJOOICIECPEAAA.drew.adams@oracle.com>
2007-09-27 21:21 ` martin rudalics [this message]
2007-09-27 21:36   ` q doesn't always quit *Help* Drew Adams
2007-09-28  6:35     ` martin rudalics
2007-09-28 14:26       ` Drew Adams
2007-09-28 18:17         ` martin rudalics
2007-09-28 19:17           ` Drew Adams
2007-09-29  9:05             ` martin rudalics
2007-09-26 18:54 Drew Adams
2007-09-27  9:05 ` martin rudalics

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

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

  git send-email \
    --in-reply-to=46FC1EE9.7040700@gmx.at \
    --to=rudalics@gmx.at \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=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 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.