|
From: | martin rudalics |
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 |
> (set-frame-width nil width nil t) > (message "%s" (cons width (frame-text-width)))) Sorry. Without the ‘sit-for’ 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
[Prev in Thread] | Current Thread | [Next in Thread] |