From: martin rudalics <rudalics@gmx.at>
To: raman <raman@google.com>, emacs-devel <emacs-devel@gnu.org>
Subject: Re: HowTo: Detect when a frame's size changes
Date: Wed, 05 Apr 2017 19:26:55 +0200 [thread overview]
Message-ID: <58E528DF.9000808@gmx.at> (raw)
In-Reply-To: <p91a87uhon5.fsf@raman-glaptop2>
> Thanks! will try that
Hmmm... rather not. You will still get false positives when the
minibuffer window is resized. For the moment stick to my earlier
proposal: When you run your ‘window-size-change-functions’ function
remember the old values of ‘frame-pixel-width’ and ‘frame-pixel-height’
(maybe in a frame parameter) and the next time you run it compare them
with the current values.
I will fix that soon probably by providing a ‘frame-size-changed-p’
function that you can use during ‘window-size-change-functions’.
Providing a separate ‘frame-size-change-functions’ hook would be also
possible but the interaction of these could be tricky.
martin
next prev parent reply other threads:[~2017-04-05 17:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-05 3:03 HowTo: Detect when a frame's size changes raman
2017-04-05 6:58 ` martin rudalics
2017-04-05 7:54 ` martin rudalics
[not found] ` <p91a87uhon5.fsf@raman-glaptop2>
2017-04-05 17:26 ` martin rudalics [this message]
2017-04-05 17:32 ` T.V Raman
2017-04-05 18:05 ` martin rudalics
2017-04-05 18:12 ` T.V Raman
2017-04-11 10:55 ` martin rudalics
2017-04-12 15:22 ` raman
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=58E528DF.9000808@gmx.at \
--to=rudalics@gmx.at \
--cc=emacs-devel@gnu.org \
--cc=raman@google.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.