From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.help Subject: Re: emacsclientw restore window Date: Mon, 11 Jun 2007 13:41:25 +0200 Message-ID: References: <1181518317.159372.276180@q69g2000hsb.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1181562395 29007 80.91.229.12 (11 Jun 2007 11:46:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 11 Jun 2007 11:46:35 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: troelskn Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 11 13:46:25 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HxiLm-0007Ps-Gq for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Jun 2007 13:46:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HxiLl-0006kF-QU for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Jun 2007 07:46:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HxiH5-0002bK-4b for help-gnu-emacs@gnu.org; Mon, 11 Jun 2007 07:41:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HxiH1-0002Zs-6C for help-gnu-emacs@gnu.org; Mon, 11 Jun 2007 07:41:28 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HxiH0-0002ZJ-LW for help-gnu-emacs@gnu.org; Mon, 11 Jun 2007 07:41:26 -0400 Original-Received: from wx-out-0506.google.com ([66.249.82.230]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HxiH0-00036O-92 for help-gnu-emacs@gnu.org; Mon, 11 Jun 2007 07:41:26 -0400 Original-Received: by wx-out-0506.google.com with SMTP id h26so1413242wxd for ; Mon, 11 Jun 2007 04:41:25 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Pz/gww9zNFfxe0jQy74o7MT9Y/DiJPu7V2jdafTJssvhNpD6HTFTdc5J+ZDRwJk8ItOk45bcETaVfFljLhfLGy/ggmYsZw65s32fo8OLfzJoWGhIiFJluFJH6dr0SlXn0TARMst/0wjaeCGx0J0KpjI+eBixZHV+VDZJX2o8DMI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=kiu4f9b57ARaFFqpq30MxF64lDZkMngI3HqxR42lgVJsEDSPE9NlBe5nsg3GFe8lP1ZojLexWt3X82HoG6mrcaqm+epnp2JCsDS0+D8aFszXlsAv+7reY54u9CjU0+ORk1WdffNGVnleOSogjPOgCMnkryuCDZ1W/r/J29f0gc8= Original-Received: by 10.90.74.1 with SMTP id w1mr4924915aga.1181562085341; Mon, 11 Jun 2007 04:41:25 -0700 (PDT) Original-Received: by 10.90.103.8 with HTTP; Mon, 11 Jun 2007 04:41:25 -0700 (PDT) In-Reply-To: <1181518317.159372.276180@q69g2000hsb.googlegroups.com> Content-Disposition: inline X-detected-kernel: Linux 2.4-2.6 (Google crawlbot) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:44883 Archived-At: On 6/11/07, troelskn 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