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:27:48 +0200 Message-ID: <55F7D684.2000805@gmx.at> References: 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 1442305704 29674 80.91.229.3 (15 Sep 2015 08:28:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Sep 2015 08:28:24 +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:28:13 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 1Zblb2-0002DP-Tf for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Sep 2015 10:28:13 +0200 Original-Received: from localhost ([::1]:45873 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zblb2-0004As-ET for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Sep 2015 04:28:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57755) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zblax-00047l-Lm for bug-gnu-emacs@gnu.org; Tue, 15 Sep 2015 04:28:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zblat-0005uF-0k for bug-gnu-emacs@gnu.org; Tue, 15 Sep 2015 04:28:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40428) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zblas-0005uB-Ue for bug-gnu-emacs@gnu.org; Tue, 15 Sep 2015 04:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Zblas-0001SC-Nf for bug-gnu-emacs@gnu.org; Tue, 15 Sep 2015 04:28:02 -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:28:02 +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.14423056755568 (code B ref 21480); Tue, 15 Sep 2015 08:28:02 +0000 Original-Received: (at 21480) by debbugs.gnu.org; 15 Sep 2015 08:27:55 +0000 Original-Received: from localhost ([127.0.0.1]:60870 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zblak-0001Rk-TE for submit@debbugs.gnu.org; Tue, 15 Sep 2015 04:27:55 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:49659) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zblaj-0001Rc-9N for 21480@debbugs.gnu.org; Tue, 15 Sep 2015 04:27:53 -0400 Original-Received: from [194.166.81.50] ([194.166.81.50]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0MUDXS-1ZAmYf3Os6-00R2WP; Tue, 15 Sep 2015 10:27:51 +0200 In-Reply-To: X-Provags-ID: V03:K0:zSUXC5eaEu34EtenH8rN90KdUtbqpQUt/mfpyQhcGc/aLrwSMKh BVXI4b8gj2aB98AwPU2AAAHgMlPcj0VZ3OpWG8SDPc8ZOaq+BLTkvl+zvfltR9vLiW7UDch ndz8JBCNHbj7qiXNslF0YXTGrzRu+vaZIjBgZrg26FpwGWA2B2PBy/cPpQg4kRjYlEwhYHQ WYyCxmJnwvHotcxan6pDA== X-UI-Out-Filterresults: notjunk:1;V01:K0:vX0HN8fb09Y=:6Lyp6VK+r+5H5WRrcVKLxn BVOpdzp/2/L1gfjgIxEehXCPoGl/xjugN5sbSD/r3CsoXZEDDhWgdjsZmOuxKcwZeCuR7gjhA 2UaGWWwY4/YIqWELXDAZ+31364+ZJqJMcQvfjbYnuKao6roZ2Zz4+fmV/wtjzCLo2EI2UjORd UwaZYXdS/L74ps7Bs5ci7HFS+rlOxh/vKq9IDl1Bmghv0KPIwWatXjgXZd+w43QvPobEgIFVq TRPuUJIo1paMqB9w4GoSoUmfJK0YQK9lzBJNjWAS1VNxxRRh3g5UaUzGS3NGsIhoTcujob8oB fOHnHR3NIrmiuIxI/2/DokDHcjyud88Uyfg3mN34RQPhuEjC64vy3L79InlHugR42rf2oUXBf 3xMRAH+HVvfL7QldXP0QH1c1tb60Ef/BjlTv1jyzexZ92DTTxZPSic6eo6Xwv+by5oJ3xXSS5 U+HKNcJ90yKjDmwj/70BMrxgTUgmgxey9YWO4o/uAc2x5yJBsmw7eG7r8AqYYpYILHjDiHiiH jXUgRQimanKz5cUSBsKRh8CISM6TT79jV8PHE48w+R1U3O8MgBLHif0UZhjq8t1WO8gYGJVF1 +oHB06T7YrI0FGKZIADVRAzZXPAqSZiCZXWz0uyqdmI+XPGgi9DafUR5lwRBwzoeOMJ9xM3qN DpluKdZhAnIZFw4GnL+6GBU9F60MGwZY8m2UeRzOYw4QjfsSpNYvJ8UfoPm9cEHuzDsf/Xj4y S9MQ/+it1YxdUhaOotWZnIa/HgPJs2emGMmGUQ== 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:106571 Archived-At: > - I save the frame width using `frame-pixel-width' to a defvar. > - I then set the frame size using `set-frame-size' with that defvar as= one > of the args > - I notice that the frame had got wider! When I do a readback using > `frame-pixel-width', it is exactly 16 pixels wider than expected. =E2=80=98set-frame-size=E2=80=99 expects a "text width" as argument. Hen= ce the following (setq frame-resize-pixelwise t) (let ((width (frame-pixel-width))) (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 wrong. The difference you see should be the sum of a scroll bar width and the width of the fringes. This (setq frame-resize-pixelwise t) (let ((width (frame-text-width))) (set-frame-width nil (+ width 20) nil t) (sit-for 2) (set-frame-width nil width nil t) (message "%s" (cons width (frame-text-width)))) should do what you want. martin