From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#21480: 25.0.50; Frame width gets set to 16 pixels wider than the provided width in the args Date: Tue, 15 Sep 2015 10:33:52 +0200 Message-ID: <55F7D7F0.8040102@gmx.at> References: <55F7D684.2000805@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1442306094 3000 80.91.229.3 (15 Sep 2015 08:34:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Sep 2015 08:34:54 +0000 (UTC) To: Kaushal Modi , 21480@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 15 10:34:44 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1ZblhJ-0000zu-Dj for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Sep 2015 10:34:41 +0200 Original-Received: from localhost ([::1]:45945 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZblhI-0002wl-Id for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Sep 2015 04:34:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59607) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zblgj-0002DY-Bu for bug-gnu-emacs@gnu.org; Tue, 15 Sep 2015 04:34:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zblgg-0007wr-6l for bug-gnu-emacs@gnu.org; Tue, 15 Sep 2015 04:34:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40440) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zblgg-0007wi-4P for bug-gnu-emacs@gnu.org; Tue, 15 Sep 2015 04:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Zblgf-0001bt-PE for bug-gnu-emacs@gnu.org; Tue, 15 Sep 2015 04:34:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 15 Sep 2015 08:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21480 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21480-submit@debbugs.gnu.org id=B21480.14423060386180 (code B ref 21480); Tue, 15 Sep 2015 08:34:01 +0000 Original-Received: (at 21480) by debbugs.gnu.org; 15 Sep 2015 08:33:58 +0000 Original-Received: from localhost ([127.0.0.1]:60883 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zblgc-0001bc-04 for submit@debbugs.gnu.org; Tue, 15 Sep 2015 04:33:58 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:50602) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zblga-0001bU-DT for 21480@debbugs.gnu.org; Tue, 15 Sep 2015 04:33:56 -0400 Original-Received: from [194.166.81.50] ([194.166.81.50]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0MJWAZ-1Zd9GT3n5f-0036GR; Tue, 15 Sep 2015 10:33:55 +0200 In-Reply-To: <55F7D684.2000805@gmx.at> X-Provags-ID: V03:K0:/5DuOuCBguhlYNiXkXhTsJN7aEKpbplexcMC+c74SVCS6xzaGGR u7kzdrqG2pGN7rNhr6VMbpqy+gLEevMck2wRW5q/bAAHMCm5kr4D4rMMoi5kY7fcPY2A56+ 0NmbMibMnzwrWJwNVTG1NZrL5pZ4v5VTxdY03en/HfaKUTlxxhGh+jJQ5ZfkqutRrURc+kN yeurlpWR8oMYzder3QWuQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:XPiTFKI9ZPs=:5+DxdPcz4xOPSdXCLmvZoX Kzmd0HOdntROtoyq3tLCHphrbSXAWpJ4navVonksjwtGxwXlQtp0Sl0owe3vnDdHQ+jkoizE3 pyJ85hwFjg0GrDw058B219fQzmfJpij2e5Y1XKhgQ2F1kZcYFR1iM7XtSVJCzPg2FfvgYsx4l a48kEKq1Dj6keb6MFmlSwecXN3LUv1iiytr+FW3ofvHT3HFGE+0zfyYlHMneopWXPyMxVhEha FgO7L1os0duQqVG4kcWcKMLC9JyGvgnV40da4oDcKDTncnL6bATWALTcoSQlDU75Khj/LcAZ+ HGggitHPI+a5bhlRTcUF0adGH+0cROJOtj3GgaH/u+C1i7p87h+hKGGqo+EIYkkSrJTpnvAUo p6yB6jjksvXafmB+nvkHLijGmRMxcYH9Zcl0KStuEcVKEl5uZSrA1V7c6mmDvBSXmDHhtAQb8 nZ6GMsQp/lXLOkJwGO2y1plfcGwdYgZ+uBNjfqVSgHJvORQg+DdrLhY5QKlYgVCvMsxJ72rsC +DBZ/o88niWlyclnfr1bARTO5YwNn482lSfRRx95K14cu5+p03Xi1hfbfmrzylL1efZQNV59H xnZ5rN321LAZdzDpa6jndq3CmnCp7Ax57Ahee10oNVh9KUy7MHQEm0BGyFsLwyKXlGQ5UXGLX e0bvtpR7B4PCmP3IfrO2oup2nSkSV17RSEI4/E3V9j041urU8KtIuDFRfJl9UVBkGsZkP3atN viE6seds/wxu64pbmAXcZmmrfdki4w3ofjc94g== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:106575 Archived-At: > (set-frame-width nil width nil t) > (message "%s" (cons width (frame-text-width)))) Sorry. Without the =E2=80=98sit-for=E2=80=99 this is confusing. So this= (let ((width (frame-pixel-width))) (setq frame-resize-pixelwise t) (set-frame-width nil (+ width 20) nil t) (sit-for 2) (set-frame-width nil width nil t) (sit-for 2) (message "%s" (cons width (frame-pixel-width)))) is bad while this (let ((width (frame-text-width))) (setq frame-resize-pixelwise t) (set-frame-width nil (+ width 20) nil t) (sit-for 2) (set-frame-width nil width nil t) (sit-for 2) (message "%s" (cons width (frame-text-width)))) should do what you want. martin