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: Wed, 3 Jul 2013 16:32:35 +0200 Message-ID: References: <51C5AA68.4000204@alice.it> <83zjuae19s.fsf@gnu.org> <83r4fmdsw5.fsf@gnu.org> <85k3ldtion.fsf@member.fsf.org> <4E4C522D-DBCC-4133-A764-82C9CCE81E2D@swipnet.se> <8913208E-7FE2-41F5-AC93-000108413C47@swipnet.se> <51D126A4.50402@gmx.at> <51D2ADC1.5060902@gmx.at> <51D3EE80.9000304@gmx.at> <51D41C42.4000107@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1372862004 23275 80.91.229.3 (3 Jul 2013 14:33:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Jul 2013 14:33:24 +0000 (UTC) Cc: Emacs developers To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 03 16:33:25 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 1UuO7Y-00048u-Hx for ged-emacs-devel@m.gmane.org; Wed, 03 Jul 2013 16:33:24 +0200 Original-Received: from localhost ([::1]:51166 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UuO7Y-00005P-65 for ged-emacs-devel@m.gmane.org; Wed, 03 Jul 2013 10:33:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33653) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UuO7S-000055-6b for emacs-devel@gnu.org; Wed, 03 Jul 2013 10:33:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UuO7Q-00058k-FG for emacs-devel@gnu.org; Wed, 03 Jul 2013 10:33:18 -0400 Original-Received: from mail-ee0-x229.google.com ([2a00:1450:4013:c00::229]:51696) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UuO7Q-00057q-8E for emacs-devel@gnu.org; Wed, 03 Jul 2013 10:33:16 -0400 Original-Received: by mail-ee0-f41.google.com with SMTP id d17so127536eek.28 for ; Wed, 03 Jul 2013 07:33:15 -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=C7VcT6PLJJ+mc3AWs5Su5p1JCj6a4Sah5lHkTPp6veU=; b=gxZsX2iAPhbP82rfH2iWeUNd839GtePbtBEIBFGy7AXQ4Mw7mNXZZoQ82nbGX1nUZm KR2PYgU5E2yP5s8PKvGomVyGCQpeEU9BHayfO8cpyvy9DkTEv83Ic5GU9cIcCXhQPCul Tu0W59omOwcSoyOcS9hPDzv33Cdl8Bpv9EJ7x6g8PIKUzNlDbONCFsGl8yuNUUrAIZXE 3/MtzAAhqI9oBiyrIRotGI7Hi/cpzvJIOT37uz9kf3dFF2MKejCOouWBSrTKuFpbRXFu JPJisze7HWf0lRRsP/d9V4gmvXUoYawFGs29WL2E0MYlqNmCwR9EjTTZc2Pu8N0TUfA7 Brqw== X-Received: by 10.15.21.78 with SMTP id c54mr1551835eeu.14.1372861995511; Wed, 03 Jul 2013 07:33:15 -0700 (PDT) Original-Received: by 10.14.142.4 with HTTP; Wed, 3 Jul 2013 07:32:35 -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:c00::229 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:161477 Archived-At: On Wed, Jul 3, 2013 at 4:20 PM, Juanma Barranquero wrote: > (let ((params '((width . 60) (height . 25)))) > (make-frame params) > (modify-frame-parameters (make-frame) params)) I suppose I can work around the issue by modifying the saved frame parameter 'height and substracting (cdr (assq 'tool-bar-lines PARAMS)) while restoring. Aside: How come that there's no defuns assq-key, assq-value? Yes, they are trivial; yes, they do introduce an overhead. And still, I've written (cdr (assq ..)) so many times already that I'm starting to like the idea of saving the parameter list as a plist just to be able to use plist-(get|put)... Grr. J