From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: How to restore the layout? Date: Mon, 8 Jul 2013 19:29:17 +0200 Message-ID: References: <51C5AA68.4000204@alice.it> <51CE9B05.1090202@gmx.at> <51CFFBED.7090400@gmx.at> <51D02AB0.5070103@gmx.at> <51D5DE14.4090507@alice.it> <51D600D8.90801@alice.it> <51D67985.7010806@gmx.at> <51D69AF8.2050606@alice.it> <51D6C2FA.7040708@gmx.at> <51D6CD1C.5050504@alice.it> <51D6DB49.7020005@gmx.at> <831u7czx1i.fsf@gnu.org> <51D72CC9.9040704@alice.it> <51D7D9B1.8080102@gmx.at> <51D7DF18.2010502@alice.it> <51D7F501.7020207@gmx.at> <51D7F9C1.4000801@alice.it> <51D81657.8020108@gmx.at> <972fd406-97dc-42fc-9727-03642e351c88@default> <51D949AD.6020800@gmx.at> <51D96326.9040500@gmx.at> <5f8e3fb9-8dba-4cd2-ab31-9ae03fa8ec07@default> <51DA608F.3040400@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1373305153 26928 80.91.229.3 (8 Jul 2013 17:39:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Jul 2013 17:39:13 +0000 (UTC) Cc: Emacs developers To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 08 19:39:14 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UwFP6-0002KN-Op for ged-emacs-devel@m.gmane.org; Mon, 08 Jul 2013 19:39:12 +0200 Original-Received: from localhost ([::1]:52116 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwFP6-0008Gx-Ch for ged-emacs-devel@m.gmane.org; Mon, 08 Jul 2013 13:39:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38767) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwFP3-0008Gg-1R for emacs-devel@gnu.org; Mon, 08 Jul 2013 13:39:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UwFGB-0004q0-Pm for emacs-devel@gnu.org; Mon, 08 Jul 2013 13:30:31 -0400 Original-Received: from mail-ea0-x235.google.com ([2a00:1450:4013:c01::235]:46178) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwFGB-0004pl-HJ for emacs-devel@gnu.org; Mon, 08 Jul 2013 13:29:59 -0400 Original-Received: by mail-ea0-f181.google.com with SMTP id a15so3117391eae.26 for ; Mon, 08 Jul 2013 10:29:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=fMVnPr+0mQ1Qslxa/nEnpijrVHnVM76Xa2W4n6LHNc4=; b=UjOvLSjXtD9QU+509mdggRpyg0J/QYTzTfzCx+cqG5NNlC6+rQ7P0Lx4Yo1D5kbtS0 0b8OWVEaUZ71h/aJgEArVEzPrFH688rgTTv9mtljgksdHF2+sT77Q6oAv2VBfKX2rG2n eD0qQmPbgO9nTiwY9ZWy85+WiQlFuya4Xj1KbYZKLQJ9PUAmkEDSM4miYM1DSxxAmuU2 nA+wtxNweB1IzIjRKNaWd8B1FrxPpk8BFBW6NDUL2QxubMcJ7rCGrQvywcSxam/Egjdp tAEKa3Uzg6u+6FrUYbIKSkAcWZPlO5xk4DNfrEWbBq0eg8EXM+ewsxU2K5/v8DegXXuQ 8Usg== X-Received: by 10.15.36.133 with SMTP id i5mr26486550eev.52.1373304598804; Mon, 08 Jul 2013 10:29:58 -0700 (PDT) Original-Received: by 10.14.142.4 with HTTP; Mon, 8 Jul 2013 10:29:17 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c01::235 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:161732 Archived-At: On Tue, Jul 2, 2013 at 12:38 PM, martin rudalics wrote: > In that case we'd have to delete the initial frame :-( There are some cases where we need to delete the initial frame, so that shouldn't be a problem. I'm now writing the restore function and also fixing the parameter filtering. I hope to install some changes tonight. A couple of comments about your function: (let ((minibuffer-frame (window-frame (minibuffer-window frame)))) (cond ;; Process minibuffer-window frame parameter if present. ((and (setq minibuffer-window (frame-parameter frame 'minibuffer-window)) (window-minibuffer-p minibuffer-window)) There's no frame parameter minibuffer-window. I have changed that to (let ((minibuffer-frame (window-frame (minibuffer-window frame))) (minibuffer-window (frame-parameter frame 'minibuffer))) (cond ((and (windowp minibuffer-window) (window-minibuffer-p minibuffer-window)) (setq minibuffer-frame (window-frame minibuffer-window)) Also, > (let ((default (eq minibuffer-frame default-minibuffer-frame)) > (this-count > (cdr (frame-parameter minibuffer-frame 'desktop-mini)))) AFAICS, default is not used anywhere. J