[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacsclientw restore window
From: |
Juanma Barranquero |
Subject: |
Re: emacsclientw restore window |
Date: |
Mon, 11 Jun 2007 13:41:25 +0200 |
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