From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#28442: 26.0.50; [PATCH] Save and restore frame pixel size with desktop-save-mode Date: Mon, 27 Nov 2017 09:48:15 +0100 Message-ID: <5A1BD14F.4060907@gmx.at> References: <5A167CC1.5090609@gmx.at> <20171123204114.GA3884@breton.holly.idiocy.org> <5A17DFE6.5000005@gmx.at> <5A1A96A4.5000509@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1511772560 5951 195.159.176.226 (27 Nov 2017 08:49:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 27 Nov 2017 08:49:20 +0000 (UTC) Cc: 28442@debbugs.gnu.org To: Aaron Jensen , Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 27 09:49:16 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJF6I-0000pl-9b for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Nov 2017 09:49:14 +0100 Original-Received: from localhost ([::1]:59749 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eJF6M-0005Zh-IE for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Nov 2017 03:49:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43994) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eJF6B-0005ZI-Ay for bug-gnu-emacs@gnu.org; Mon, 27 Nov 2017 03:49:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eJF68-00082E-7v for bug-gnu-emacs@gnu.org; Mon, 27 Nov 2017 03:49:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51346) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eJF68-00081l-4H for bug-gnu-emacs@gnu.org; Mon, 27 Nov 2017 03:49:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eJF65-0001PP-Vw for bug-gnu-emacs@gnu.org; Mon, 27 Nov 2017 03:49:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Nov 2017 08:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28442 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28442-submit@debbugs.gnu.org id=B28442.15117725265392 (code B ref 28442); Mon, 27 Nov 2017 08:49:01 +0000 Original-Received: (at 28442) by debbugs.gnu.org; 27 Nov 2017 08:48:46 +0000 Original-Received: from localhost ([127.0.0.1]:60027 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJF5q-0001Ou-C1 for submit@debbugs.gnu.org; Mon, 27 Nov 2017 03:48:46 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:55883) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJF5o-0001Og-CT for 28442@debbugs.gnu.org; Mon, 27 Nov 2017 03:48:45 -0500 Original-Received: from [192.168.1.100] ([46.125.250.81]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Le69A-1evdJN12JY-00pxjA; Mon, 27 Nov 2017 09:48:25 +0100 In-Reply-To: X-Provags-ID: V03:K0:5zZPW9sFXQdBW514sA0fZ7TEZ6/x9Rli7mSGBQ9dKCnbIG19V4u 2qTWP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18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:140446 Archived-At: > How=E2=80=99s this? Elegant, in particular the `frameset--restore-frame' part. Eli will decide whether we can put this on the release branch. In either case we'll have to wait until your paperwork is complete. And please send diffs as attachments, one of our MUAs has decided to truncate some of the lines. One thing I'm not yet sure about is how a user's setting of `frame-resize-pixelwise' may affect restoring the desktop. I'd be reluctant to change that variable from within frameset or using `desktop-after-read-hook' to set it (which might be too late anyway). Note that some window managers may refuse to resize a frame to a non-integral size unless the appropriate WM hints have been set as we do in x_wm_set_size_hint in either xterm.c or gtkutil.c: size_hints.width_inc =3D frame_resize_pixelwise ? 1 : FRAME_COLUMN_WID= TH (f); size_hints.height_inc =3D frame_resize_pixelwise ? 1 : FRAME_LINE_HEIG= HT (f); Maybe we have to provide an additional frame parameter 'resize-pixelwise' which would override the global `frame-resize-pixelwise' setting for that particular frame. But let's wait for such a thing until we see an urgent need for it. Anyway, since I'm not using desktop please confirm the following: When `desktop-read' runs and your init file contains a non-nil customization for `frame-resize-pixelwise', the size hints are set correctly to 1 for each frame restored. Thank you very much, martin