From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.devel Subject: Regarding proc x_make_frame_visible in w32term.c Date: Tue, 3 Jun 2008 23:18:46 +0800 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C8C58D.6EBECA84" X-Trace: ger.gmane.org 1212516334 24553 80.91.229.12 (3 Jun 2008 18:05:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Jun 2008 18:05:34 +0000 (UTC) To: Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 03 20:06:16 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K3asn-0005tW-B5 for ged-emacs-devel@m.gmane.org; Tue, 03 Jun 2008 20:05:44 +0200 Original-Received: from localhost ([127.0.0.1]:58183 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K3as1-0007NR-2s for ged-emacs-devel@m.gmane.org; Tue, 03 Jun 2008 14:04:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K3YKG-0001DR-WA for emacs-devel@gnu.org; Tue, 03 Jun 2008 11:21:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K3YKA-000131-Vy for emacs-devel@gnu.org; Tue, 03 Jun 2008 11:21:28 -0400 Original-Received: from [199.232.76.173] (port=35306 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K3YKA-00012a-Ng for emacs-devel@gnu.org; Tue, 03 Jun 2008 11:21:22 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:8211) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K3YKA-0007J5-Vh for emacs-devel@gnu.org; Tue, 03 Jun 2008 11:21:23 -0400 Original-Received: from email.gdnt.com.cn ([202.104.30.38]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K3YK4-0002Rm-Mm for emacs-devel@gnu.org; Tue, 03 Jun 2008 11:21:17 -0400 Original-Received: from sd-ef-01.cnshn.gdnt.local ([202.38.41.132]) by email.gdnt.com.cn with Microsoft SMTPSVC(6.0.3790.1830); Tue, 3 Jun 2008 23:21:02 +0800 Original-Received: from sd-ex-01.cnshn.gdnt.local ([202.38.38.8]) by sd-ef-01.cnshn.gdnt.local with Microsoft SMTPSVC(6.0.3790.1830); Tue, 3 Jun 2008 23:21:02 +0800 Original-Received: from RND-MX01.rnd.gdnt.local ([202.38.32.248]) by sd-ex-01.cnshn.gdnt.local with Microsoft SMTPSVC(6.0.3790.1830); Tue, 3 Jun 2008 23:21:20 +0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Regarding proc x_make_frame_visible in w32term.c Thread-Index: AcjFjR4nwXAUqSoITwujGoyjs4r1og== X-OriginalArrivalTime: 03 Jun 2008 15:21:20.0081 (UTC) FILETIME=[79933410:01C8C58D] X-TM-AS-Product-Ver: SMEX-7.0.0.1345-3.6.1039-15232.002 X-TM-AS-Result: No--6.196000-8.000000-31 X-detected-kernel: by mx20.gnu.org: Windows 2000 SP4, XP SP1+ X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Tue, 03 Jun 2008 14:04:24 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:98317 Archived-At: This is a multi-part message in MIME format. ------_=_NextPart_001_01C8C58D.6EBECA84 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I use Emacs mostly in Windows XP. I found one behavior is quite annoying when I am using emacsclient to open a file. e.g., the emacs frame is maximized and then I iconify it into the taskbar, if at this time I open a file using emacsclient, the emacs frame is restored to its normal size (not maximized any more). I want to keep the frame maximized. Many people was bothered by this behavior as I know. =20 Although I have some tricks to change this behavior by hacking elisp, I would still like to seek the possibility to change it gracefully.=20 =20 I check the codes and find the following codes related to it: =20 w32term.c, proc x_make_frame_visible /* my_show_window (f, FRAME_W32_WINDOW (f), f->async_iconified ? SW_RESTORE : SW_SHOW); */ my_show_window (f, FRAME_W32_WINDOW (f), SW_SHOWNORMAL); =20 The line commented is exactly what I want. I wonder why it is commented out and replaced by "SW_SHOWNORMAL" one. Any consideration for it? Can we change it back? I cannot find any description about it in the change log. =20 =20 ------_=_NextPart_001_01C8C58D.6EBECA84 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
I use Emacs mostly in=20 Windows XP. I found one behavior is quite
annoying when I am using=20 emacsclient to open a file.  e.g., the emacs
frame is maximized = and then=20 I iconify it into the taskbar, if at this
time I open a file using=20 emacsclient, the emacs frame is restored
to its normal size (not = maximized any more). I want to keep the frame
maximized. Many people = was=20 bothered by this behavior as I know.
 
Although I have some=20 tricks to change this behavior by hacking elisp,
I would still like = to seek=20 the possibility to change it gracefully.
 
I check the codes and=20 find the following codes related to it:
 
w32term.c, proc=20 x_make_frame_visible
/*      my_show_window = (f,=20 FRAME_W32_WINDOW (f), f->async_iconified ? SW_RESTORE : = SW_SHOW); =20 */
      my_show_window (f, FRAME_W32_WINDOW = (f),=20 SW_SHOWNORMAL);
 
The line commented is=20 exactly what I want. I wonder why it is
commented out and replaced by = "SW_SHOWNORMAL" one. Any consideration for
it? Can we change it back? = I=20 cannot find any description about it in
the change=20 log.
 
 
------_=_NextPart_001_01C8C58D.6EBECA84--