all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Kaushal Modi <kaushal.modi@gmail.com>, 21480@debbugs.gnu.org
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	[thread overview]
Message-ID: <55F7D7F0.8040102@gmx.at> (raw)
In-Reply-To: <55F7D684.2000805@gmx.at>

 >    (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






  reply	other threads:[~2015-09-15  8:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-14 21:13 bug#21480: 25.0.50; Frame width gets set to 16 pixels wider than the provided width in the args Kaushal Modi
2015-09-14 21:21 ` Kaushal Modi
2015-09-15  8:29   ` martin rudalics
2015-09-15  8:27 ` martin rudalics
2015-09-15  8:33   ` martin rudalics [this message]
2015-09-15 13:39     ` Kaushal Modi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55F7D7F0.8040102@gmx.at \
    --to=rudalics@gmx.at \
    --cc=21480@debbugs.gnu.org \
    --cc=kaushal.modi@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.