unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Edward O'Connor <hober0@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: is there a hook run when display geometry changes?
Date: Fri, 12 Aug 2011 23:20:21 +0300	[thread overview]
Message-ID: <83k4aiwfei.fsf@gnu.org> (raw)
In-Reply-To: <CAME3nG+HmEVEAWSgo-O=1sy4QVo_0yNp7yiVXjZ-qySEAj5H1g@mail.gmail.com>

> From: "Edward O'Connor" <hober0@gmail.com>
> Date: Fri, 12 Aug 2011 12:37:03 -0700
> Cc: emacs-devel@gnu.org
> 
> >> Eli wrote:
> >> > Is window-configuration-change-hook what you want?
> >>
> >> No, I don't think so. `window-configuration-change-hook' is run when
> >> there's a change to the windows being displayed in an Emacs frame.
> >
> > It is also run when the frame geometry changes, if my reading of the
> > code is correct.
> 
> But the frame geometry hasn't changed either. Actually, the situation
> is quite the opposite: I want to cause the frame geometry to change
> when the display geometry changes.

Why don't you try it?  If it works (and I don't know if it does), you
will have your feature today rather than in a year (since Emacs 24 is
in feature freeze already).

It's true that this hook will be called in circumstances where you
don't need to do anything, but I'm assuming that you can detect
whether the display geometry changes and DTRT.



  reply	other threads:[~2011-08-12 20:20 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-12 17:51 is there a hook run when display geometry changes? Edward O'Connor
2011-08-12 18:03 ` Eli Zaretskii
2011-08-12 18:15   ` Edward O'Connor
2011-08-12 18:28     ` Eli Zaretskii
2011-08-12 18:59       ` David De La Harpe Golden
2011-08-12 19:10         ` Thien-Thi Nguyen
2011-08-12 19:40           ` David De La Harpe Golden
2011-08-12 20:04             ` Thien-Thi Nguyen
2011-08-12 21:18               ` David De La Harpe Golden
2011-08-12 21:47                 ` Thien-Thi Nguyen
2011-08-13  5:47                   ` David De La Harpe Golden
2011-08-12 19:37       ` Edward O'Connor
2011-08-12 20:20         ` Eli Zaretskii [this message]
2011-08-15 21:48           ` Edward O'Connor
2011-08-16  6:48             ` Eli Zaretskii
2011-08-25  5:21               ` David De La Harpe Golden
2011-08-16 18:54             ` martin rudalics
2011-08-16 20:34               ` Stefan Monnier
2011-08-12 19:01 ` David De La Harpe Golden
2011-08-12 19:09 ` Antoine Levitt

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=83k4aiwfei.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=hober0@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).