GNU bug report logs - #11939
24.1; `save-buffers-kill-emacs' loses minibuffer focus when it calls `list-processes'

Previous Next

Package: emacs;

Reported by: "Drew Adams" <drew.adams <at> oracle.com>

Date: Fri, 13 Jul 2012 18:07:01 UTC

Severity: normal

Found in version 24.1

Done: martin rudalics <rudalics <at> gmx.at>

Bug is archived. No further changes may be made.

Full log


Message #260 received at 11939 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 11939 <at> debbugs.gnu.org
Subject: Re: bug#11939: 24.1;
	`save-buffers-kill-emacs' loses minibuffer focuswhenit
	calls	`list-processes'
Date: Sun, 29 Jul 2012 15:56:24 +0200
> Here's my attempt at a summary - but please help me fill things in, with your
> understanding:
>
> You wrote some code which improved things, and I tried various things, the last
> of which was this:
>
> (add-hook 'after-make-frame-functions
>           (lambda (frame)
>             (redirect-frame-focus frame
>              (window-frame (minibuffer-window)))))
>
> You mentioned that when you tried redirecting to the minibuffer frame that way
> you encountered some problems, but you didn't remember what they were.  I said
> that when I instead redirected the frame to itself (which I guess worked for
> you), it did not solve the focus problem (for me).
>
> I said that with the above code another problem is introduced, which is that the
> current-buffer and selected window are apparently left as " *Minibuf-0*".
>
> Do you have a better idea of where things stand wrt this problem?

IIUC the above is what you wanted to apply for making your code work with
versions <= Emacs 24.1.

> Will you be
> applying your latest code to Emacs?

Unless you tell me that you find any problems with it.

> Where do you think we should go from here,
> to progress a bit and perhaps finish this?
>
> In sum, I would like us to try to refocus on the original problem and see if we
> can take stock of what we have learned.

I can't say that I have learned much so far.  Most of the focus
redirection stuff still remains a mystery to me.  Personally, I would
never use a separate minibuffer frame for the sole reason that I don't
understand how it works.

martin




This bug report was last modified 12 years and 288 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.