all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Juanma Barranquero" <lekktu@gmail.com>
To: troelskn <troelskn@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: emacsclientw restore window
Date: Mon, 11 Jun 2007 13:41:25 +0200	[thread overview]
Message-ID: <f7ccd24b0706110441g6a41095asd22bdd2f7709c628@mail.gmail.com> (raw)
In-Reply-To: <1181518317.159372.276180@q69g2000hsb.googlegroups.com>

On 6/11/07, troelskn <troelskn@gmail.com> wrote:

> When I open a file (On Windows XP), using emacsclientw.exe, while
> Emacs is minimised, the window is always restored to windowed state.
> How can I make it so the window is restored to maximised state
> instead?

If you use a single frame, or a not very complicated frame setup, this
could work:

(setq server-window
      #'(lambda (buffer)
          (let ((pop-up-windows nil))
            (pop-to-buffer buffer))
          (let* ((w (get-buffer-window buffer 0))
                 (f (window-frame w))
                 (v (frame-visible-p f)))
            (select-frame-set-input-focus f)
            (when (eq v 'icon)
              (w32-send-sys-command ?\xF030)))))


     Juanma

  reply	other threads:[~2007-06-11 11:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-10 23:31 emacsclientw restore window troelskn
2007-06-11 11:41 ` Juanma Barranquero [this message]
     [not found] ` <mailman.1935.1181562094.32220.help-gnu-emacs@gnu.org>
2007-06-11 12:03   ` troelskn
2007-06-11 13:20     ` Juanma Barranquero
2007-06-11 15:42     ` Lennart Borgman (gmail)
     [not found]     ` <mailman.1942.1181576566.32220.help-gnu-emacs@gnu.org>
2007-06-11 19:29       ` troelskn

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=f7ccd24b0706110441g6a41095asd22bdd2f7709c628@mail.gmail.com \
    --to=lekktu@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=troelskn@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.