From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#8856: 24.0.50; regression: special-display-frame is no longer dedicated Date: Sat, 25 Jun 2011 10:48:52 -0700 Message-ID: References: <853BDEF1AA9646ACB90724066E1A5951@us.oracle.com><4DF726A1.7020804@gmx.at><8E7452317D5B4FD183FD24E0FAA14F6F@us.oracle.com><4DFB6BBF.3080504@gmx.at><6FAF5DFD0E094823A512C3E0E87B6DF5@us.oracle.com><4DFE09A7.10500@gmx.at><0137606B527A48C69E3D6C704C5C6595@us.oracle.com><4DFF1709.3010409@gmx.at><309F7428711D4BEBB6063C60808D8069@us.oracle.com><4E00C54C.5080108@gmx.at><7AF0B637CAE14034973FBCC658AFEBD9@us.oracle.com><31769215C0FF4E1E89F9F641C5843E91@us.oracle.com><4E033CBA.1050700@gmx.at><4E037708.2000205@gmx.at><4E045081.3020009@gmx.at><90A40DD7F1B14BC1BE282ADB68D57511@us.oracle.com><4E05ED7B.2070 307@gmx.at> <4023AF2C90A24208ABCC1644CB15F776@us.oracle.com> <8A3D5626004B4945A624B69463A0B849@us.oracle.com> <4E06056! E.8030907@gmx.at> <4! E06141D.80302@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1309024234 1608 80.91.229.12 (25 Jun 2011 17:50:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 25 Jun 2011 17:50:34 +0000 (UTC) Cc: 8856@debbugs.gnu.org To: "'martin rudalics'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 25 19:50:30 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QaX00-0000SW-Pe for geb-bug-gnu-emacs@m.gmane.org; Sat, 25 Jun 2011 19:50:29 +0200 Original-Received: from localhost ([::1]:54364 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QaWzz-000818-8C for geb-bug-gnu-emacs@m.gmane.org; Sat, 25 Jun 2011 13:50:27 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:47834) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QaWzf-0007yH-Vn for bug-gnu-emacs@gnu.org; Sat, 25 Jun 2011 13:50:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QaWzd-000123-JN for bug-gnu-emacs@gnu.org; Sat, 25 Jun 2011 13:50:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58273) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QaWzc-00010F-Rw for bug-gnu-emacs@gnu.org; Sat, 25 Jun 2011 13:50:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QaWzb-0004wq-9Z; Sat, 25 Jun 2011 13:50:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 25 Jun 2011 17:50:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8856 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8856-submit@debbugs.gnu.org id=B8856.130902416018969 (code B ref 8856); Sat, 25 Jun 2011 17:50:03 +0000 Original-Received: (at 8856) by debbugs.gnu.org; 25 Jun 2011 17:49:20 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QaWyt-0004vt-PO for submit@debbugs.gnu.org; Sat, 25 Jun 2011 13:49:20 -0400 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QaWyr-0004vg-4X for 8856@debbugs.gnu.org; Sat, 25 Jun 2011 13:49:18 -0400 Original-Received: from rtcsinet22.oracle.com (rtcsinet22.oracle.com [66.248.204.30]) by rcsinet10.oracle.com (Switch-3.4.4/Switch-3.4.2) with ESMTP id p5PHn9DF028951 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 25 Jun 2011 17:49:10 GMT Original-Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by rtcsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p5PHn7Gf014419 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 25 Jun 2011 17:49:08 GMT Original-Received: from abhmt007.oracle.com (abhmt007.oracle.com [141.146.116.16]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p5PHn25A023323; Sat, 25 Jun 2011 12:49:02 -0500 Original-Received: from dradamslap1 (/10.159.51.167) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 25 Jun 2011 10:49:01 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <4E06141D.80302@gmx.at> Thread-Index: AcwzWV/YGMZ5h7HGQveloFFFVJR3LAAAWxrQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109 X-Source-IP: rtcsinet22.oracle.com [66.248.204.30] X-CT-RefId: str=0001.0A090208.4E061F97.004A:SCFSTAT5015188, ss=1, re=-4.000, fgs=0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 25 Jun 2011 13:50:03 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:47465 Archived-At: > > There should be no iconfied Completions frame in the test > > I gave you. > > When I type foo and eventually get the sole completion > footnote-mode the Completions frame iconifies automatically. > I didn't check why that happens, shouldn't it? > When I then type M-x f TAB again it > gets orderly resurrected. Yes, that is all "normal" Emacs behavior. But that was not the recipe. 1. I don't think you are in Icicle mode when testing. Did you do `M-x icy-mode' at the start, to get in the mode? I mentioned that you can try the same test (starting from Emacs startup each time) both in and out of Icicle mode, to see the difference. If not in Icicle mode then you will not see the bug. 2. If you are in Icicle mode then you won't even get to `foo' after hitting `M-x f TAB'. After starting Emacs as I indicated and getting into Icicle mode, when you hit `M-x f TAB' the Completions frame is created and it incorrectly gets the input focus. When you then hit `o' you get the read-only error. It is important to test from scratch: no Completions frame or buffer, not even iconified. Then just type `M-x f TAB o'. Note that even in Emacs 23, where there is no such bug, when you complete to footnote-mode in Icicle mode the Completions frame is not iconified. It is instead deleted. If you are seeing iconification of Completions then you are not in Icicle mode, I think. You can easily tell when you are in Icicle mode by looking at the mode line - you will see `Icy' there. FYI - The Completions frame/window removal code is in file icicles-mcmd.el, function `icicle-remove-Completions-window', which calls `icicle-delete-windows-on'. In this case *Completions* is dedicated, and `delete-frame' is called. > > The problem arises only when the Completions frame is > > newly _created_, as I tried to explain. If you use > > `M-x f TAB o' (recipe) after the frame has already > > been created then the input focus is not a problem. > > > > If you have the frame already, > > The Completions frame? It pops up automatically when I hit TAB and > redirects focus to the Minibuffer frame. Yes, it should. > > then please delete it and try `M-x f TAB o' again. I was trying to direct you to follow the recipe, which starts with (a) Icicle mode and (b) _no_ Completions frame. Once the frame has been created you will not see the bug. See above for, I hope, clear instructions: Start Emacs again, get in Icicle mode, then hit `M-x f TAB o'. That's all there is to it. > But I test this on Windows XP. Ah, excellent. I'm on XP too, so we should be able to work this out. So far, it seems like you did not test in Icicle mode. Try that and see, please. > > But what about that `display-buffer' call in > > `icicle-display-candidates-in-Completions'? > > It should work vacuously. But I'd like to know why you > needed it earlier... And I suppose it doesn't make sense to > use Icicles with these set to nil. Yes, it does make sense! See my previous message. I tried to say clearly that Icicles has nothing to do with my personal setup where I use `pop-up-frames' etc. Icicles is a general package, and most of its users, I believe, do not use non-nil `pop-up-frames' - and most certainly don't use my oneonone.el setup. > I can easily resurrect the old semantics of that argument for the few > values t, 0, visible and a live frame but I would first like to see a > real use case for it. I have a real use case for it. See above. My code needs to work for users who have nil and users who have non-nil `pop-up-frames' etc. And see what I wrote wrt the `display-buffer' doc. For nil `pop-up-frames' etc. an argument of 0 is not at all the same as an argument of nil, according to the doc. Why do you think they added the 0 value? Why do you think it is superfluous? What am I missing here? > > And you mentioned the `save-selected-window' around that > > `display-buffer' call. Does that need to be changed somehow? > > I'm not quite sure what you expect it to do. IIUC you want the > Completions window selected with focus redirected to the Minibuffer > window. Now which window is the one whose selection you want to save > here? Anyway, it shouldn't harm so leave it alone. The selected window can I believe be any window, depending on the context. It could be the minibuffer window or another buffer window. It could (I think, without bothering to verify) even be the Completions window. Thanks for confirming that it does no harm - I will leave it.