all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Third <alan@idiocy.org>
To: Aaron Jensen <aaronjensen@gmail.com>
Cc: 28442@debbugs.gnu.org
Subject: bug#28442: 26.0.50; desktop-save-mode no longer restores correct frame size on macOS
Date: Wed, 22 Nov 2017 17:07:12 +0000	[thread overview]
Message-ID: <m2vai2jl8f.fsf@breton.holly.idiocy.org> (raw)
In-Reply-To: <m2a81yuac1.fsf@gmail.com> (Aaron Jensen's message of "Wed, 13 Sep 2017 04:06:22 -0700")

Aaron Jensen <aaronjensen@gmail.com> writes:

> After d31cd79b40dbd5459b16505a4ee4340210499277 is applied,
> desktop-save-mode will no longer restore frames on macOS to the proper
> size. They end up being slightly smaller in both height and width,
> meaning that repeated restarts will result in a shrinking frame.
>
> I don't know where the equivalent is in desktop.el, but when
> implementing my own version of restoring the frame position it was
> (before d31cd79b) necessary to slightly adjust frame height and width
> from the reported width when saving. I was able to remove this hack
> after d31cd79b: https://github.com/aaronjensen/restore-frame-position/commit/b89f85e145dd94922a74de60f2e8993c80874796
>
> Also note that even without d31cd79b, desktop-save-mode restores a
> height that is roughly 4px shy of the frames's actual height, but that
> may have something to do with a setting I have somewhere that allows my
> emacs frame height to not be snapped to text height--I don't remember
> what that setting is, however.

Hi Aaron, I think you want to use frame-text-width and frame-text-height
rather than frame-geometry-*.

frame-geometry-width returns the outer width of the frame, but the
functions for *setting* the width and height use the inner frame size,
which I think equates to the text area size.
-- 
Alan Third





  parent reply	other threads:[~2017-11-22 17:07 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-13 11:06 bug#28442: 26.0.50; desktop-save-mode no longer restores correct frame size on macOS Aaron Jensen
2017-09-13 11:22 ` Aaron Jensen
2017-11-22 17:07 ` Alan Third [this message]
2017-11-22 17:15   ` Aaron Jensen
2017-11-22 20:31     ` Alan Third
2017-11-23  7:46   ` martin rudalics
2017-11-23 20:41     ` Alan Third
2017-11-23 22:20       ` Aaron Jensen
2017-11-24  9:01         ` martin rudalics
2017-11-24 16:33           ` Aaron Jensen
2017-11-26 10:25             ` martin rudalics
2017-11-26 18:47               ` bug#28442: 26.0.50; [PATCH] Save and restore frame pixel size with desktop-save-mode Aaron Jensen
2017-11-26 22:15                 ` Aaron Jensen
2017-11-27  3:34                   ` Eli Zaretskii
2017-11-27  8:48                 ` martin rudalics
2017-11-27 16:52                   ` Aaron Jensen
2017-12-15 15:30                     ` Aaron Jensen
2017-12-15 18:16                       ` martin rudalics
2017-12-15 20:35                         ` Eli Zaretskii
2017-12-16  9:41                           ` martin rudalics
2017-12-16 16:21                             ` Aaron Jensen
2017-12-16 17:30                               ` martin rudalics
2017-12-16 17:39                               ` Noam Postavsky

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=m2vai2jl8f.fsf@breton.holly.idiocy.org \
    --to=alan@idiocy.org \
    --cc=28442@debbugs.gnu.org \
    --cc=aaronjensen@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.